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