Simple Input problem related query

In the question it says that list of numbers will be input then it also says to stop processing the input as soon as cumulative sum becomes zero…so I am not getting how to input list of numbers…as well as how to function with loops like how many iterations ???