n,m=gets.split.map &:to_i x,y=gets.split.map &:to_i if (x-y)%(2*m)==0 || (x+y-1)%(2*m)==0 puts :YES else puts :NO end