import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	    // input A B C
        // A = B not C || A = C not B || B = C not A
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        String retStr = "No";
        if(a == b){
            if(a == c){
            } else {
                retStr = "Yes";
            }
        } else {
            if(a == c || b == c){
                retStr = "Yes";
            }
        }
        System.out.println(retStr);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
	    // input A B C
        // A = B not C || A = C not B || B = C not A
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        String retStr = "No";
        if(a == b){
            if(a == c){
            } else {
                retStr = "Yes";
            }
        } else {
            if(a == c || b == c){
                retStr = "Yes";
            }
        }
        System.out.println(retStr);
    }
} Main public static void main(String[] args) {
	    // input A B C
        // A = B not C || A = C not B || B = C not A
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        String retStr = "No";
        if(a == b){
            if(a == c){
            } else {
                retStr = "Yes";
            }
        } else {
            if(a == c || b == c){
                retStr = "Yes";
            }
        }
        System.out.println(retStr);
    } main {
	    // input A B C
        // A = B not C || A = C not B || B = C not A
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        String retStr = "No";
        if(a == b){
            if(a == c){
            } else {
                retStr = "Yes";
            }
        } else {
            if(a == c || b == c){
                retStr = "Yes";
            }
        }
        System.out.println(retStr);
    } 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 String retStr = "No"; retStr "No" if(a == b){
            if(a == c){
            } else {
                retStr = "Yes";
            }
        } else {
            if(a == c || b == c){
                retStr = "Yes";
            }
        } a == b a b {
            if(a == c){
            } else {
                retStr = "Yes";
            }
        } if(a == c){
            } else {
                retStr = "Yes";
            } a == c a c {
            } {
                retStr = "Yes";
            } retStr = "Yes" retStr "Yes" {
            if(a == c || b == c){
                retStr = "Yes";
            }
        } if(a == c || b == c){
                retStr = "Yes";
            } a == c || b == c a == c a c b == c b c {
                retStr = "Yes";
            } retStr = "Yes" retStr "Yes" System.out.println(retStr) System.out.println System.out System System.out retStr String[] args args public class Main {

    public static void main(String[] args) {
	    // input A B C
        // A = B not C || A = C not B || B = C not A
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        String retStr = "No";
        if(a == b){
            if(a == c){
            } else {
                retStr = "Yes";
            }
        } else {
            if(a == c || b == c){
                retStr = "Yes";
            }
        }
        System.out.println(retStr);
    }
} public class Main {

    public static void main(String[] args) {
	    // input A B C
        // A = B not C || A = C not B || B = C not A
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        String retStr = "No";
        if(a == b){
            if(a == c){
            } else {
                retStr = "Yes";
            }
        } else {
            if(a == c || b == c){
                retStr = "Yes";
            }
        }
        System.out.println(retStr);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	    // input A B C
        // A = B not C || A = C not B || B = C not A
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        String retStr = "No";
        if(a == b){
            if(a == c){
            } else {
                retStr = "Yes";
            }
        } else {
            if(a == c || b == c){
                retStr = "Yes";
            }
        }
        System.out.println(retStr);
    }
}
