(read)(while(*(x->integer(sqrt(read)))11)=> x(print(+(mod x 10)x)))