N = int(input()) L = [input() for i in range(N)] print(sum(L))