import java.util.*;
import javax.lang.model.util.ElementScanner6;

public class Main {

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

        // 入力
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        // 処理
        String out = "No";
        if (a == b && a != c) {
            out = "Yes";
        } else if (b == c && b != a) {
            out = "Yes";
        } else if (a == c && a != b) {
            out = "Yes";
        }

        // 出力
        System.out.println(out);
    }

} import java.util.*; util.* java import javax.lang.model.util.ElementScanner6; ElementScanner6 javax.lang.model.util public class Main {

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

        // 入力
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        // 処理
        String out = "No";
        if (a == b && a != c) {
            out = "Yes";
        } else if (b == c && b != a) {
            out = "Yes";
        } else if (a == c && a != b) {
            out = "Yes";
        }

        // 出力
        System.out.println(out);
    }

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

        // 入力
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        // 処理
        String out = "No";
        if (a == b && a != c) {
            out = "Yes";
        } else if (b == c && b != a) {
            out = "Yes";
        } else if (a == c && a != b) {
            out = "Yes";
        }

        // 出力
        System.out.println(out);
    } main {
        Scanner sc = new Scanner(System.in);

        // 入力
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        // 処理
        String out = "No";
        if (a == b && a != c) {
            out = "Yes";
        } else if (b == c && b != a) {
            out = "Yes";
        } else if (a == c && a != b) {
            out = "Yes";
        }

        // 出力
        System.out.println(out);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc String out = "No"; out "No" if (a == b && a != c) {
            out = "Yes";
        } else if (b == c && b != a) {
            out = "Yes";
        } else if (a == c && a != b) {
            out = "Yes";
        } a == b && a != c a == b a b a != c a c {
            out = "Yes";
        } out = "Yes" out "Yes" if (b == c && b != a) {
            out = "Yes";
        } else if (a == c && a != b) {
            out = "Yes";
        } b == c && b != a b == c b c b != a b a {
            out = "Yes";
        } out = "Yes" out "Yes" if (a == c && a != b) {
            out = "Yes";
        } a == c && a != b a == c a c a != b a b {
            out = "Yes";
        } out = "Yes" out "Yes" System.out.println(out) System.out.println System.out System System.out out String[] args args public class Main {

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

        // 入力
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        // 処理
        String out = "No";
        if (a == b && a != c) {
            out = "Yes";
        } else if (b == c && b != a) {
            out = "Yes";
        } else if (a == c && a != b) {
            out = "Yes";
        }

        // 出力
        System.out.println(out);
    }

} public class Main {

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

        // 入力
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        // 処理
        String out = "No";
        if (a == b && a != c) {
            out = "Yes";
        } else if (b == c && b != a) {
            out = "Yes";
        } else if (a == c && a != b) {
            out = "Yes";
        }

        // 出力
        System.out.println(out);
    }

} Main
import java.util.*;
import javax.lang.model.util.ElementScanner6;

public class Main {

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

        // 入力
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        // 処理
        String out = "No";
        if (a == b && a != c) {
            out = "Yes";
        } else if (b == c && b != a) {
            out = "Yes";
        } else if (a == c && a != b) {
            out = "Yes";
        }

        // 出力
        System.out.println(out);
    }

}