import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { static String isSatisfiable(int c1, int c2, int h1, int h2){ // Complete this function if(c1 <= h1 && c1 <= h2 && c2 <= h1 && c2 <= h2) return "YES"; return "NO"; } public static void main(String[] args) { Scanner in = new Scanner(System.in); // Return "YES" if all four conditions can be satisfied, and "NO" otherwise int c1 = in.nextInt(); int c2 = in.nextInt(); int h1 = in.nextInt(); int h2 = in.nextInt(); String result = isSatisfiable(c1, c2, h1, h2); System.out.println(result); } }