while True:
    try:
        n=int(input())
        if n//2 == 0:
            continue
        else:
            print(n//2)
    except:
        break