"use strict";
function main(input) {
  let kari = input[0].trim().split(" ");
  let n = parseInt(kari[0]);

  console.log(Math.ceil(n/2));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"));