from decimal import Decimal N = int(input()) A = [Decimal(input()) for _ in range(N)] print("{:.10f}".format(sum(A)))