import sys readline=sys.stdin.readline write=sys.stdout.write from math import gcd as GCD import math N=int(readline()) ans=(N+1)//2 print(ans)