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