Code is not runing

kindly help with my code

n =int(input()) sum=0 while sum>=0: s = int(input()) sum = sum+s print(sum)

s =int(input()) 
sum=s 
while sum>=0: 
	print(s)
	s = int(input()) 
	sum = sum+s 

I have made changes in your code. If you are unable to understand any part of it ,you can ask me by replying to this thread.