process.stdin.resume();
process.stdin.setEncoding('utf8');

function solve(n){
    return Math.floor(n / 2) + n % 2;
}

function Main(input){
    n = parseInt(input);
    ans = solve(n);
    console.log(ans);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));