n = int(input()) print(sum(int(input()) for x in range(N)))