import sys import numpy as np import time read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines N = int(readline()) nums = np.array(read().split(), np.float64) np.sqrt(nums, out=nums) nums = nums.astype(np.longdouble) np.cumsum(nums, out=nums) for x in nums.tolist(): print(str(x)[:17])