import java.util.Scanner

object Main{
  val sc = new Scanner(System.in)

  def main(srgs: Array[String]):Unit ={
    val n = sc.nextInt
    val k = sc.nextInt

    println(if( ( n + 1) / 2 >= k ) "YES" else "NO" )
 }
}