N = input() n = [] for _ in range(0, int(N)): n.append(input()) count = 0 for idx in range(0, int(N)): count = count + int(n[idx]) idx = idx + 1 print(count)