"use strict";

const main = arg => {
    const tmp = arg.split(/\s/).map(s=>parseInt(s));
    console.log((tmp[0] + 1) / 2 >=  tmp[1] ? 'YES' : 'NO');
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));