this is the question
Given a list of numbers, stop processing input after the cumulative sum of all the input becomes negative.
Input Format
A list of integers to be processed
Constraints
All numbers input are integers between -1000 and 1000.
Output Format
Print all the numbers before the cumulative sum become negative.
Sample Input
1
2
88
-100
49
Sample Output
1
2
88
this is the program i have written
s=[]
while True:
n=int(input())
if n<1 or n>1000:
break
else:
s.append(n)
for i in s:
print(i)
please tell what is wrong why test cases is coming wrong
please reply asap