import java.util.HashSet;
import java.util.Scanner;

public class Main {
    public static void main(String... args) {
        Scanner scanner = new Scanner(System.in);

        HashSet<Integer> set = new HashSet<>();
        set.add(scanner.nextInt());
        set.add(scanner.nextInt());
        set.add(scanner.nextInt());

        System.out.println(set.size() == 2 ? "Yes" : "No");
    }
} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String... args) {
        Scanner scanner = new Scanner(System.in);

        HashSet<Integer> set = new HashSet<>();
        set.add(scanner.nextInt());
        set.add(scanner.nextInt());
        set.add(scanner.nextInt());

        System.out.println(set.size() == 2 ? "Yes" : "No");
    }
} Main public static void main(String... args) {
        Scanner scanner = new Scanner(System.in);

        HashSet<Integer> set = new HashSet<>();
        set.add(scanner.nextInt());
        set.add(scanner.nextInt());
        set.add(scanner.nextInt());

        System.out.println(set.size() == 2 ? "Yes" : "No");
    } main {
        Scanner scanner = new Scanner(System.in);

        HashSet<Integer> set = new HashSet<>();
        set.add(scanner.nextInt());
        set.add(scanner.nextInt());
        set.add(scanner.nextInt());

        System.out.println(set.size() == 2 ? "Yes" : "No");
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) HashSet<Integer> set = new HashSet<>(); set new HashSet<>() set.add(scanner.nextInt()) set.add set scanner.nextInt() scanner.nextInt scanner set.add(scanner.nextInt()) set.add set scanner.nextInt() scanner.nextInt scanner set.add(scanner.nextInt()) set.add set scanner.nextInt() scanner.nextInt scanner 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 public class Main {
    public static void main(String... args) {
        Scanner scanner = new Scanner(System.in);

        HashSet<Integer> set = new HashSet<>();
        set.add(scanner.nextInt());
        set.add(scanner.nextInt());
        set.add(scanner.nextInt());

        System.out.println(set.size() == 2 ? "Yes" : "No");
    }
} public class Main {
    public static void main(String... args) {
        Scanner scanner = new Scanner(System.in);

        HashSet<Integer> set = new HashSet<>();
        set.add(scanner.nextInt());
        set.add(scanner.nextInt());
        set.add(scanner.nextInt());

        System.out.println(set.size() == 2 ? "Yes" : "No");
    }
} Main
import java.util.HashSet;
import java.util.Scanner;

public class Main {
    public static void main(String... args) {
        Scanner scanner = new Scanner(System.in);

        HashSet<Integer> set = new HashSet<>();
        set.add(scanner.nextInt());
        set.add(scanner.nextInt());
        set.add(scanner.nextInt());

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