from decimal import Decimal n = int(input()) sum=0 for _ in range(n): sum+=Decimal(input()) print(sum.quantize(Decimal('1e-10')))