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