import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    int c = 0;

    if (A == B) c++;
    if (B == C) c++;
    if (C == A) c++;

    if (c == 1) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

    
    sc.close();
  }
} import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    int c = 0;

    if (A == B) c++;
    if (B == C) c++;
    if (C == A) c++;

    if (c == 1) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

    
    sc.close();
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    int c = 0;

    if (A == B) c++;
    if (B == C) c++;
    if (C == A) c++;

    if (c == 1) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

    
    sc.close();
  } main {
    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    int c = 0;

    if (A == B) c++;
    if (B == C) c++;
    if (C == A) c++;

    if (c == 1) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

    
    sc.close();
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc int C = sc.nextInt(); C sc.nextInt() sc.nextInt sc int c = 0; c 0 if (A == B) c++; A == B A B c++ c if (B == C) c++; B == C B C c++ c if (C == A) c++; C == A C A c++ c if (c == 1) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    } c == 1 c 1 {
      System.out.println("Yes");
    } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
      System.out.println("No");
    } System.out.println("No") System.out.println System.out System System.out "No" sc.close() sc.close sc String[] args args public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    int c = 0;

    if (A == B) c++;
    if (B == C) c++;
    if (C == A) c++;

    if (c == 1) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

    
    sc.close();
  }
} public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    int c = 0;

    if (A == B) c++;
    if (B == C) c++;
    if (C == A) c++;

    if (c == 1) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

    
    sc.close();
  }
} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    int c = 0;

    if (A == B) c++;
    if (B == C) c++;
    if (C == A) c++;

    if (c == 1) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

    
    sc.close();
  }
}