import sys input = sys.stdin.readline from decimal import Decimal N = int(input()) s = Decimal(0) res = [] for _ in range(N): x = Decimal(input()) s += x.sqrt() res.append(s) print('\n'.join(map(str, res)))