n = int(input()) counter = 0 while True: n = n - 2 counter += 1 if n < 2 : break print(counter)