num = int(input()) total = 0 for _ in range(num): total += int(input()) print(total)