import java.util.*;
import java.lang.*;
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();
		for( int i=0; i<1; i++ ){
			if( A==B && B!=C ){
				System.out.println("Yes");
				break;
			}
			if( A!=B && B==C ){
				System.out.println("Yes");
				break;
			}
			if( A==C && B!=C ){
				System.out.println("Yes");
				break;
			}
			if( i==0 ){
				System.out.println("No");
			}
		}
	}
} import java.util.*; util.* java import java.lang.*; lang.* java 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();
		for( int i=0; i<1; i++ ){
			if( A==B && B!=C ){
				System.out.println("Yes");
				break;
			}
			if( A!=B && B==C ){
				System.out.println("Yes");
				break;
			}
			if( A==C && B!=C ){
				System.out.println("Yes");
				break;
			}
			if( i==0 ){
				System.out.println("No");
			}
		}
	}
} 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();
		for( int i=0; i<1; i++ ){
			if( A==B && B!=C ){
				System.out.println("Yes");
				break;
			}
			if( A!=B && B==C ){
				System.out.println("Yes");
				break;
			}
			if( A==C && B!=C ){
				System.out.println("Yes");
				break;
			}
			if( i==0 ){
				System.out.println("No");
			}
		}
	} main {
		Scanner sc = new Scanner(System.in);

		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		for( int i=0; i<1; i++ ){
			if( A==B && B!=C ){
				System.out.println("Yes");
				break;
			}
			if( A!=B && B==C ){
				System.out.println("Yes");
				break;
			}
			if( A==C && B!=C ){
				System.out.println("Yes");
				break;
			}
			if( i==0 ){
				System.out.println("No");
			}
		}
	} 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 for( int i=0; i<1; i++ ){
			if( A==B && B!=C ){
				System.out.println("Yes");
				break;
			}
			if( A!=B && B==C ){
				System.out.println("Yes");
				break;
			}
			if( A==C && B!=C ){
				System.out.println("Yes");
				break;
			}
			if( i==0 ){
				System.out.println("No");
			}
		} int i=0; int i=0; i 0 i<1 i 1 i++ i++ i {
			if( A==B && B!=C ){
				System.out.println("Yes");
				break;
			}
			if( A!=B && B==C ){
				System.out.println("Yes");
				break;
			}
			if( A==C && B!=C ){
				System.out.println("Yes");
				break;
			}
			if( i==0 ){
				System.out.println("No");
			}
		} {
			if( A==B && B!=C ){
				System.out.println("Yes");
				break;
			}
			if( A!=B && B==C ){
				System.out.println("Yes");
				break;
			}
			if( A==C && B!=C ){
				System.out.println("Yes");
				break;
			}
			if( i==0 ){
				System.out.println("No");
			}
		} if( A==B && B!=C ){
				System.out.println("Yes");
				break;
			} A==B && B!=C A==B A B B!=C B C {
				System.out.println("Yes");
				break;
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" break; if( A!=B && B==C ){
				System.out.println("Yes");
				break;
			} A!=B && B==C A!=B A B B==C B C {
				System.out.println("Yes");
				break;
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" break; if( A==C && B!=C ){
				System.out.println("Yes");
				break;
			} A==C && B!=C A==C A C B!=C B C {
				System.out.println("Yes");
				break;
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" break; if( i==0 ){
				System.out.println("No");
			} i==0 i 0 {
				System.out.println("No");
			} System.out.println("No") System.out.println System.out System System.out "No" 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();
		for( int i=0; i<1; i++ ){
			if( A==B && B!=C ){
				System.out.println("Yes");
				break;
			}
			if( A!=B && B==C ){
				System.out.println("Yes");
				break;
			}
			if( A==C && B!=C ){
				System.out.println("Yes");
				break;
			}
			if( i==0 ){
				System.out.println("No");
			}
		}
	}
} 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();
		for( int i=0; i<1; i++ ){
			if( A==B && B!=C ){
				System.out.println("Yes");
				break;
			}
			if( A!=B && B==C ){
				System.out.println("Yes");
				break;
			}
			if( A==C && B!=C ){
				System.out.println("Yes");
				break;
			}
			if( i==0 ){
				System.out.println("No");
			}
		}
	}
} Main
import java.util.*;
import java.lang.*;
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();
		for( int i=0; i<1; i++ ){
			if( A==B && B!=C ){
				System.out.println("Yes");
				break;
			}
			if( A!=B && B==C ){
				System.out.println("Yes");
				break;
			}
			if( A==C && B!=C ){
				System.out.println("Yes");
				break;
			}
			if( i==0 ){
				System.out.println("No");
			}
		}
	}
}