import java.util.*; public class Main { private static Scanner sc = new Scanner(System.in); public static void main(String[] args) throws Exception { int n = sc.nextInt(); int m = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int h = 0; int t = 0; int c = 0; while (true) { for (int i = 1;i <= m;i++) { c++; if (c==x) { h = i; } else if (c==y) { t = i; } } for (int i = m;i > 0;i--) { c++; if (c==x) { h = i; } else if (c==y) { t = i; } } if (c>n) break; } if (h==t) { System.out.println("YES"); } else { System.out.println("NO"); } } }