i have written this code in python for solving this problem
def fn(n):
s=0
for i in range(n):
j=int(input())
s=s+j
if (s>0):
print(j)
else:
break
fn(1000000)
and all test cases except test case 3 are being satisfied. what could be the possible region?