import sys from decimal import Decimal, getcontext getcontext().prec = 35 # Sufficient precision to handle the required error margin def main(): input = sys.stdin.read().split() n = int(input[0]) xs = input[1:n+1] sum_so_far = Decimal(0) for x_str in xs: x = Decimal(x_str) sum_so_far += x.sqrt() # Format the sum to remove trailing zeros and unnecessary decimal points sum_str = format(sum_so_far, 'f').rstrip('0').rstrip('.') print(sum_str) if __name__ == "__main__": main()