import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
	int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int c = Integer.parseInt(sc.next());
    boolean flag = ( a==b && a!=c) || (a==c && b!=c) || (b==c && b!=a);
    if(flag){
      System.out.print("Yes");
    }else{
      System.out.print("No");
    }
    System.out.flush();
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
	int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int c = Integer.parseInt(sc.next());
    boolean flag = ( a==b && a!=c) || (a==c && b!=c) || (b==c && b!=a);
    if(flag){
      System.out.print("Yes");
    }else{
      System.out.print("No");
    }
    System.out.flush();
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
	int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int c = Integer.parseInt(sc.next());
    boolean flag = ( a==b && a!=c) || (a==c && b!=c) || (b==c && b!=a);
    if(flag){
      System.out.print("Yes");
    }else{
      System.out.print("No");
    }
    System.out.flush();
  } main {
    Scanner sc = new Scanner(System.in);
	int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int c = Integer.parseInt(sc.next());
    boolean flag = ( a==b && a!=c) || (a==c && b!=c) || (b==c && b!=a);
    if(flag){
      System.out.print("Yes");
    }else{
      System.out.print("No");
    }
    System.out.flush();
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int c = Integer.parseInt(sc.next()); c Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc boolean flag = ( a==b && a!=c) || (a==c && b!=c) || (b==c && b!=a); flag ( a==b && a!=c) || (a==c && b!=c) || (b==c && b!=a) ( a==b && a!=c) || (a==c && b!=c) || (b==c && b!=a) ( a==b && a!=c) a==b a b a!=c a c (a==c && b!=c) a==c a c b!=c b c (b==c && b!=a) b==c b c b!=a b a if(flag){
      System.out.print("Yes");
    }else{
      System.out.print("No");
    } flag {
      System.out.print("Yes");
    } System.out.print("Yes") System.out.print System.out System System.out "Yes" {
      System.out.print("No");
    } System.out.print("No") System.out.print System.out System System.out "No" System.out.flush() System.out.flush System.out System System.out String[] args args
import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
	int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int c = Integer.parseInt(sc.next());
    boolean flag = ( a==b && a!=c) || (a==c && b!=c) || (b==c && b!=a);
    if(flag){
      System.out.print("Yes");
    }else{
      System.out.print("No");
    }
    System.out.flush();
  }
}