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

// A - Poor
// https://atcoder.jp/contests/abc155/tasks/abc155_a
public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int A = Integer.parseInt(scanner.next());
        int B = Integer.parseInt(scanner.next());
        int C = Integer.parseInt(scanner.next());
        scanner.close();

        Set<Integer> set = new HashSet<>();
        set.add(A);
        set.add(B);
        set.add(C);

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

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int A = Integer.parseInt(scanner.next());
        int B = Integer.parseInt(scanner.next());
        int C = Integer.parseInt(scanner.next());
        scanner.close();

        Set<Integer> set = new HashSet<>();
        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 scanner = new Scanner(System.in);
        int A = Integer.parseInt(scanner.next());
        int B = Integer.parseInt(scanner.next());
        int C = Integer.parseInt(scanner.next());
        scanner.close();

        Set<Integer> set = new HashSet<>();
        set.add(A);
        set.add(B);
        set.add(C);

        System.out.println(set.size() == 2 ? "Yes" : "No");
    } main {
        Scanner scanner = new Scanner(System.in);
        int A = Integer.parseInt(scanner.next());
        int B = Integer.parseInt(scanner.next());
        int C = Integer.parseInt(scanner.next());
        scanner.close();

        Set<Integer> set = new HashSet<>();
        set.add(A);
        set.add(B);
        set.add(C);

        System.out.println(set.size() == 2 ? "Yes" : "No");
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int A = Integer.parseInt(scanner.next()); A Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner int B = Integer.parseInt(scanner.next()); B Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner int C = Integer.parseInt(scanner.next()); C Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner scanner.close() scanner.close scanner Set<Integer> set = new HashSet<>(); set new HashSet<>() 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 public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int A = Integer.parseInt(scanner.next());
        int B = Integer.parseInt(scanner.next());
        int C = Integer.parseInt(scanner.next());
        scanner.close();

        Set<Integer> set = new HashSet<>();
        set.add(A);
        set.add(B);
        set.add(C);

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

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int A = Integer.parseInt(scanner.next());
        int B = Integer.parseInt(scanner.next());
        int C = Integer.parseInt(scanner.next());
        scanner.close();

        Set<Integer> set = new HashSet<>();
        set.add(A);
        set.add(B);
        set.add(C);

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

// A - Poor
// https://atcoder.jp/contests/abc155/tasks/abc155_a
public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int A = Integer.parseInt(scanner.next());
        int B = Integer.parseInt(scanner.next());
        int C = Integer.parseInt(scanner.next());
        scanner.close();

        Set<Integer> set = new HashSet<>();
        set.add(A);
        set.add(B);
        set.add(C);

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