"use strict"
function main(arg) {
    var data = Number(arg.trim().split("\n")[0])
    // console.log(parseInt(data / 2 ,10))
    console.log(Math.floor(data / 2) + data % 2)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));