import java.util.*;

class Main {
    public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        int a = inp.nextInt();
        int b = inp.nextInt();
        int c = inp.nextInt();
        if (a == b && a != c || a == c && a != b || b == c && a != b) {
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    }
} import java.util.*; util.* java class Main {
    public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        int a = inp.nextInt();
        int b = inp.nextInt();
        int c = inp.nextInt();
        if (a == b && a != c || a == c && a != b || b == c && a != b) {
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    }
} Main public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        int a = inp.nextInt();
        int b = inp.nextInt();
        int c = inp.nextInt();
        if (a == b && a != c || a == c && a != b || b == c && a != b) {
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    } main {
        Scanner inp = new Scanner(System.in);
        int a = inp.nextInt();
        int b = inp.nextInt();
        int c = inp.nextInt();
        if (a == b && a != c || a == c && a != b || b == c && a != b) {
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    } Scanner inp = new Scanner(System.in); inp new Scanner(System.in) int a = inp.nextInt(); a inp.nextInt() inp.nextInt inp int b = inp.nextInt(); b inp.nextInt() inp.nextInt inp int c = inp.nextInt(); c inp.nextInt() inp.nextInt inp if (a == b && a != c || a == c && a != b || b == c && a != b) {
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        } a == b && a != c || a == c && a != b || b == c && a != b a == b && a != c || a == c && a != b || b == c && a != b a == b && a != c a == b a b a != c a 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 {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" String args[] args
import java.util.*;

class Main {
    public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        int a = inp.nextInt();
        int b = inp.nextInt();
        int c = inp.nextInt();
        if (a == b && a != c || a == c && a != b || b == c && a != b) {
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    }
}