import math n = int(input()) li = [int(input()) for i in range(n)] for j in li: print(math.sqrt(j))