summ = 0s = input()while s != "The End": summ += int(s) s = input()print(summ)
3 5 The End
8
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!