int t;int i;int n;int k;input t;for i=1 to t{input n;k=floor(sqrt(n)+0.5);print k*11+k mod 10;}