import decimal import sys decimal.getcontext().prec = 25 # Set sufficient precision to handle up to 1e18 accurately def main(): data = sys.stdin.read().split() n = int(data[0]) xs = data[1:n+1] sum_total = decimal.Decimal(0) output = [] for x_str in xs: x = decimal.Decimal(x_str) sqrt_x = x.sqrt() sum_total += sqrt_x # Format to 17 decimal places, ensuring trailing zeros are included output.append("{0:.17f}".format(sum_total)) print('\n'.join(output)) if __name__ == '__main__': main()