import sys from decimal import Decimal, getcontext getcontext().prec = 35 # Sufficient precision to handle up to 1e6 terms def main(): data = sys.stdin.read().split() n = int(data[0]) xs = data[1:n+1] sum_total = Decimal(0) for x_str in xs: x = Decimal(x_str) sqrt_x = x.sqrt() sum_total += sqrt_x # Format to 17 decimal places using f to ensure trailing zeros are included print("{0:.17f}".format(sum_total)) if __name__ == "__main__": main()