"use strict";
const Main = (input) =>{
   let xs = input.trim().split(' ').map(v=>parseInt(v,10));
   if(xs[0]%2==0){
   console.log(xs[0]/2);
   }else{
   console.log(Math.ceil(xs[0]/2));
   }
}
Main(require('fs').readFileSync('/dev/stdin','utf8'));