import java.util.*;
public class Main {
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a, b, c;
  	a = sc.nextInt();
  	b = sc.nextInt();
  	c = sc.nextInt();
  	
  	if((a == b)&&(a == c)){
      	System.out.println("No");
      	System.exit(0);
    }
  	if((a == b)||(a == c)||(b == c)){
     	System.out.println("Yes");
      	System.exit(0);
    }
  	System.out.println("No");
  	System.exit(0);
	}
} import java.util.*; util.* java public class Main {
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a, b, c;
  	a = sc.nextInt();
  	b = sc.nextInt();
  	c = sc.nextInt();
  	
  	if((a == b)&&(a == c)){
      	System.out.println("No");
      	System.exit(0);
    }
  	if((a == b)||(a == c)||(b == c)){
     	System.out.println("Yes");
      	System.exit(0);
    }
  	System.out.println("No");
  	System.exit(0);
	}
} Main public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a, b, c;
  	a = sc.nextInt();
  	b = sc.nextInt();
  	c = sc.nextInt();
  	
  	if((a == b)&&(a == c)){
      	System.out.println("No");
      	System.exit(0);
    }
  	if((a == b)||(a == c)||(b == c)){
     	System.out.println("Yes");
      	System.exit(0);
    }
  	System.out.println("No");
  	System.exit(0);
	} main {
	Scanner sc = new Scanner(System.in);
	int a, b, c;
  	a = sc.nextInt();
  	b = sc.nextInt();
  	c = sc.nextInt();
  	
  	if((a == b)&&(a == c)){
      	System.out.println("No");
      	System.exit(0);
    }
  	if((a == b)||(a == c)||(b == c)){
     	System.out.println("Yes");
      	System.exit(0);
    }
  	System.out.println("No");
  	System.exit(0);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a a b b c; c a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc c = sc.nextInt() c sc.nextInt() sc.nextInt sc if((a == b)&&(a == c)){
      	System.out.println("No");
      	System.exit(0);
    } (a == b)&&(a == c) (a == b) a b (a == c) a c {
      	System.out.println("No");
      	System.exit(0);
    } System.out.println("No") System.out.println System.out System System.out "No" System.exit(0) System.exit System 0 if((a == b)||(a == c)||(b == c)){
     	System.out.println("Yes");
      	System.exit(0);
    } (a == b)||(a == c)||(b == c) (a == b)||(a == c)||(b == c) (a == b) a b (a == c) a c (b == c) b c {
     	System.out.println("Yes");
      	System.exit(0);
    } System.out.println("Yes") System.out.println System.out System System.out "Yes" System.exit(0) System.exit System 0 System.out.println("No") System.out.println System.out System System.out "No" System.exit(0) System.exit System 0 String[] args args public class Main {
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a, b, c;
  	a = sc.nextInt();
  	b = sc.nextInt();
  	c = sc.nextInt();
  	
  	if((a == b)&&(a == c)){
      	System.out.println("No");
      	System.exit(0);
    }
  	if((a == b)||(a == c)||(b == c)){
     	System.out.println("Yes");
      	System.exit(0);
    }
  	System.out.println("No");
  	System.exit(0);
	}
} public class Main {
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a, b, c;
  	a = sc.nextInt();
  	b = sc.nextInt();
  	c = sc.nextInt();
  	
  	if((a == b)&&(a == c)){
      	System.out.println("No");
      	System.exit(0);
    }
  	if((a == b)||(a == c)||(b == c)){
     	System.out.println("Yes");
      	System.exit(0);
    }
  	System.out.println("No");
  	System.exit(0);
	}
} Main
import java.util.*;
public class Main {
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a, b, c;
  	a = sc.nextInt();
  	b = sc.nextInt();
  	c = sc.nextInt();
  	
  	if((a == b)&&(a == c)){
      	System.out.println("No");
      	System.exit(0);
    }
  	if((a == b)||(a == c)||(b == c)){
     	System.out.println("Yes");
      	System.exit(0);
    }
  	System.out.println("No");
  	System.exit(0);
	}
}