import java.util.Scanner;

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();

        int num = check(A,B)+check(B,C)+check(C,A);

        if(num == 0 || num == 3) {
            System.out.println("No");
        }
        if(num == 1) {
            System.out.println("Yes");
        }
        sc.close();
    }
    public static int check(int a, int b) {
        if(a == b) {
            return 1;
        } else {
            return 0;
        }
    }

} import java.util.Scanner; Scanner java.util 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();

        int num = check(A,B)+check(B,C)+check(C,A);

        if(num == 0 || num == 3) {
            System.out.println("No");
        }
        if(num == 1) {
            System.out.println("Yes");
        }
        sc.close();
    }
    public static int check(int a, int b) {
        if(a == b) {
            return 1;
        } else {
            return 0;
        }
    }

} 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();

        int num = check(A,B)+check(B,C)+check(C,A);

        if(num == 0 || num == 3) {
            System.out.println("No");
        }
        if(num == 1) {
            System.out.println("Yes");
        }
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();

        int num = check(A,B)+check(B,C)+check(C,A);

        if(num == 0 || num == 3) {
            System.out.println("No");
        }
        if(num == 1) {
            System.out.println("Yes");
        }
        sc.close();
    } 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 int num = check(A,B)+check(B,C)+check(C,A); num check(A,B)+check(B,C)+check(C,A) check(A,B)+check(B,C)+check(C,A) check(A,B) check A B check(B,C) check B C check(C,A) check C A if(num == 0 || num == 3) {
            System.out.println("No");
        } num == 0 || num == 3 num == 0 num 0 num == 3 num 3 {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" if(num == 1) {
            System.out.println("Yes");
        } num == 1 num 1 {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" sc.close() sc.close sc String[] args args public static int check(int a, int b) {
        if(a == b) {
            return 1;
        } else {
            return 0;
        }
    } check {
        if(a == b) {
            return 1;
        } else {
            return 0;
        }
    } if(a == b) {
            return 1;
        } else {
            return 0;
        } a == b a b {
            return 1;
        } return 1; 1 {
            return 0;
        } return 0; 0 int a a int b b 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();

        int num = check(A,B)+check(B,C)+check(C,A);

        if(num == 0 || num == 3) {
            System.out.println("No");
        }
        if(num == 1) {
            System.out.println("Yes");
        }
        sc.close();
    }
    public static int check(int a, int b) {
        if(a == b) {
            return 1;
        } else {
            return 0;
        }
    }

} 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();

        int num = check(A,B)+check(B,C)+check(C,A);

        if(num == 0 || num == 3) {
            System.out.println("No");
        }
        if(num == 1) {
            System.out.println("Yes");
        }
        sc.close();
    }
    public static int check(int a, int b) {
        if(a == b) {
            return 1;
        } else {
            return 0;
        }
    }

} Main
import java.util.Scanner;

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();

        int num = check(A,B)+check(B,C)+check(C,A);

        if(num == 0 || num == 3) {
            System.out.println("No");
        }
        if(num == 1) {
            System.out.println("Yes");
        }
        sc.close();
    }
    public static int check(int a, int b) {
        if(a == b) {
            return 1;
        } else {
            return 0;
        }
    }

}
