N = int(input()) print(sum(map(int, (input() for _ in range(N)))))