import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] sa = br.readLine().split(" "); int y1 = Integer.parseInt(sa[1]); int y2 = Integer.parseInt(sa[3]); br.close(); if (y1 == y2) { System.out.println("Yes"); } else { System.out.println("No"); } } }