Simple Input Problem

my code works just fine when I put in input with the provided constraints but still it didn’t pass any of the test cases. Can you please tell me what is wrong with my code?

Here’s the link: https://ide.codingblocks.com/s/205272

Hey @tanvisharmaa, first of all first number didn’t represent the number of inputs, it is itself a number. code should be somewhat like this,
s = 0
n= int(input())

while(True):
    s+= n
    if s>=0:
        print(n)
    else:
        break
    n = int(input())  

You may need to correct little indentation when you copy and paste.

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush: