num = int(input()) sum = 0 for i in range(num): sum += int(input()) print(sum)