import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
			int[] a = new int[3];
			for(int i=0 ; i<3 ; i++) {
				a[i] = stdIn.nextInt();
			}
			if(a[0]==a[1]&&a[1] == a[2]||a[0]!=a[1]&&a[1]!=a[2]&&a[2]!=a[0]) {
				System.out.println("No");
			}else {
				System.out.println("Yes");
			}
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
			int[] a = new int[3];
			for(int i=0 ; i<3 ; i++) {
				a[i] = stdIn.nextInt();
			}
			if(a[0]==a[1]&&a[1] == a[2]||a[0]!=a[1]&&a[1]!=a[2]&&a[2]!=a[0]) {
				System.out.println("No");
			}else {
				System.out.println("Yes");
			}
	}
} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
			int[] a = new int[3];
			for(int i=0 ; i<3 ; i++) {
				a[i] = stdIn.nextInt();
			}
			if(a[0]==a[1]&&a[1] == a[2]||a[0]!=a[1]&&a[1]!=a[2]&&a[2]!=a[0]) {
				System.out.println("No");
			}else {
				System.out.println("Yes");
			}
	} main {
		Scanner stdIn = new Scanner(System.in);
			int[] a = new int[3];
			for(int i=0 ; i<3 ; i++) {
				a[i] = stdIn.nextInt();
			}
			if(a[0]==a[1]&&a[1] == a[2]||a[0]!=a[1]&&a[1]!=a[2]&&a[2]!=a[0]) {
				System.out.println("No");
			}else {
				System.out.println("Yes");
			}
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int[] a = new int[3]; a new int[3] 3 for(int i=0 ; i<3 ; i++) {
				a[i] = stdIn.nextInt();
			} int i=0 ; int i=0 ; i 0 i<3 i 3 i++ i++ i {
				a[i] = stdIn.nextInt();
			} {
				a[i] = stdIn.nextInt();
			} a[i] = stdIn.nextInt() a[i] a i stdIn.nextInt() stdIn.nextInt stdIn if(a[0]==a[1]&&a[1] == a[2]||a[0]!=a[1]&&a[1]!=a[2]&&a[2]!=a[0]) {
				System.out.println("No");
			}else {
				System.out.println("Yes");
			} a[0]==a[1]&&a[1] == a[2]||a[0]!=a[1]&&a[1]!=a[2]&&a[2]!=a[0] a[0]==a[1]&&a[1] == a[2] a[0]==a[1] a[0] a 0 a[1] a 1 a[1] == a[2] a[1] a 1 a[2] a 2 a[0]!=a[1]&&a[1]!=a[2]&&a[2]!=a[0] a[0]!=a[1]&&a[1]!=a[2]&&a[2]!=a[0] a[0]!=a[1] a[0] a 0 a[1] a 1 a[1]!=a[2] a[1] a 1 a[2] a 2 a[2]!=a[0] a[2] a 2 a[0] a 0 {
				System.out.println("No");
			} System.out.println("No") System.out.println System.out System System.out "No" {
				System.out.println("Yes");
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main{
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
			int[] a = new int[3];
			for(int i=0 ; i<3 ; i++) {
				a[i] = stdIn.nextInt();
			}
			if(a[0]==a[1]&&a[1] == a[2]||a[0]!=a[1]&&a[1]!=a[2]&&a[2]!=a[0]) {
				System.out.println("No");
			}else {
				System.out.println("Yes");
			}
	}
} public class Main{
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
			int[] a = new int[3];
			for(int i=0 ; i<3 ; i++) {
				a[i] = stdIn.nextInt();
			}
			if(a[0]==a[1]&&a[1] == a[2]||a[0]!=a[1]&&a[1]!=a[2]&&a[2]!=a[0]) {
				System.out.println("No");
			}else {
				System.out.println("Yes");
			}
	}
} Main
import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
			int[] a = new int[3];
			for(int i=0 ; i<3 ; i++) {
				a[i] = stdIn.nextInt();
			}
			if(a[0]==a[1]&&a[1] == a[2]||a[0]!=a[1]&&a[1]!=a[2]&&a[2]!=a[0]) {
				System.out.println("No");
			}else {
				System.out.println("Yes");
			}
	}
}
