process.stdin.resume();
process.stdin.setEncoding('utf8');
// your code goes here
function minutosHamburguesas(N, X) {
const totalCaras = N * 2;
const grupos = Math.ceil(totalCaras / X);
return grupos;
}
cHJvY2Vzcy5zdGRpbi5yZXN1bWUoKTsKcHJvY2Vzcy5zdGRpbi5zZXRFbmNvZGluZygndXRmOCcpOwoKLy8geW91ciBjb2RlIGdvZXMgaGVyZQpmdW5jdGlvbiBtaW51dG9zSGFtYnVyZ3Vlc2FzKE4sIFgpIHsKICAgIGNvbnN0IHRvdGFsQ2FyYXMgPSBOICogMjsKICAgIGNvbnN0IGdydXBvcyA9IE1hdGguY2VpbCh0b3RhbENhcmFzIC8gWCk7CiAgICByZXR1cm4gZ3J1cG9zOwp9Cg==