import math N = int(input()) x = [] for i in range(N): x.append(input()) for i in range(N): print(math.sqrt(x[i]))