const lines = []; const reader = require('readline').createInterface({ input: process.stdin, output: process.stdout }); reader.on('line', function (line) { lines.push(line); }); reader.on('close', function () { const input = parseInt(lines[0]) const remainder = input % 2 const answer = remainder == 0 ? input / 2 : (input + 1) / 2 console.log(answer); });