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

        boolean is1 = A == B;
        boolean is2 = B == C;
        boolean is3 = C == A;

        if (is1 && !is2 && !is3) {
            System.out.println("Yes");
        } else if (!is1 && !is2 && is3) {
            System.out.println("Yes");
        } else if (!is1 && is2 && !is3) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        
    }
} import java.util.Scanner; Scanner java.util 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();

        boolean is1 = A == B;
        boolean is2 = B == C;
        boolean is3 = C == A;

        if (is1 && !is2 && !is3) {
            System.out.println("Yes");
        } else if (!is1 && !is2 && is3) {
            System.out.println("Yes");
        } else if (!is1 && is2 && !is3) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        
    }
} 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();

        boolean is1 = A == B;
        boolean is2 = B == C;
        boolean is3 = C == A;

        if (is1 && !is2 && !is3) {
            System.out.println("Yes");
        } else if (!is1 && !is2 && is3) {
            System.out.println("Yes");
        } else if (!is1 && is2 && !is3) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        
    } main {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();

        boolean is1 = A == B;
        boolean is2 = B == C;
        boolean is3 = C == A;

        if (is1 && !is2 && !is3) {
            System.out.println("Yes");
        } else if (!is1 && !is2 && is3) {
            System.out.println("Yes");
        } else if (!is1 && is2 && !is3) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        
    } 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 boolean is1 = A == B; is1 A == B A B boolean is2 = B == C; is2 B == C B C boolean is3 = C == A; is3 C == A C A if (is1 && !is2 && !is3) {
            System.out.println("Yes");
        } else if (!is1 && !is2 && is3) {
            System.out.println("Yes");
        } else if (!is1 && is2 && !is3) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } is1 && !is2 && !is3 is1 && !is2 && !is3 is1 !is2 is2 !is3 is3 {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" if (!is1 && !is2 && is3) {
            System.out.println("Yes");
        } else if (!is1 && is2 && !is3) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } !is1 && !is2 && is3 !is1 && !is2 && is3 !is1 is1 !is2 is2 is3 {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" if (!is1 && is2 && !is3) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } !is1 && is2 && !is3 !is1 && is2 && !is3 !is1 is1 is2 !is3 is3 {
            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[] args args
import java.util.Scanner;
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();

        boolean is1 = A == B;
        boolean is2 = B == C;
        boolean is3 = C == A;

        if (is1 && !is2 && !is3) {
            System.out.println("Yes");
        } else if (!is1 && !is2 && is3) {
            System.out.println("Yes");
        } else if (!is1 && is2 && !is3) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        
    }
}