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) nums *= 1048576 integer = nums.astype(np.int64).astype(np.float64) frac = nums - integer np.cumsum(integer, out=integer) np.cumsum(frac, out=frac) x = integer + frac x /= 1048576 print('\n'.join(map(str, x.tolist())))