import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;

class Main {

    public static void main(String[] args) throws Exception {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(" "));

            String result = "No";
            if ((input.get(0).equals(input.get(1))
                || input.get(0).equals(input.get(2))
                || input.get(1).equals(input.get(2)))
                && !(input.get(0).equals(input.get(1))
                && input.get(0).equals(input.get(2))
                && input.get(1).equals(input.get(2)))) {
                    result = "Yes";
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util import java.util.List; List java.util class Main {

    public static void main(String[] args) throws Exception {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(" "));

            String result = "No";
            if ((input.get(0).equals(input.get(1))
                || input.get(0).equals(input.get(2))
                || input.get(1).equals(input.get(2)))
                && !(input.get(0).equals(input.get(1))
                && input.get(0).equals(input.get(2))
                && input.get(1).equals(input.get(2)))) {
                    result = "Yes";
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }
} Main public static void main(String[] args) throws Exception {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(" "));

            String result = "No";
            if ((input.get(0).equals(input.get(1))
                || input.get(0).equals(input.get(2))
                || input.get(1).equals(input.get(2)))
                && !(input.get(0).equals(input.get(1))
                && input.get(0).equals(input.get(2))
                && input.get(1).equals(input.get(2)))) {
                    result = "Yes";
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    } main {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(" "));

            String result = "No";
            if ((input.get(0).equals(input.get(1))
                || input.get(0).equals(input.get(2))
                || input.get(1).equals(input.get(2)))
                && !(input.get(0).equals(input.get(1))
                && input.get(0).equals(input.get(2))
                && input.get(1).equals(input.get(2)))) {
                    result = "Yes";
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    } try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(" "));

            String result = "No";
            if ((input.get(0).equals(input.get(1))
                || input.get(0).equals(input.get(2))
                || input.get(1).equals(input.get(2)))
                && !(input.get(0).equals(input.get(1))
                && input.get(0).equals(input.get(2))
                && input.get(1).equals(input.get(2)))) {
                    result = "Yes";
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } IOException | NumberFormatException e {
            e.printStackTrace();
            System.exit(0);
        } e.printStackTrace() e.printStackTrace e System.exit(0) System.exit System 0 catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        } final Exception e {
            e.printStackTrace();
            System.exit(0);
        } e.printStackTrace() e.printStackTrace e System.exit(0) System.exit System 0 {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(" "));

            String result = "No";
            if ((input.get(0).equals(input.get(1))
                || input.get(0).equals(input.get(2))
                || input.get(1).equals(input.get(2)))
                && !(input.get(0).equals(input.get(1))
                && input.get(0).equals(input.get(2))
                && input.get(1).equals(input.get(2)))) {
                    result = "Yes";
            }

            System.out.println(result);
        } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) List<String> input = Arrays.asList(br.readLine().split(" ")); input Arrays.asList(br.readLine().split(" ")) Arrays.asList Arrays br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " String result = "No"; result "No" if ((input.get(0).equals(input.get(1))
                || input.get(0).equals(input.get(2))
                || input.get(1).equals(input.get(2)))
                && !(input.get(0).equals(input.get(1))
                && input.get(0).equals(input.get(2))
                && input.get(1).equals(input.get(2)))) {
                    result = "Yes";
            } (input.get(0).equals(input.get(1))
                || input.get(0).equals(input.get(2))
                || input.get(1).equals(input.get(2)))
                && !(input.get(0).equals(input.get(1))
                && input.get(0).equals(input.get(2))
                && input.get(1).equals(input.get(2))) (input.get(0).equals(input.get(1))
                || input.get(0).equals(input.get(2))
                || input.get(1).equals(input.get(2))) input.get(0).equals(input.get(1))
                || input.get(0).equals(input.get(2))
                || input.get(1).equals(input.get(2)) input.get(0).equals(input.get(1)) input.get(0).equals input.get(0) input.get input 0 input.get(1) input.get input 1 input.get(0).equals(input.get(2)) input.get(0).equals input.get(0) input.get input 0 input.get(2) input.get input 2 input.get(1).equals(input.get(2)) input.get(1).equals input.get(1) input.get input 1 input.get(2) input.get input 2 !(input.get(0).equals(input.get(1))
                && input.get(0).equals(input.get(2))
                && input.get(1).equals(input.get(2))) (input.get(0).equals(input.get(1))
                && input.get(0).equals(input.get(2))
                && input.get(1).equals(input.get(2))) input.get(0).equals(input.get(1))
                && input.get(0).equals(input.get(2))
                && input.get(1).equals(input.get(2)) input.get(0).equals(input.get(1)) input.get(0).equals input.get(0) input.get input 0 input.get(1) input.get input 1 input.get(0).equals(input.get(2)) input.get(0).equals input.get(0) input.get input 0 input.get(2) input.get input 2 input.get(1).equals(input.get(2)) input.get(1).equals input.get(1) input.get input 1 input.get(2) input.get input 2 {
                    result = "Yes";
            } result = "Yes" result "Yes" System.out.println(result) System.out.println System.out System System.out result String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;

class Main {

    public static void main(String[] args) throws Exception {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(" "));

            String result = "No";
            if ((input.get(0).equals(input.get(1))
                || input.get(0).equals(input.get(2))
                || input.get(1).equals(input.get(2)))
                && !(input.get(0).equals(input.get(1))
                && input.get(0).equals(input.get(2))
                && input.get(1).equals(input.get(2)))) {
                    result = "Yes";
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }
}