N = int(input()) l = [] for i in range(N): l.append(input()) k = 0 for i in range(N): k = k + int(l[i]) print(k)