import sys import numpy as np read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines nums = np.array(read().split(), np.float64)[1:] np.sqrt(nums, out=nums) integer, frac = np.divmod(nums, 1) np.cumsum(integer, out=integer) np.cumsum(frac, out=frac) x = integer + frac print('\n'.join(map(str, x.tolist())))