function main(input) {
    const args = input.split(' ')
    const N = args[0]
    const K = args[1]
    
    if(N>=2*K-1) console.log("YES")
  	else console.log("NO")
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));