(read)(while(*(round->exact(sqrt(read)))11)=> k(print(+(mod k 10)k)))