import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        int inputANum;
        int inputBNum;
        int inputCNum;

        Scanner scanner = new Scanner(System.in);
        String inputData = scanner.nextLine();
        scanner.close();

        String[] editInputData = inputData.split(" ");

        inputANum = Integer.parseInt(editInputData[0]);
        inputBNum = Integer.parseInt(editInputData[1]);
        inputCNum = Integer.parseInt(editInputData[2]);

        if ((inputANum == inputBNum && inputBNum == inputCNum) || (inputANum != inputBNum && inputBNum != inputCNum && inputANum != inputCNum)) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }

    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        int inputANum;
        int inputBNum;
        int inputCNum;

        Scanner scanner = new Scanner(System.in);
        String inputData = scanner.nextLine();
        scanner.close();

        String[] editInputData = inputData.split(" ");

        inputANum = Integer.parseInt(editInputData[0]);
        inputBNum = Integer.parseInt(editInputData[1]);
        inputCNum = Integer.parseInt(editInputData[2]);

        if ((inputANum == inputBNum && inputBNum == inputCNum) || (inputANum != inputBNum && inputBNum != inputCNum && inputANum != inputCNum)) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }

    }
} Main public static void main(String[] args) throws Exception {
        int inputANum;
        int inputBNum;
        int inputCNum;

        Scanner scanner = new Scanner(System.in);
        String inputData = scanner.nextLine();
        scanner.close();

        String[] editInputData = inputData.split(" ");

        inputANum = Integer.parseInt(editInputData[0]);
        inputBNum = Integer.parseInt(editInputData[1]);
        inputCNum = Integer.parseInt(editInputData[2]);

        if ((inputANum == inputBNum && inputBNum == inputCNum) || (inputANum != inputBNum && inputBNum != inputCNum && inputANum != inputCNum)) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }

    } main {
        int inputANum;
        int inputBNum;
        int inputCNum;

        Scanner scanner = new Scanner(System.in);
        String inputData = scanner.nextLine();
        scanner.close();

        String[] editInputData = inputData.split(" ");

        inputANum = Integer.parseInt(editInputData[0]);
        inputBNum = Integer.parseInt(editInputData[1]);
        inputCNum = Integer.parseInt(editInputData[2]);

        if ((inputANum == inputBNum && inputBNum == inputCNum) || (inputANum != inputBNum && inputBNum != inputCNum && inputANum != inputCNum)) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }

    } int inputANum; inputANum int inputBNum; inputBNum int inputCNum; inputCNum Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String inputData = scanner.nextLine(); inputData scanner.nextLine() scanner.nextLine scanner scanner.close() scanner.close scanner String[] editInputData = inputData.split(" "); editInputData inputData.split(" ") inputData.split inputData " " inputANum = Integer.parseInt(editInputData[0]) inputANum Integer.parseInt(editInputData[0]) Integer.parseInt Integer editInputData[0] editInputData 0 inputBNum = Integer.parseInt(editInputData[1]) inputBNum Integer.parseInt(editInputData[1]) Integer.parseInt Integer editInputData[1] editInputData 1 inputCNum = Integer.parseInt(editInputData[2]) inputCNum Integer.parseInt(editInputData[2]) Integer.parseInt Integer editInputData[2] editInputData 2 if ((inputANum == inputBNum && inputBNum == inputCNum) || (inputANum != inputBNum && inputBNum != inputCNum && inputANum != inputCNum)) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        } (inputANum == inputBNum && inputBNum == inputCNum) || (inputANum != inputBNum && inputBNum != inputCNum && inputANum != inputCNum) (inputANum == inputBNum && inputBNum == inputCNum) inputANum == inputBNum inputANum inputBNum inputBNum == inputCNum inputBNum inputCNum (inputANum != inputBNum && inputBNum != inputCNum && inputANum != inputCNum) inputANum != inputBNum && inputBNum != inputCNum && inputANum != inputCNum inputANum != inputBNum inputANum inputBNum inputBNum != inputCNum inputBNum inputCNum inputANum != inputCNum inputANum inputCNum {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        int inputANum;
        int inputBNum;
        int inputCNum;

        Scanner scanner = new Scanner(System.in);
        String inputData = scanner.nextLine();
        scanner.close();

        String[] editInputData = inputData.split(" ");

        inputANum = Integer.parseInt(editInputData[0]);
        inputBNum = Integer.parseInt(editInputData[1]);
        inputCNum = Integer.parseInt(editInputData[2]);

        if ((inputANum == inputBNum && inputBNum == inputCNum) || (inputANum != inputBNum && inputBNum != inputCNum && inputANum != inputCNum)) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }

    }
} public class Main {
    public static void main(String[] args) throws Exception {
        int inputANum;
        int inputBNum;
        int inputCNum;

        Scanner scanner = new Scanner(System.in);
        String inputData = scanner.nextLine();
        scanner.close();

        String[] editInputData = inputData.split(" ");

        inputANum = Integer.parseInt(editInputData[0]);
        inputBNum = Integer.parseInt(editInputData[1]);
        inputCNum = Integer.parseInt(editInputData[2]);

        if ((inputANum == inputBNum && inputBNum == inputCNum) || (inputANum != inputBNum && inputBNum != inputCNum && inputANum != inputCNum)) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }

    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        int inputANum;
        int inputBNum;
        int inputCNum;

        Scanner scanner = new Scanner(System.in);
        String inputData = scanner.nextLine();
        scanner.close();

        String[] editInputData = inputData.split(" ");

        inputANum = Integer.parseInt(editInputData[0]);
        inputBNum = Integer.parseInt(editInputData[1]);
        inputCNum = Integer.parseInt(editInputData[2]);

        if ((inputANum == inputBNum && inputBNum == inputCNum) || (inputANum != inputBNum && inputBNum != inputCNum && inputANum != inputCNum)) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }

    }
}