while True:
    try:
        Nums = int(input())
        if Nums:
            print(Nums//2)    # 2个就可以借一个,所以对2取整即可
    except:
        break