n,m=gets.split.map(&:to_i)
x,y=gets.split.map(&:to_i)

cx=(x-1)%(2*m)+1
cx=m+m-cx+1 if cx>m
cy=(y-1)%(2*m)+1
cy=m+m-cy+1 if cy>m

puts cx==cy ? "YES" : "NO"