import java.util.*;

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();

        HashSet<Integer> set = new HashSet<Integer>();

        set.add(a);
        set.add(b);
        set.add(c);

        System.out.println(set.size() == 2 ? "Yes" : "No");
    }
} import java.util.*; util.* java 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();

        HashSet<Integer> set = new HashSet<Integer>();

        set.add(a);
        set.add(b);
        set.add(c);

        System.out.println(set.size() == 2 ? "Yes" : "No");
    }
} 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();

        HashSet<Integer> set = new HashSet<Integer>();

        set.add(a);
        set.add(b);
        set.add(c);

        System.out.println(set.size() == 2 ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        HashSet<Integer> set = new HashSet<Integer>();

        set.add(a);
        set.add(b);
        set.add(c);

        System.out.println(set.size() == 2 ? "Yes" : "No");
    } 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 HashSet<Integer> set = new HashSet<Integer>(); set new HashSet<Integer>() set.add(a) set.add set a set.add(b) set.add set b set.add(c) set.add set c System.out.println(set.size() == 2 ? "Yes" : "No") System.out.println System.out System System.out set.size() == 2 ? "Yes" : "No" set.size() == 2 set.size() set.size set 2 "Yes" "No" String[] args args
import java.util.*;

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();

        HashSet<Integer> set = new HashSet<Integer>();

        set.add(a);
        set.add(b);
        set.add(c);

        System.out.println(set.size() == 2 ? "Yes" : "No");
    }
}
