import java.util.HashMap;
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);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();

        Set<Integer> checkHash = new HashSet<>();
        checkHash.add(a);
        checkHash.add(b);
        checkHash.add(c);

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


    }
} import java.util.HashMap; HashMap java.util 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 = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();

        Set<Integer> checkHash = new HashSet<>();
        checkHash.add(a);
        checkHash.add(b);
        checkHash.add(c);

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


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

        Set<Integer> checkHash = new HashSet<>();
        checkHash.add(a);
        checkHash.add(b);
        checkHash.add(c);

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


    } main {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();

        Set<Integer> checkHash = new HashSet<>();
        checkHash.add(a);
        checkHash.add(b);
        checkHash.add(c);

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


    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int c = scanner.nextInt(); c scanner.nextInt() scanner.nextInt scanner Set<Integer> checkHash = new HashSet<>(); checkHash new HashSet<>() checkHash.add(a) checkHash.add checkHash a checkHash.add(b) checkHash.add checkHash b checkHash.add(c) checkHash.add checkHash c if (checkHash.size()==2){
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        } checkHash.size()==2 checkHash.size() checkHash.size checkHash 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);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();

        Set<Integer> checkHash = new HashSet<>();
        checkHash.add(a);
        checkHash.add(b);
        checkHash.add(c);

        if (checkHash.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);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();

        Set<Integer> checkHash = new HashSet<>();
        checkHash.add(a);
        checkHash.add(b);
        checkHash.add(c);

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


    }
} Main
import java.util.HashMap;
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);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();

        Set<Integer> checkHash = new HashSet<>();
        checkHash.add(a);
        checkHash.add(b);
        checkHash.add(c);

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


    }
}
