import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt(), b = s.nextInt(), c = s.nextInt();
		int[] t = new int[] {a, b, c};
		Arrays.sort(t);
		if( (t[0] == t[1] && t[1] != t[2]) || (t[2] == t[1] && t[1] != t[0])) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
} import java.util.Arrays; Arrays java.util 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(), b = s.nextInt(), c = s.nextInt();
		int[] t = new int[] {a, b, c};
		Arrays.sort(t);
		if( (t[0] == t[1] && t[1] != t[2]) || (t[2] == t[1] && t[1] != t[0])) {
			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(), b = s.nextInt(), c = s.nextInt();
		int[] t = new int[] {a, b, c};
		Arrays.sort(t);
		if( (t[0] == t[1] && t[1] != t[2]) || (t[2] == t[1] && t[1] != t[0])) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} main {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt(), b = s.nextInt(), c = s.nextInt();
		int[] t = new int[] {a, b, c};
		Arrays.sort(t);
		if( (t[0] == t[1] && t[1] != t[2]) || (t[2] == t[1] && t[1] != t[0])) {
			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 b = s.nextInt() b s.nextInt() s.nextInt s c = s.nextInt(); c s.nextInt() s.nextInt s int[] t = new int[] {a, b, c}; t new int[] {a, b, c} Arrays.sort(t) Arrays.sort Arrays t if( (t[0] == t[1] && t[1] != t[2]) || (t[2] == t[1] && t[1] != t[0])) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} (t[0] == t[1] && t[1] != t[2]) || (t[2] == t[1] && t[1] != t[0]) (t[0] == t[1] && t[1] != t[2]) t[0] == t[1] t[0] t 0 t[1] t 1 t[1] != t[2] t[1] t 1 t[2] t 2 (t[2] == t[1] && t[1] != t[0]) t[2] == t[1] t[2] t 2 t[1] t 1 t[1] != t[0] t[1] t 1 t[0] t 0 {
			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(), b = s.nextInt(), c = s.nextInt();
		int[] t = new int[] {a, b, c};
		Arrays.sort(t);
		if( (t[0] == t[1] && t[1] != t[2]) || (t[2] == t[1] && t[1] != t[0])) {
			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(), b = s.nextInt(), c = s.nextInt();
		int[] t = new int[] {a, b, c};
		Arrays.sort(t);
		if( (t[0] == t[1] && t[1] != t[2]) || (t[2] == t[1] && t[1] != t[0])) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt(), b = s.nextInt(), c = s.nextInt();
		int[] t = new int[] {a, b, c};
		Arrays.sort(t);
		if( (t[0] == t[1] && t[1] != t[2]) || (t[2] == t[1] && t[1] != t[0])) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
}
