using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Text.RegularExpressions; using System.Linq; class Magatro { static Scanner sc = new Scanner(); static int N, M, X, Y; static void Main() { N = sc.NextInt(); M = sc.NextInt(); X = sc.NextInt(); Y = sc.NextInt(); if (Class(X) == Class(Y)) { Console.WriteLine("YES"); } else { Console.WriteLine("NO"); } } static int Class(int num) { int q = (num + M - 1) / M; if (q % 2 == 0) { return M - (num % M)+1; } else { int res = num % M; if (res == 0) { return M; } else { return res; } } } } public class Scanner { private string[] S; private int Index; private char Separator; public Scanner(char separator=' ') { Index = 0; Separator = separator; } public string Next() { string result; if (S == null || Index >= S.Length) { S = Line(); Index = 0; } result = S[Index]; Index++; return result; } private string[] Line() { return Console.ReadLine().Split(Separator); } public int NextInt() { return int.Parse(Next()); } public double NextDouble() { return double.Parse(Next()); } public long NextLong() { return long.Parse(Next()); } }