import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        boolean out = false;
        if(a == b && b != c) out = true;
        if(b == c && a != c) out = true;
        if(c == a && a != b) out = true;
        System.out.println(out ? "Yes" : "No");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        boolean out = false;
        if(a == b && b != c) out = true;
        if(b == c && a != c) out = true;
        if(c == a && a != b) out = true;
        System.out.println(out ? "Yes" : "No");
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        boolean out = false;
        if(a == b && b != c) out = true;
        if(b == c && a != c) out = true;
        if(c == a && a != b) out = true;
        System.out.println(out ? "Yes" : "No");
    } main {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        boolean out = false;
        if(a == b && b != c) out = true;
        if(b == c && a != c) out = true;
        if(c == a && a != b) out = true;
        System.out.println(out ? "Yes" : "No");
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = scan.nextInt(); c scan.nextInt() scan.nextInt scan boolean out = false; out false if(a == b && b != c) out = true; a == b && b != c a == b a b b != c b c out = true out true if(b == c && a != c) out = true; b == c && a != c b == c b c a != c a c out = true out true if(c == a && a != b) out = true; c == a && a != b c == a c a a != b a b out = true out true System.out.println(out ? "Yes" : "No") System.out.println System.out System System.out out ? "Yes" : "No" out "Yes" "No" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        boolean out = false;
        if(a == b && b != c) out = true;
        if(b == c && a != c) out = true;
        if(c == a && a != b) out = true;
        System.out.println(out ? "Yes" : "No");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        boolean out = false;
        if(a == b && b != c) out = true;
        if(b == c && a != c) out = true;
        if(c == a && a != b) out = true;
        System.out.println(out ? "Yes" : "No");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        boolean out = false;
        if(a == b && b != c) out = true;
        if(b == c && a != c) out = true;
        if(c == a && a != b) out = true;
        System.out.println(out ? "Yes" : "No");
    }
}