import numpy as np A = input() B = [0] * int(A) C = [0] * int(A) counter = 0 for x in range(int(A)): B.append(input()) counter = 0 for y in B: C[x] = C[x] + np.sqrt(int(B[counter])) counter = counter + 1 counter = 0 for x in C: print(C[counter]) counter = counter + 1