import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        int C = Integer.parseInt(sc.next());
        String res = "No";
        if (A == B) if (A != C) res = "Yes";
        if (A != B) if (A == C || B == C) res = "Yes";

        System.out.println(res);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        int C = Integer.parseInt(sc.next());
        String res = "No";
        if (A == B) if (A != C) res = "Yes";
        if (A != B) if (A == C || B == C) res = "Yes";

        System.out.println(res);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        int C = Integer.parseInt(sc.next());
        String res = "No";
        if (A == B) if (A != C) res = "Yes";
        if (A != B) if (A == C || B == C) res = "Yes";

        System.out.println(res);
    } main {
        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        int C = Integer.parseInt(sc.next());
        String res = "No";
        if (A == B) if (A != C) res = "Yes";
        if (A != B) if (A == C || B == C) res = "Yes";

        System.out.println(res);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = Integer.parseInt(sc.next()); A Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int B = Integer.parseInt(sc.next()); B Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int C = Integer.parseInt(sc.next()); C Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc String res = "No"; res "No" if (A == B) if (A != C) res = "Yes"; A == B A B if (A != C) res = "Yes"; A != C A C res = "Yes" res "Yes" if (A != B) if (A == C || B == C) res = "Yes"; A != B A B if (A == C || B == C) res = "Yes"; A == C || B == C A == C A C B == C B C res = "Yes" res "Yes" System.out.println(res) System.out.println System.out System System.out res String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        int C = Integer.parseInt(sc.next());
        String res = "No";
        if (A == B) if (A != C) res = "Yes";
        if (A != B) if (A == C || B == C) res = "Yes";

        System.out.println(res);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        int C = Integer.parseInt(sc.next());
        String res = "No";
        if (A == B) if (A != C) res = "Yes";
        if (A != B) if (A == C || B == C) res = "Yes";

        System.out.println(res);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        int C = Integer.parseInt(sc.next());
        String res = "No";
        if (A == B) if (A != C) res = "Yes";
        if (A != B) if (A == C || B == C) res = "Yes";

        System.out.println(res);
    }
}