import java.io.*;
import java.util.HashSet;
import java.util.Set;
import java.util.StringTokenizer;

public class Main {

    public static void main(String[] args) throws IOException {
        init();
        Set<Integer> integers = new HashSet<>();
        integers.add(nextInt());
        integers.add(nextInt());
        integers.add(nextInt());
        if (integers.size() == 2) System.out.println("Yes");
        else System.out.println("No");
    }

    //Input Reader
    private static BufferedReader reader;
    private static StringTokenizer tokenizer;

    private static void init() {
        reader = new BufferedReader(new InputStreamReader(System.in));
        tokenizer = new StringTokenizer("");
    }

    private static String next() throws IOException {
        String read;
        while (!tokenizer.hasMoreTokens()) {
            read = reader.readLine();
            if (read == null || read.equals(""))
                return "-1";
            tokenizer = new StringTokenizer(read);
        }

        return tokenizer.nextToken();
    }

    private static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }

    private static long nextLong() throws IOException {
        return Long.parseLong(next());
    }
} import java.io.*; io.* java import java.util.HashSet; HashSet java.util import java.util.Set; Set java.util import java.util.StringTokenizer; StringTokenizer java.util public class Main {

    public static void main(String[] args) throws IOException {
        init();
        Set<Integer> integers = new HashSet<>();
        integers.add(nextInt());
        integers.add(nextInt());
        integers.add(nextInt());
        if (integers.size() == 2) System.out.println("Yes");
        else System.out.println("No");
    }

    //Input Reader
    private static BufferedReader reader;
    private static StringTokenizer tokenizer;

    private static void init() {
        reader = new BufferedReader(new InputStreamReader(System.in));
        tokenizer = new StringTokenizer("");
    }

    private static String next() throws IOException {
        String read;
        while (!tokenizer.hasMoreTokens()) {
            read = reader.readLine();
            if (read == null || read.equals(""))
                return "-1";
            tokenizer = new StringTokenizer(read);
        }

        return tokenizer.nextToken();
    }

    private static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }

    private static long nextLong() throws IOException {
        return Long.parseLong(next());
    }
} Main //Input Reader
    private static BufferedReader reader; reader private static StringTokenizer tokenizer; tokenizer public static void main(String[] args) throws IOException {
        init();
        Set<Integer> integers = new HashSet<>();
        integers.add(nextInt());
        integers.add(nextInt());
        integers.add(nextInt());
        if (integers.size() == 2) System.out.println("Yes");
        else System.out.println("No");
    } main {
        init();
        Set<Integer> integers = new HashSet<>();
        integers.add(nextInt());
        integers.add(nextInt());
        integers.add(nextInt());
        if (integers.size() == 2) System.out.println("Yes");
        else System.out.println("No");
    } init() init Set<Integer> integers = new HashSet<>(); integers new HashSet<>() integers.add(nextInt()) integers.add integers nextInt() nextInt integers.add(nextInt()) integers.add integers nextInt() nextInt integers.add(nextInt()) integers.add integers nextInt() nextInt if (integers.size() == 2) System.out.println("Yes");
        else System.out.println("No"); integers.size() == 2 integers.size() integers.size integers 2 System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" String[] args args private static void init() {
        reader = new BufferedReader(new InputStreamReader(System.in));
        tokenizer = new StringTokenizer("");
    } init {
        reader = new BufferedReader(new InputStreamReader(System.in));
        tokenizer = new StringTokenizer("");
    } reader = new BufferedReader(new InputStreamReader(System.in)) reader new BufferedReader(new InputStreamReader(System.in)) tokenizer = new StringTokenizer("") tokenizer new StringTokenizer("") private static String next() throws IOException {
        String read;
        while (!tokenizer.hasMoreTokens()) {
            read = reader.readLine();
            if (read == null || read.equals(""))
                return "-1";
            tokenizer = new StringTokenizer(read);
        }

        return tokenizer.nextToken();
    } next {
        String read;
        while (!tokenizer.hasMoreTokens()) {
            read = reader.readLine();
            if (read == null || read.equals(""))
                return "-1";
            tokenizer = new StringTokenizer(read);
        }

        return tokenizer.nextToken();
    } String read; read while (!tokenizer.hasMoreTokens()) {
            read = reader.readLine();
            if (read == null || read.equals(""))
                return "-1";
            tokenizer = new StringTokenizer(read);
        } !tokenizer.hasMoreTokens() tokenizer.hasMoreTokens() tokenizer.hasMoreTokens tokenizer {
            read = reader.readLine();
            if (read == null || read.equals(""))
                return "-1";
            tokenizer = new StringTokenizer(read);
        } read = reader.readLine() read reader.readLine() reader.readLine reader if (read == null || read.equals(""))
                return "-1"; read == null || read.equals("") read == null read null read.equals("") read.equals read "" return "-1"; "-1" tokenizer = new StringTokenizer(read) tokenizer new StringTokenizer(read) return tokenizer.nextToken(); tokenizer.nextToken() tokenizer.nextToken tokenizer private static int nextInt() throws IOException {
        return Integer.parseInt(next());
    } nextInt {
        return Integer.parseInt(next());
    } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next private static long nextLong() throws IOException {
        return Long.parseLong(next());
    } nextLong {
        return Long.parseLong(next());
    } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public class Main {

    public static void main(String[] args) throws IOException {
        init();
        Set<Integer> integers = new HashSet<>();
        integers.add(nextInt());
        integers.add(nextInt());
        integers.add(nextInt());
        if (integers.size() == 2) System.out.println("Yes");
        else System.out.println("No");
    }

    //Input Reader
    private static BufferedReader reader;
    private static StringTokenizer tokenizer;

    private static void init() {
        reader = new BufferedReader(new InputStreamReader(System.in));
        tokenizer = new StringTokenizer("");
    }

    private static String next() throws IOException {
        String read;
        while (!tokenizer.hasMoreTokens()) {
            read = reader.readLine();
            if (read == null || read.equals(""))
                return "-1";
            tokenizer = new StringTokenizer(read);
        }

        return tokenizer.nextToken();
    }

    private static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }

    private static long nextLong() throws IOException {
        return Long.parseLong(next());
    }
} public class Main {

    public static void main(String[] args) throws IOException {
        init();
        Set<Integer> integers = new HashSet<>();
        integers.add(nextInt());
        integers.add(nextInt());
        integers.add(nextInt());
        if (integers.size() == 2) System.out.println("Yes");
        else System.out.println("No");
    }

    //Input Reader
    private static BufferedReader reader;
    private static StringTokenizer tokenizer;

    private static void init() {
        reader = new BufferedReader(new InputStreamReader(System.in));
        tokenizer = new StringTokenizer("");
    }

    private static String next() throws IOException {
        String read;
        while (!tokenizer.hasMoreTokens()) {
            read = reader.readLine();
            if (read == null || read.equals(""))
                return "-1";
            tokenizer = new StringTokenizer(read);
        }

        return tokenizer.nextToken();
    }

    private static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }

    private static long nextLong() throws IOException {
        return Long.parseLong(next());
    }
} Main
import java.io.*;
import java.util.HashSet;
import java.util.Set;
import java.util.StringTokenizer;

public class Main {

    public static void main(String[] args) throws IOException {
        init();
        Set<Integer> integers = new HashSet<>();
        integers.add(nextInt());
        integers.add(nextInt());
        integers.add(nextInt());
        if (integers.size() == 2) System.out.println("Yes");
        else System.out.println("No");
    }

    //Input Reader
    private static BufferedReader reader;
    private static StringTokenizer tokenizer;

    private static void init() {
        reader = new BufferedReader(new InputStreamReader(System.in));
        tokenizer = new StringTokenizer("");
    }

    private static String next() throws IOException {
        String read;
        while (!tokenizer.hasMoreTokens()) {
            read = reader.readLine();
            if (read == null || read.equals(""))
                return "-1";
            tokenizer = new StringTokenizer(read);
        }

        return tokenizer.nextToken();
    }

    private static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }

    private static long nextLong() throws IOException {
        return Long.parseLong(next());
    }
}