from decimal import Decimal N = int(input()) print(sum([Decimal(input()) for _ in range(N)]))