program main 
   implicit none
   !integer,allocatable,dimension(:)::a
   integer::n,k
   integer::i,j
   read(*,*)n,k
   if((n+1)/2>=k)then
      write(*,"(a3)")"YES"
   else
      print "(a)","NO"
   endif
	!read(*,*)a
end program main
