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

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String a = scanner.next();
        String b = scanner.next();
        String c = scanner.next();

        Set<String> mySet = new HashSet<>();
        mySet.add(a);
        mySet.add(b);
        mySet.add(c);

        if(mySet.size() == 2) {
            System.out.println("Yes");
        } else {
            System.out.println("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);
        String a = scanner.next();
        String b = scanner.next();
        String c = scanner.next();

        Set<String> mySet = new HashSet<>();
        mySet.add(a);
        mySet.add(b);
        mySet.add(c);

        if(mySet.size() == 2) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String a = scanner.next();
        String b = scanner.next();
        String c = scanner.next();

        Set<String> mySet = new HashSet<>();
        mySet.add(a);
        mySet.add(b);
        mySet.add(c);

        if(mySet.size() == 2) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        String a = scanner.next();
        String b = scanner.next();
        String c = scanner.next();

        Set<String> mySet = new HashSet<>();
        mySet.add(a);
        mySet.add(b);
        mySet.add(c);

        if(mySet.size() == 2) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String a = scanner.next(); a scanner.next() scanner.next scanner String b = scanner.next(); b scanner.next() scanner.next scanner String c = scanner.next(); c scanner.next() scanner.next scanner Set<String> mySet = new HashSet<>(); mySet new HashSet<>() mySet.add(a) mySet.add mySet a mySet.add(b) mySet.add mySet b mySet.add(c) mySet.add mySet c if(mySet.size() == 2) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } mySet.size() == 2 mySet.size() mySet.size mySet 2 {
            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 public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String a = scanner.next();
        String b = scanner.next();
        String c = scanner.next();

        Set<String> mySet = new HashSet<>();
        mySet.add(a);
        mySet.add(b);
        mySet.add(c);

        if(mySet.size() == 2) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String a = scanner.next();
        String b = scanner.next();
        String c = scanner.next();

        Set<String> mySet = new HashSet<>();
        mySet.add(a);
        mySet.add(b);
        mySet.add(c);

        if(mySet.size() == 2) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String a = scanner.next();
        String b = scanner.next();
        String c = scanner.next();

        Set<String> mySet = new HashSet<>();
        mySet.add(a);
        mySet.add(b);
        mySet.add(c);

        if(mySet.size() == 2) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}