import java.util.Scanner;

public class Main {

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

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);
    	int a = sc.nextInt();
    	int b = sc.nextInt();
    	int c = sc.nextInt();
    	sc.close();
    	if(a == b && b == c){
    		System.out.println("No");
    		return;
    	}else if(a  != b && b != c && a != c){
    		System.out.println("No");
    		return;
    	}
    	System.out.println("Yes");
    }
} import java.util.Scanner; Scanner java.util public class Main {

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

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);
    	int a = sc.nextInt();
    	int b = sc.nextInt();
    	int c = sc.nextInt();
    	sc.close();
    	if(a == b && b == c){
    		System.out.println("No");
    		return;
    	}else if(a  != b && b != c && a != c){
    		System.out.println("No");
    		return;
    	}
    	System.out.println("Yes");
    }
} Main public static void main(String[] args) throws Exception {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);
    	int a = sc.nextInt();
    	int b = sc.nextInt();
    	int c = sc.nextInt();
    	sc.close();
    	if(a == b && b == c){
    		System.out.println("No");
    		return;
    	}else if(a  != b && b != c && a != c){
    		System.out.println("No");
    		return;
    	}
    	System.out.println("Yes");
    } main {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);
    	int a = sc.nextInt();
    	int b = sc.nextInt();
    	int c = sc.nextInt();
    	sc.close();
    	if(a == b && b == c){
    		System.out.println("No");
    		return;
    	}else if(a  != b && b != c && a != c){
    		System.out.println("No");
    		return;
    	}
    	System.out.println("Yes");
    } 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 sc.close() sc.close sc if(a == b && b == c){
    		System.out.println("No");
    		return;
    	}else if(a  != b && b != c && a != c){
    		System.out.println("No");
    		return;
    	} a == b && b == c a == b a b b == c b c {
    		System.out.println("No");
    		return;
    	} System.out.println("No") System.out.println System.out System System.out "No" return; if(a  != b && b != c && a != c){
    		System.out.println("No");
    		return;
    	} 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("No");
    		return;
    	} System.out.println("No") System.out.println System.out System System.out "No" return; System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {

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

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);
    	int a = sc.nextInt();
    	int b = sc.nextInt();
    	int c = sc.nextInt();
    	sc.close();
    	if(a == b && b == c){
    		System.out.println("No");
    		return;
    	}else if(a  != b && b != c && a != c){
    		System.out.println("No");
    		return;
    	}
    	System.out.println("Yes");
    }
} public class Main {

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

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);
    	int a = sc.nextInt();
    	int b = sc.nextInt();
    	int c = sc.nextInt();
    	sc.close();
    	if(a == b && b == c){
    		System.out.println("No");
    		return;
    	}else if(a  != b && b != c && a != c){
    		System.out.println("No");
    		return;
    	}
    	System.out.println("Yes");
    }
} Main
import java.util.Scanner;

public class Main {

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

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);
    	int a = sc.nextInt();
    	int b = sc.nextInt();
    	int c = sc.nextInt();
    	sc.close();
    	if(a == b && b == c){
    		System.out.println("No");
    		return;
    	}else if(a  != b && b != c && a != c){
    		System.out.println("No");
    		return;
    	}
    	System.out.println("Yes");
    }
}