fork download
  1. summ = 0
  2. s = input()
  3. while s != "The End":
  4. summ += int(s)
  5. s = input()
  6. print(summ)
Success #stdin #stdout 0.02s 9116KB
stdin
3
5
The End
stdout
8