N = int(input()) LIST = [input() for i in range(N)] loop = 0 output = 0 while loop < N: output += LIST[loop] loop += 1 print(output)