import java.util.*;
import java.util.stream.Collectors;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        List<Integer> list = new ArrayList<>();
        list.add(scanner.nextInt());
        list.add(scanner.nextInt());
        list.add(scanner.nextInt());
        List<Integer> newList = list.stream().distinct().collect(Collectors.toList());
        if (newList.size() == 2) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} import java.util.*; util.* java import java.util.stream.Collectors; Collectors java.util.stream public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        List<Integer> list = new ArrayList<>();
        list.add(scanner.nextInt());
        list.add(scanner.nextInt());
        list.add(scanner.nextInt());
        List<Integer> newList = list.stream().distinct().collect(Collectors.toList());
        if (newList.size() == 2) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        List<Integer> list = new ArrayList<>();
        list.add(scanner.nextInt());
        list.add(scanner.nextInt());
        list.add(scanner.nextInt());
        List<Integer> newList = list.stream().distinct().collect(Collectors.toList());
        if (newList.size() == 2) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        List<Integer> list = new ArrayList<>();
        list.add(scanner.nextInt());
        list.add(scanner.nextInt());
        list.add(scanner.nextInt());
        List<Integer> newList = list.stream().distinct().collect(Collectors.toList());
        if (newList.size() == 2) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) List<Integer> list = new ArrayList<>(); list new ArrayList<>() list.add(scanner.nextInt()) list.add list scanner.nextInt() scanner.nextInt scanner list.add(scanner.nextInt()) list.add list scanner.nextInt() scanner.nextInt scanner list.add(scanner.nextInt()) list.add list scanner.nextInt() scanner.nextInt scanner List<Integer> newList = list.stream().distinct().collect(Collectors.toList()); newList list.stream().distinct().collect(Collectors.toList()) list.stream().distinct().collect list.stream().distinct() list.stream().distinct list.stream() list.stream list Collectors.toList() Collectors.toList Collectors if (newList.size() == 2) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } newList.size() == 2 newList.size() newList.size newList 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);
        List<Integer> list = new ArrayList<>();
        list.add(scanner.nextInt());
        list.add(scanner.nextInt());
        list.add(scanner.nextInt());
        List<Integer> newList = list.stream().distinct().collect(Collectors.toList());
        if (newList.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);
        List<Integer> list = new ArrayList<>();
        list.add(scanner.nextInt());
        list.add(scanner.nextInt());
        list.add(scanner.nextInt());
        List<Integer> newList = list.stream().distinct().collect(Collectors.toList());
        if (newList.size() == 2) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main
import java.util.*;
import java.util.stream.Collectors;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        List<Integer> list = new ArrayList<>();
        list.add(scanner.nextInt());
        list.add(scanner.nextInt());
        list.add(scanner.nextInt());
        List<Integer> newList = list.stream().distinct().collect(Collectors.toList());
        if (newList.size() == 2) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}