from decimal import Decimal n = int(input()) sum_a = sum(Decimal(input()) for _ in range(n)) print("{0:.10f}".format(sum_a))