fun main(args: Array<String>) {
    val (n, k) = readLine()!!.split(' ').map(String::toLong)
    if (Math.ceil(n.toDouble() / 2).toLong() >= k) {
        println("YES")
    } else {
        println("NO")
    }
}
