import java.util.*;
import java.io.*;
 
public class Main{
 
	public static void main(String[] $){
		Scanner s = new Scanner(System.in);
        int A = s.nextInt();
        int B = s.nextInt();
        int C = s.nextInt();
        if(A == B && B != C && A != C){
            System.out.println("Yes");
        }else if(A != B && B == C && A != C){
            System.out.println("Yes");
        }else if(A != B && B != C && A == C){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
		
	}
}  import java.util.*; util.* java import java.io.*; io.* java public class Main{
 
	public static void main(String[] $){
		Scanner s = new Scanner(System.in);
        int A = s.nextInt();
        int B = s.nextInt();
        int C = s.nextInt();
        if(A == B && B != C && A != C){
            System.out.println("Yes");
        }else if(A != B && B == C && A != C){
            System.out.println("Yes");
        }else if(A != B && B != C && A == C){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
		
	}
} Main public static void main(String[] $){
		Scanner s = new Scanner(System.in);
        int A = s.nextInt();
        int B = s.nextInt();
        int C = s.nextInt();
        if(A == B && B != C && A != C){
            System.out.println("Yes");
        }else if(A != B && B == C && A != C){
            System.out.println("Yes");
        }else if(A != B && B != C && A == C){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
		
	} main {
		Scanner s = new Scanner(System.in);
        int A = s.nextInt();
        int B = s.nextInt();
        int C = s.nextInt();
        if(A == B && B != C && A != C){
            System.out.println("Yes");
        }else if(A != B && B == C && A != C){
            System.out.println("Yes");
        }else if(A != B && B != C && A == C){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
		
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int A = s.nextInt(); A s.nextInt() s.nextInt s int B = s.nextInt(); B s.nextInt() s.nextInt s int C = s.nextInt(); C s.nextInt() s.nextInt s if(A == B && B != C && A != C){
            System.out.println("Yes");
        }else if(A != B && B == C && A != C){
            System.out.println("Yes");
        }else if(A != B && B != C && A == C){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        } A == B && B != C && A != C A == B && B != C && A != C A == B A B B != C B C A != C A C {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" if(A != B && B == C && A != C){
            System.out.println("Yes");
        }else if(A != B && B != C && A == C){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        } A != B && B == C && A != C A != B && B == C && A != C A != B A B B == C B C A != C A C {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" if(A != B && B != C && A == C){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        } A != B && B != C && A == C A != B && B != C && A == C A != B A B B != C B C A == C A C {
            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" String[] $ $ public class Main{
 
	public static void main(String[] $){
		Scanner s = new Scanner(System.in);
        int A = s.nextInt();
        int B = s.nextInt();
        int C = s.nextInt();
        if(A == B && B != C && A != C){
            System.out.println("Yes");
        }else if(A != B && B == C && A != C){
            System.out.println("Yes");
        }else if(A != B && B != C && A == C){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
		
	}
} public class Main{
 
	public static void main(String[] $){
		Scanner s = new Scanner(System.in);
        int A = s.nextInt();
        int B = s.nextInt();
        int C = s.nextInt();
        if(A == B && B != C && A != C){
            System.out.println("Yes");
        }else if(A != B && B == C && A != C){
            System.out.println("Yes");
        }else if(A != B && B != C && A == C){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
		
	}
} Main
import java.util.*;
import java.io.*;
 
public class Main{
 
	public static void main(String[] $){
		Scanner s = new Scanner(System.in);
        int A = s.nextInt();
        int B = s.nextInt();
        int C = s.nextInt();
        if(A == B && B != C && A != C){
            System.out.println("Yes");
        }else if(A != B && B == C && A != C){
            System.out.println("Yes");
        }else if(A != B && B != C && A == C){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
		
	}
} 