from decimal import * n = int(input()) x = Decimal('0.0000000000') for i in range(0, n): x += Decimal(input()) print('0.0000000000' if x == 0 else str(x))