N = int(input()) loop = 0 output = 0 while loop < N: INT = int(input()) output += INT loop += 1 print(output)