
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();

        if ((A == B && A != C) || (A == C && A != B) || (B == C &&  A != B)) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();

        if ((A == B && A != C) || (A == C && A != B) || (B == C &&  A != B)) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();

        if ((A == B && A != C) || (A == C && A != B) || (B == C &&  A != B)) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } main {
        Scanner scanner = new Scanner(System.in);

        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();

        if ((A == B && A != C) || (A == C && A != B) || (B == C &&  A != B)) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int A = scanner.nextInt(); A scanner.nextInt() scanner.nextInt scanner int B = scanner.nextInt(); B scanner.nextInt() scanner.nextInt scanner int C = scanner.nextInt(); C scanner.nextInt() scanner.nextInt scanner if ((A == B && A != C) || (A == C && A != B) || (B == C &&  A != B)) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } (A == B && A != C) || (A == C && A != B) || (B == C &&  A != B) (A == B && A != C) || (A == C && A != B) || (B == C &&  A != B) (A == B && A != C) A == B A B A != C A C (A == C && A != B) A == C A C A != B A B (B == C &&  A != B) B == C B C A != B A B {
            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 public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();

        if ((A == B && A != C) || (A == C && A != B) || (B == C &&  A != B)) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();

        if ((A == B && A != C) || (A == C && A != B) || (B == C &&  A != B)) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();

        if ((A == B && A != C) || (A == C && A != B) || (B == C &&  A != B)) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}
