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

public class Main {

	public static void main(String[] args) {
		HashSet<Integer> set = new HashSet<Integer>();
		Scanner scan = new Scanner(System.in);
		set.add(scan.nextInt());
		set.add(scan.nextInt());
		set.add(scan.nextInt());
		if(set.size() == 2) System.out.println("Yes");
		else System.out.println("No");
		scan.close();
	}

} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		HashSet<Integer> set = new HashSet<Integer>();
		Scanner scan = new Scanner(System.in);
		set.add(scan.nextInt());
		set.add(scan.nextInt());
		set.add(scan.nextInt());
		if(set.size() == 2) System.out.println("Yes");
		else System.out.println("No");
		scan.close();
	}

} Main public static void main(String[] args) {
		HashSet<Integer> set = new HashSet<Integer>();
		Scanner scan = new Scanner(System.in);
		set.add(scan.nextInt());
		set.add(scan.nextInt());
		set.add(scan.nextInt());
		if(set.size() == 2) System.out.println("Yes");
		else System.out.println("No");
		scan.close();
	} main {
		HashSet<Integer> set = new HashSet<Integer>();
		Scanner scan = new Scanner(System.in);
		set.add(scan.nextInt());
		set.add(scan.nextInt());
		set.add(scan.nextInt());
		if(set.size() == 2) System.out.println("Yes");
		else System.out.println("No");
		scan.close();
	} HashSet<Integer> set = new HashSet<Integer>(); set new HashSet<Integer>() Scanner scan = new Scanner(System.in); scan new Scanner(System.in) set.add(scan.nextInt()) set.add set scan.nextInt() scan.nextInt scan set.add(scan.nextInt()) set.add set scan.nextInt() scan.nextInt scan set.add(scan.nextInt()) set.add set scan.nextInt() scan.nextInt scan if(set.size() == 2) System.out.println("Yes");
		else System.out.println("No"); set.size() == 2 set.size() set.size set 2 System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" scan.close() scan.close scan String[] args args public class Main {

	public static void main(String[] args) {
		HashSet<Integer> set = new HashSet<Integer>();
		Scanner scan = new Scanner(System.in);
		set.add(scan.nextInt());
		set.add(scan.nextInt());
		set.add(scan.nextInt());
		if(set.size() == 2) System.out.println("Yes");
		else System.out.println("No");
		scan.close();
	}

} public class Main {

	public static void main(String[] args) {
		HashSet<Integer> set = new HashSet<Integer>();
		Scanner scan = new Scanner(System.in);
		set.add(scan.nextInt());
		set.add(scan.nextInt());
		set.add(scan.nextInt());
		if(set.size() == 2) System.out.println("Yes");
		else System.out.println("No");
		scan.close();
	}

} Main
import java.util.HashSet;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		HashSet<Integer> set = new HashSet<Integer>();
		Scanner scan = new Scanner(System.in);
		set.add(scan.nextInt());
		set.add(scan.nextInt());
		set.add(scan.nextInt());
		if(set.size() == 2) System.out.println("Yes");
		else System.out.println("No");
		scan.close();
	}

}