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

public class Main{

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String inputString=sc.nextLine();
		String[] inputstrArray = inputString.split(" ");
		int input1 = Integer.parseInt(inputstrArray[0]);
		int input2 = Integer.parseInt(inputstrArray[1]);
		int input3 = Integer.parseInt(inputstrArray[2]);

		HashSet<Integer> set = new HashSet<Integer>();
		set.add(input1);set.add(input2);set.add(input3);

		switch(set.size()) {
		case 1:
		System.out.println("No");
		break;
		case 2:
		System.out.println("Yes");
		break;
		case 3:
		System.out.println("No");
		break;

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String inputString=sc.nextLine();
		String[] inputstrArray = inputString.split(" ");
		int input1 = Integer.parseInt(inputstrArray[0]);
		int input2 = Integer.parseInt(inputstrArray[1]);
		int input3 = Integer.parseInt(inputstrArray[2]);

		HashSet<Integer> set = new HashSet<Integer>();
		set.add(input1);set.add(input2);set.add(input3);

		switch(set.size()) {
		case 1:
		System.out.println("No");
		break;
		case 2:
		System.out.println("Yes");
		break;
		case 3:
		System.out.println("No");
		break;

		}
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String inputString=sc.nextLine();
		String[] inputstrArray = inputString.split(" ");
		int input1 = Integer.parseInt(inputstrArray[0]);
		int input2 = Integer.parseInt(inputstrArray[1]);
		int input3 = Integer.parseInt(inputstrArray[2]);

		HashSet<Integer> set = new HashSet<Integer>();
		set.add(input1);set.add(input2);set.add(input3);

		switch(set.size()) {
		case 1:
		System.out.println("No");
		break;
		case 2:
		System.out.println("Yes");
		break;
		case 3:
		System.out.println("No");
		break;

		}
	} main {

		Scanner sc = new Scanner(System.in);
		String inputString=sc.nextLine();
		String[] inputstrArray = inputString.split(" ");
		int input1 = Integer.parseInt(inputstrArray[0]);
		int input2 = Integer.parseInt(inputstrArray[1]);
		int input3 = Integer.parseInt(inputstrArray[2]);

		HashSet<Integer> set = new HashSet<Integer>();
		set.add(input1);set.add(input2);set.add(input3);

		switch(set.size()) {
		case 1:
		System.out.println("No");
		break;
		case 2:
		System.out.println("Yes");
		break;
		case 3:
		System.out.println("No");
		break;

		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String inputString=sc.nextLine(); inputString sc.nextLine() sc.nextLine sc String[] inputstrArray = inputString.split(" "); inputstrArray inputString.split(" ") inputString.split inputString " " int input1 = Integer.parseInt(inputstrArray[0]); input1 Integer.parseInt(inputstrArray[0]) Integer.parseInt Integer inputstrArray[0] inputstrArray 0 int input2 = Integer.parseInt(inputstrArray[1]); input2 Integer.parseInt(inputstrArray[1]) Integer.parseInt Integer inputstrArray[1] inputstrArray 1 int input3 = Integer.parseInt(inputstrArray[2]); input3 Integer.parseInt(inputstrArray[2]) Integer.parseInt Integer inputstrArray[2] inputstrArray 2 HashSet<Integer> set = new HashSet<Integer>(); set new HashSet<Integer>() set.add(input1) set.add set input1 set.add(input2) set.add set input2 set.add(input3) set.add set input3 switch(set.size()) {
		case 1:
		System.out.println("No");
		break;
		case 2:
		System.out.println("Yes");
		break;
		case 3:
		System.out.println("No");
		break;

		} set.size() set.size set case 1: 1 case 1: System.out.println("No") System.out.println System.out System System.out "No" break; case 2: 2 case 2: System.out.println("Yes") System.out.println System.out System System.out "Yes" break; case 3: 3 case 3: System.out.println("No") System.out.println System.out System System.out "No" break; String[] args args public class Main{

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String inputString=sc.nextLine();
		String[] inputstrArray = inputString.split(" ");
		int input1 = Integer.parseInt(inputstrArray[0]);
		int input2 = Integer.parseInt(inputstrArray[1]);
		int input3 = Integer.parseInt(inputstrArray[2]);

		HashSet<Integer> set = new HashSet<Integer>();
		set.add(input1);set.add(input2);set.add(input3);

		switch(set.size()) {
		case 1:
		System.out.println("No");
		break;
		case 2:
		System.out.println("Yes");
		break;
		case 3:
		System.out.println("No");
		break;

		}
	}
} public class Main{

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String inputString=sc.nextLine();
		String[] inputstrArray = inputString.split(" ");
		int input1 = Integer.parseInt(inputstrArray[0]);
		int input2 = Integer.parseInt(inputstrArray[1]);
		int input3 = Integer.parseInt(inputstrArray[2]);

		HashSet<Integer> set = new HashSet<Integer>();
		set.add(input1);set.add(input2);set.add(input3);

		switch(set.size()) {
		case 1:
		System.out.println("No");
		break;
		case 2:
		System.out.println("Yes");
		break;
		case 3:
		System.out.println("No");
		break;

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

public class Main{

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String inputString=sc.nextLine();
		String[] inputstrArray = inputString.split(" ");
		int input1 = Integer.parseInt(inputstrArray[0]);
		int input2 = Integer.parseInt(inputstrArray[1]);
		int input3 = Integer.parseInt(inputstrArray[2]);

		HashSet<Integer> set = new HashSet<Integer>();
		set.add(input1);set.add(input2);set.add(input3);

		switch(set.size()) {
		case 1:
		System.out.println("No");
		break;
		case 2:
		System.out.println("Yes");
		break;
		case 3:
		System.out.println("No");
		break;

		}
	}
}