import java.awt.print.Printable;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {

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


        int a = Integer.parseInt(scan.next());
        int b = Integer.parseInt(scan.next());
        int c = Integer.parseInt(scan.next());

        if((a == b && b != c) || (a == c && a != b) || (b == c && a != b) ) {
            out.print("Yes");
        } else {
            out.print("No");
        }

        out.flush();
    }
} import java.awt.print.Printable; Printable java.awt.print import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {

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


        int a = Integer.parseInt(scan.next());
        int b = Integer.parseInt(scan.next());
        int c = Integer.parseInt(scan.next());

        if((a == b && b != c) || (a == c && a != b) || (b == c && a != b) ) {
            out.print("Yes");
        } else {
            out.print("No");
        }

        out.flush();
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);


        int a = Integer.parseInt(scan.next());
        int b = Integer.parseInt(scan.next());
        int c = Integer.parseInt(scan.next());

        if((a == b && b != c) || (a == c && a != b) || (b == c && a != b) ) {
            out.print("Yes");
        } else {
            out.print("No");
        }

        out.flush();
    } main {
        Scanner scan = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);


        int a = Integer.parseInt(scan.next());
        int b = Integer.parseInt(scan.next());
        int c = Integer.parseInt(scan.next());

        if((a == b && b != c) || (a == c && a != b) || (b == c && a != b) ) {
            out.print("Yes");
        } else {
            out.print("No");
        }

        out.flush();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) int a = Integer.parseInt(scan.next()); a Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int b = Integer.parseInt(scan.next()); b Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int c = Integer.parseInt(scan.next()); c Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan if((a == b && b != c) || (a == c && a != b) || (b == c && a != b) ) {
            out.print("Yes");
        } else {
            out.print("No");
        } (a == b && b != c) || (a == c && a != b) || (b == c && a != b) (a == b && b != c) || (a == c && a != b) || (b == c && a != b) (a == b && b != c) a == b a b b != c b c (a == c && a != b) a == c a c a != b a b (b == c && a != b) b == c b c a != b a b {
            out.print("Yes");
        } out.print("Yes") out.print out "Yes" {
            out.print("No");
        } out.print("No") out.print out "No" out.flush() out.flush out String[] args args public class Main {

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


        int a = Integer.parseInt(scan.next());
        int b = Integer.parseInt(scan.next());
        int c = Integer.parseInt(scan.next());

        if((a == b && b != c) || (a == c && a != b) || (b == c && a != b) ) {
            out.print("Yes");
        } else {
            out.print("No");
        }

        out.flush();
    }
} public class Main {

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


        int a = Integer.parseInt(scan.next());
        int b = Integer.parseInt(scan.next());
        int c = Integer.parseInt(scan.next());

        if((a == b && b != c) || (a == c && a != b) || (b == c && a != b) ) {
            out.print("Yes");
        } else {
            out.print("No");
        }

        out.flush();
    }
} Main
import java.awt.print.Printable;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {

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


        int a = Integer.parseInt(scan.next());
        int b = Integer.parseInt(scan.next());
        int c = Integer.parseInt(scan.next());

        if((a == b && b != c) || (a == c && a != b) || (b == c && a != b) ) {
            out.print("Yes");
        } else {
            out.print("No");
        }

        out.flush();
    }
}
