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