import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        abc155_a solver = new abc155_a();
        solver.solve(1, in, out);
        out.close();
    }

    static class abc155_a {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int A = in.nextInt();
            int B = in.nextInt();
            int C = in.nextInt();

            boolean ret = false;
            if ((A == B) && (A != C)) {
                ret = true;
            } else if ((A == C) && (A != B)) {
                ret = true;
            } else if ((B == C) && (A != C)) {
                ret = true;
            }
            out.println((ret ? "Yes" : "No"));

        }

    }
}
 import java.io.OutputStream; OutputStream java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        abc155_a solver = new abc155_a();
        solver.solve(1, in, out);
        out.close();
    }

    static class abc155_a {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int A = in.nextInt();
            int B = in.nextInt();
            int C = in.nextInt();

            boolean ret = false;
            if ((A == B) && (A != C)) {
                ret = true;
            } else if ((A == C) && (A != B)) {
                ret = true;
            } else if ((B == C) && (A != C)) {
                ret = true;
            }
            out.println((ret ? "Yes" : "No"));

        }

    }
} Main public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        abc155_a solver = new abc155_a();
        solver.solve(1, in, out);
        out.close();
    } main {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        abc155_a solver = new abc155_a();
        solver.solve(1, in, out);
        out.close();
    } InputStream inputStream = System.in; inputStream System.in System System.in OutputStream outputStream = System.out; outputStream System.out System System.out Scanner in = new Scanner(inputStream); in new Scanner(inputStream) PrintWriter out = new PrintWriter(outputStream); out new PrintWriter(outputStream) abc155_a solver = new abc155_a(); solver new abc155_a() solver.solve(1, in, out) solver.solve solver 1 in out out.close() out.close out String[] args args static class abc155_a {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int A = in.nextInt();
            int B = in.nextInt();
            int C = in.nextInt();

            boolean ret = false;
            if ((A == B) && (A != C)) {
                ret = true;
            } else if ((A == C) && (A != B)) {
                ret = true;
            } else if ((B == C) && (A != C)) {
                ret = true;
            }
            out.println((ret ? "Yes" : "No"));

        }

    } abc155_a public void solve(int testNumber, Scanner in, PrintWriter out) {
            int A = in.nextInt();
            int B = in.nextInt();
            int C = in.nextInt();

            boolean ret = false;
            if ((A == B) && (A != C)) {
                ret = true;
            } else if ((A == C) && (A != B)) {
                ret = true;
            } else if ((B == C) && (A != C)) {
                ret = true;
            }
            out.println((ret ? "Yes" : "No"));

        } solve {
            int A = in.nextInt();
            int B = in.nextInt();
            int C = in.nextInt();

            boolean ret = false;
            if ((A == B) && (A != C)) {
                ret = true;
            } else if ((A == C) && (A != B)) {
                ret = true;
            } else if ((B == C) && (A != C)) {
                ret = true;
            }
            out.println((ret ? "Yes" : "No"));

        } int A = in.nextInt(); A in.nextInt() in.nextInt in int B = in.nextInt(); B in.nextInt() in.nextInt in int C = in.nextInt(); C in.nextInt() in.nextInt in boolean ret = false; ret false if ((A == B) && (A != C)) {
                ret = true;
            } else if ((A == C) && (A != B)) {
                ret = true;
            } else if ((B == C) && (A != C)) {
                ret = true;
            } (A == B) && (A != C) (A == B) A B (A != C) A C {
                ret = true;
            } ret = true ret true if ((A == C) && (A != B)) {
                ret = true;
            } else if ((B == C) && (A != C)) {
                ret = true;
            } (A == C) && (A != B) (A == C) A C (A != B) A B {
                ret = true;
            } ret = true ret true if ((B == C) && (A != C)) {
                ret = true;
            } (B == C) && (A != C) (B == C) B C (A != C) A C {
                ret = true;
            } ret = true ret true out.println((ret ? "Yes" : "No")) out.println out (ret ? "Yes" : "No") ret "Yes" "No" int testNumber testNumber Scanner in in PrintWriter out out public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        abc155_a solver = new abc155_a();
        solver.solve(1, in, out);
        out.close();
    }

    static class abc155_a {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int A = in.nextInt();
            int B = in.nextInt();
            int C = in.nextInt();

            boolean ret = false;
            if ((A == B) && (A != C)) {
                ret = true;
            } else if ((A == C) && (A != B)) {
                ret = true;
            } else if ((B == C) && (A != C)) {
                ret = true;
            }
            out.println((ret ? "Yes" : "No"));

        }

    }
} public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        abc155_a solver = new abc155_a();
        solver.solve(1, in, out);
        out.close();
    }

    static class abc155_a {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int A = in.nextInt();
            int B = in.nextInt();
            int C = in.nextInt();

            boolean ret = false;
            if ((A == B) && (A != C)) {
                ret = true;
            } else if ((A == C) && (A != B)) {
                ret = true;
            } else if ((B == C) && (A != C)) {
                ret = true;
            }
            out.println((ret ? "Yes" : "No"));

        }

    }
} Main
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        abc155_a solver = new abc155_a();
        solver.solve(1, in, out);
        out.close();
    }

    static class abc155_a {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int A = in.nextInt();
            int B = in.nextInt();
            int C = in.nextInt();

            boolean ret = false;
            if ((A == B) && (A != C)) {
                ret = true;
            } else if ((A == C) && (A != B)) {
                ret = true;
            } else if ((B == C) && (A != C)) {
                ret = true;
            }
            out.println((ret ? "Yes" : "No"));

        }

    }
}

