n = int(input()) answer = 0 for i in range(n): num = int(input()) answer += num print(answer)