N=int(input()) for i in range(N): s=int(input()) * 100 print(int(s**0.5)//10)