import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		if(a == b && b == c){
		    out.println("No");
		}else if(a != b && b != c && c != a){
		    out.println("No");
		}else{
		    out.println("Yes");
		}
        out.close();
        
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		if(a == b && b == c){
		    out.println("No");
		}else if(a != b && b != c && c != a){
		    out.println("No");
		}else{
		    out.println("Yes");
		}
        out.close();
        
    }
} Main public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		if(a == b && b == c){
		    out.println("No");
		}else if(a != b && b != c && c != a){
		    out.println("No");
		}else{
		    out.println("Yes");
		}
        out.close();
        
    } main {

        Scanner scan = new Scanner(System.in);
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		if(a == b && b == c){
		    out.println("No");
		}else if(a != b && b != c && c != a){
		    out.println("No");
		}else{
		    out.println("Yes");
		}
        out.close();
        
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out)); out new PrintWriter(new OutputStreamWriter(System.out)) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = scan.nextInt(); c scan.nextInt() scan.nextInt scan if(a == b && b == c){
		    out.println("No");
		}else if(a != b && b != c && c != a){
		    out.println("No");
		}else{
		    out.println("Yes");
		} a == b && b == c a == b a b b == c b c {
		    out.println("No");
		} out.println("No") out.println out "No" if(a != b && b != c && c != a){
		    out.println("No");
		}else{
		    out.println("Yes");
		} a != b && b != c && c != a a != b && b != c && c != a a != b a b b != c b c c != a c a {
		    out.println("No");
		} out.println("No") out.println out "No" {
		    out.println("Yes");
		} out.println("Yes") out.println out "Yes" out.close() out.close out String[] args args public class Main {
    public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		if(a == b && b == c){
		    out.println("No");
		}else if(a != b && b != c && c != a){
		    out.println("No");
		}else{
		    out.println("Yes");
		}
        out.close();
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		if(a == b && b == c){
		    out.println("No");
		}else if(a != b && b != c && c != a){
		    out.println("No");
		}else{
		    out.println("Yes");
		}
        out.close();
        
    }
} Main
import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		if(a == b && b == c){
		    out.println("No");
		}else if(a != b && b != c && c != a){
		    out.println("No");
		}else{
		    out.println("Yes");
		}
        out.close();
        
    }
}