(read)(while 1(#(prn(+(mod% 10)%))(*(int(+(Math/sqrt(read))0.5))11)))