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) high, mid = np.divmod(nums, 1) mid, low = np.divmod(mid, 0.5**20) np.cumsum(high, out=high) np.cumsum(mid, out=mid) np.cumsum(low, out=low) x = high + mid * (0.5**20) + low print('\n'.join(map(str, x.tolist())))