import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        new Main().run();
    }

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

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

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

    private void run() {
        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();
        if((A==B && B==C) || (A!=B) && B!= C && C != A) {
            System.out.println("No");
            return;
        }
        System.out.println("Yes");
        return;
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        new Main().run();
    }

    private void run() {
        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();
        if((A==B && B==C) || (A!=B) && B!= C && C != A) {
            System.out.println("No");
            return;
        }
        System.out.println("Yes");
        return;
    }
}