num = int(input()) l = [int(input()) for _ in range(num)] print(sum(l))