# https://yukicoder.me/problems/no/1986 N = int(input()) # 美味しい:1 , 普通:0 # candy = [1 if i % 2 == 0 else 0 for i in range(N)] if N % 2 == 0: print(int(N/2)) else: print(1)