PROGRAM ATCODER

implicit none
integer :: n,k

read(*,*) n,k

if (n<k) then
	write(*,'(a)') 'YES'
else if (n==k .and. mod(n,2) == 0) then
	write(*,'(a)') 'YES'
else
	write(*,'(a)') 'NO'
end if

END PROGRAM ATCODER
