n = input() N = int(n) a = 0 for v in range(0, N): b = input() c = int(b) a += c print(a)