a=0
b=0
x=int(input())
while x:
    if x==0:
        break
    a=a+x
    b=b+1
c=a/b
print(c)


이상태에서 0을 입력해도 끝이 안나는데 왜이러는거임?