while 1:
    try:
        n=int(input())
        if n!=0:
            print(n//2)
    except:
        break