import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		int num3 = sc.nextInt();
		if(num1 == num2 && num1 != num3) {
			System.out.println("Yes");
		}else if(num1 == num3 && num1 != num2){
			System.out.println("Yes");
		}else if(num2 == num3 && num2 != num1) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		int num3 = sc.nextInt();
		if(num1 == num2 && num1 != num3) {
			System.out.println("Yes");
		}else if(num1 == num3 && num1 != num2){
			System.out.println("Yes");
		}else if(num2 == num3 && num2 != num1) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		int num3 = sc.nextInt();
		if(num1 == num2 && num1 != num3) {
			System.out.println("Yes");
		}else if(num1 == num3 && num1 != num2){
			System.out.println("Yes");
		}else if(num2 == num3 && num2 != num1) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		int num3 = sc.nextInt();
		if(num1 == num2 && num1 != num3) {
			System.out.println("Yes");
		}else if(num1 == num3 && num1 != num2){
			System.out.println("Yes");
		}else if(num2 == num3 && num2 != num1) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num1 = sc.nextInt(); num1 sc.nextInt() sc.nextInt sc int num2 = sc.nextInt(); num2 sc.nextInt() sc.nextInt sc int num3 = sc.nextInt(); num3 sc.nextInt() sc.nextInt sc if(num1 == num2 && num1 != num3) {
			System.out.println("Yes");
		}else if(num1 == num3 && num1 != num2){
			System.out.println("Yes");
		}else if(num2 == num3 && num2 != num1) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} num1 == num2 && num1 != num3 num1 == num2 num1 num2 num1 != num3 num1 num3 {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" if(num1 == num3 && num1 != num2){
			System.out.println("Yes");
		}else if(num2 == num3 && num2 != num1) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} num1 == num3 && num1 != num2 num1 == num3 num1 num3 num1 != num2 num1 num2 {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" if(num2 == num3 && num2 != num1) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} num2 == num3 && num2 != num1 num2 == num3 num2 num3 num2 != num1 num2 num1 {
			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 sc = new Scanner(System.in);
		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		int num3 = sc.nextInt();
		if(num1 == num2 && num1 != num3) {
			System.out.println("Yes");
		}else if(num1 == num3 && num1 != num2){
			System.out.println("Yes");
		}else if(num2 == num3 && num2 != num1) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		int num3 = sc.nextInt();
		if(num1 == num2 && num1 != num3) {
			System.out.println("Yes");
		}else if(num1 == num3 && num1 != num2){
			System.out.println("Yes");
		}else if(num2 == num3 && num2 != num1) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		int num3 = sc.nextInt();
		if(num1 == num2 && num1 != num3) {
			System.out.println("Yes");
		}else if(num1 == num3 && num1 != num2){
			System.out.println("Yes");
		}else if(num2 == num3 && num2 != num1) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

}