import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		int c = s.nextInt();
		boolean p = false;
		if (!(a==b & b==c)) {
			if (a==b || b==c || a==c) {
				p = true;
			}
		}
		if (p) {
			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 s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		int c = s.nextInt();
		boolean p = false;
		if (!(a==b & b==c)) {
			if (a==b || b==c || a==c) {
				p = true;
			}
		}
		if (p) {
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}

	}
} Main public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		int c = s.nextInt();
		boolean p = false;
		if (!(a==b & b==c)) {
			if (a==b || b==c || a==c) {
				p = true;
			}
		}
		if (p) {
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}

	} main {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		int c = s.nextInt();
		boolean p = false;
		if (!(a==b & b==c)) {
			if (a==b || b==c || a==c) {
				p = true;
			}
		}
		if (p) {
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}

	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int a = s.nextInt(); a s.nextInt() s.nextInt s int b = s.nextInt(); b s.nextInt() s.nextInt s int c = s.nextInt(); c s.nextInt() s.nextInt s boolean p = false; p false if (!(a==b & b==c)) {
			if (a==b || b==c || a==c) {
				p = true;
			}
		} !(a==b & b==c) (a==b & b==c) a==b a b b==c b c {
			if (a==b || b==c || a==c) {
				p = true;
			}
		} if (a==b || b==c || a==c) {
				p = true;
			} a==b || b==c || a==c a==b || b==c || a==c a==b a b b==c b c a==c a c {
				p = true;
			} p = true p true if (p) {
			System.out.println("Yes");
		}else{
			System.out.println("No");
		} p {
			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 s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		int c = s.nextInt();
		boolean p = false;
		if (!(a==b & b==c)) {
			if (a==b || b==c || a==c) {
				p = true;
			}
		}
		if (p) {
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}

	}
} public class Main{
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		int c = s.nextInt();
		boolean p = false;
		if (!(a==b & b==c)) {
			if (a==b || b==c || a==c) {
				p = true;
			}
		}
		if (p) {
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}

	}
} Main
import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		int c = s.nextInt();
		boolean p = false;
		if (!(a==b & b==c)) {
			if (a==b || b==c || a==c) {
				p = true;
			}
		}
		if (p) {
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}

	}
}