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