import java.util.Scanner;

class Rp1ABC093A{
  static public void main(String args[]){
    Scanner sc = new Scanner(System.in);
    
    String a = sc.nextInt();
    String b = sc.nextInt();
    String c = sc.nextInt();
    String S = sc,nextInt();
    if (S=abc)
      System.out.println("Yes");
    esle
      System.out.println("No");
  }
} 