N = int(input()) s = [int(input()) for i in range(N)] total = 0 for i in range(N): total += s[i] print(total)