Regarding test cases

I HAVE TRIED IT MANY TIMES BUT CAN’T PASS THE TEST CASES.PLEASE HELP ME WITH THE TEST CASES.
QUESTION IS–
Given a list of numbers, stop processing input after the cumulative sum of all the input becomes negative.

MY CODE–
li = [int(x) for x in input().split()]

Sum = 0

for i in range(len(li)) :
Sum += li[i]
if Sum > 0 :
print(li[i])
else :
break