import java.io.*;
import java.util.*;

public class Main {
    static final String YES = "Yes";
    static final String NO = "No";

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        long A;
        A = sc.nextLong();
        long B;
        B = sc.nextLong();
        long C;
        C = sc.nextLong();

        final Solver solver = new Solver();
        solver.solve(A, B, C);
    }
}

class Solver {
    public void solve(long A, long B, long C) {
        if (A == B && B != C) {
            System.out.println("Yes");
            return;
        }
        if (A == C && B != C) {
            System.out.println("Yes");
            return;
        }
        if (B == C && A != C) {
            System.out.println("Yes");
            return;
        }
        System.out.println("No");
    }
}
 import java.io.*; io.* java import java.util.*; util.* java public class Main {
    static final String YES = "Yes";
    static final String NO = "No";

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        long A;
        A = sc.nextLong();
        long B;
        B = sc.nextLong();
        long C;
        C = sc.nextLong();

        final Solver solver = new Solver();
        solver.solve(A, B, C);
    }
} Main static final String YES = "Yes"; YES "Yes" static final String NO = "No"; NO "No" public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        long A;
        A = sc.nextLong();
        long B;
        B = sc.nextLong();
        long C;
        C = sc.nextLong();

        final Solver solver = new Solver();
        solver.solve(A, B, C);
    } main {
        final Scanner sc = new Scanner(System.in);
        long A;
        A = sc.nextLong();
        long B;
        B = sc.nextLong();
        long C;
        C = sc.nextLong();

        final Solver solver = new Solver();
        solver.solve(A, B, C);
    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long A; A A = sc.nextLong() A sc.nextLong() sc.nextLong sc long B; B B = sc.nextLong() B sc.nextLong() sc.nextLong sc long C; C C = sc.nextLong() C sc.nextLong() sc.nextLong sc final Solver solver = new Solver(); solver new Solver() solver.solve(A, B, C) solver.solve solver A B C final String[] args args class Solver {
    public void solve(long A, long B, long C) {
        if (A == B && B != C) {
            System.out.println("Yes");
            return;
        }
        if (A == C && B != C) {
            System.out.println("Yes");
            return;
        }
        if (B == C && A != C) {
            System.out.println("Yes");
            return;
        }
        System.out.println("No");
    }
} Solver public void solve(long A, long B, long C) {
        if (A == B && B != C) {
            System.out.println("Yes");
            return;
        }
        if (A == C && B != C) {
            System.out.println("Yes");
            return;
        }
        if (B == C && A != C) {
            System.out.println("Yes");
            return;
        }
        System.out.println("No");
    } solve {
        if (A == B && B != C) {
            System.out.println("Yes");
            return;
        }
        if (A == C && B != C) {
            System.out.println("Yes");
            return;
        }
        if (B == C && A != C) {
            System.out.println("Yes");
            return;
        }
        System.out.println("No");
    } if (A == B && B != C) {
            System.out.println("Yes");
            return;
        } A == B && B != C A == B A B B != C B C {
            System.out.println("Yes");
            return;
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; if (A == C && B != C) {
            System.out.println("Yes");
            return;
        } A == C && B != C A == C A C B != C B C {
            System.out.println("Yes");
            return;
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; if (B == C && A != C) {
            System.out.println("Yes");
            return;
        } B == C && A != C B == C B C A != C A C {
            System.out.println("Yes");
            return;
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; System.out.println("No") System.out.println System.out System System.out "No" long A A long B B long C C public class Main {
    static final String YES = "Yes";
    static final String NO = "No";

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        long A;
        A = sc.nextLong();
        long B;
        B = sc.nextLong();
        long C;
        C = sc.nextLong();

        final Solver solver = new Solver();
        solver.solve(A, B, C);
    }
} public class Main {
    static final String YES = "Yes";
    static final String NO = "No";

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        long A;
        A = sc.nextLong();
        long B;
        B = sc.nextLong();
        long C;
        C = sc.nextLong();

        final Solver solver = new Solver();
        solver.solve(A, B, C);
    }
} Main
import java.io.*;
import java.util.*;

public class Main {
    static final String YES = "Yes";
    static final String NO = "No";

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        long A;
        A = sc.nextLong();
        long B;
        B = sc.nextLong();
        long C;
        C = sc.nextLong();

        final Solver solver = new Solver();
        solver.solve(A, B, C);
    }
}

class Solver {
    public void solve(long A, long B, long C) {
        if (A == B && B != C) {
            System.out.println("Yes");
            return;
        }
        if (A == C && B != C) {
            System.out.println("Yes");
            return;
        }
        if (B == C && A != C) {
            System.out.println("Yes");
            return;
        }
        System.out.println("No");
    }
}

