import java.util.Scanner;

public class Main {

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

        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();

        int count = 0;

        if(num1 != num2){
            count++;
        }

        if(num2 != num3){
            count++;
        }

        if(num1 != num3){
            count++;
        }

        if(count == 1 || count ==2){
            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 scan = new Scanner(System.in);

        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();

        int count = 0;

        if(num1 != num2){
            count++;
        }

        if(num2 != num3){
            count++;
        }

        if(num1 != num3){
            count++;
        }

        if(count == 1 || count ==2){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} Main public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);

        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();

        int count = 0;

        if(num1 != num2){
            count++;
        }

        if(num2 != num3){
            count++;
        }

        if(num1 != num3){
            count++;
        }

        if(count == 1 || count ==2){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } main {
        Scanner scan = new Scanner(System.in);

        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();

        int count = 0;

        if(num1 != num2){
            count++;
        }

        if(num2 != num3){
            count++;
        }

        if(num1 != num3){
            count++;
        }

        if(count == 1 || count ==2){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num1 = scan.nextInt(); num1 scan.nextInt() scan.nextInt scan int num2 = scan.nextInt(); num2 scan.nextInt() scan.nextInt scan int num3 = scan.nextInt(); num3 scan.nextInt() scan.nextInt scan int count = 0; count 0 if(num1 != num2){
            count++;
        } num1 != num2 num1 num2 {
            count++;
        } count++ count if(num2 != num3){
            count++;
        } num2 != num3 num2 num3 {
            count++;
        } count++ count if(num1 != num3){
            count++;
        } num1 != num3 num1 num3 {
            count++;
        } count++ count if(count == 1 || count ==2){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        } count == 1 || count ==2 count == 1 count 1 count ==2 count 2 {
            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 scan = new Scanner(System.in);

        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();

        int count = 0;

        if(num1 != num2){
            count++;
        }

        if(num2 != num3){
            count++;
        }

        if(num1 != num3){
            count++;
        }

        if(count == 1 || count ==2){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} public class Main {

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

        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();

        int count = 0;

        if(num1 != num2){
            count++;
        }

        if(num2 != num3){
            count++;
        }

        if(num1 != num3){
            count++;
        }

        if(count == 1 || count ==2){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} Main
import java.util.Scanner;

public class Main {

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

        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();

        int count = 0;

        if(num1 != num2){
            count++;
        }

        if(num2 != num3){
            count++;
        }

        if(num1 != num3){
            count++;
        }

        if(count == 1 || count ==2){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}
