x=int(input())
while x==0:
print('0')
break
while x!=0:
print(int(x//abs(x)))
既然不能用if,那把if改寫成while...break就好了