process.stdin.resume();
process.stdin.setEncoding('utf8');
var lines = [];
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});
reader.on('line', (line) => {
  lines.push(line);
});
reader.on('close', () => {
 var Sn = lines[0].split(' ');
 var N = parseInt(Sn[0]);
 var K = parseInt(Sn[1]);
 var num = parseInt(N + 1) / 2; 
console.log(num);
 if (num >= K){
console.log("YES");
} else {
console.log("NO");
}
});