import math l=[] t=int(input()) for i in range(t): n=int(input()) s=math.isqrt(n) l.append(s) for x in l: print(x)