from collections import deque
import collections
from collections import Counter
import bisect
import math
import fractions
import itertools
import scipy
import numpy
from scipy.special import comb

N=int(input())
if(N%2==1):
    print((N//2)+1)
else:
    print(N//2)