n = int(input()) print(str(sum([int(input()) for _ in range(n)])) + '\n')