import sys read=sys.stdin.buffer.read readline=sys.stdin.buffer.readline readlines=sys.stdin.buffer.readlines n=int(readline()) from decimal import * getcontext().prec=50 import itertools ans=itertools.accumulate([Decimal(int(readline())).sqrt() for _ in range(n)]) ans=[x.quantize(Decimal('1e-18')) for x in ans] print('\n'.join(map(str, ans)))