function main(input){
    var tmp = input.split(/\n/).map(str=>{return parseInt(str)});
    console.log(tmp[0] >= tmp[1] * 2 - 1 ? 'YES' : 'NO');
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));