var stdin = require("fs").readFileSync("/dev/stdin", "utf8");
stdin = stdin.trim().split("\n").reverse();
var stdout = [];



var n = parseInt(stdin.pop(), 10);
x = parseInt((n + 1) / 2);
stdout.push(x);



stdout = stdout.join(" ");
console.log(stdout);