import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		scan.close();
		System.out.println((a == b && b != c || a == c && b != c || c == b && b != a)? "Yes":"No");
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		scan.close();
		System.out.println((a == b && b != c || a == c && b != c || c == b && b != a)? "Yes":"No");
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		scan.close();
		System.out.println((a == b && b != c || a == c && b != c || c == b && b != a)? "Yes":"No");
	} main {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		scan.close();
		System.out.println((a == b && b != c || a == c && b != c || c == b && b != a)? "Yes":"No");
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = scan.nextInt(); c scan.nextInt() scan.nextInt scan scan.close() scan.close scan System.out.println((a == b && b != c || a == c && b != c || c == b && b != a)? "Yes":"No") System.out.println System.out System System.out (a == b && b != c || a == c && b != c || c == b && b != a)? "Yes":"No" (a == b && b != c || a == c && b != c || c == b && b != a) a == b && b != c || a == c && b != c || c == b && b != a a == b && b != c a == b a b b != c b c a == c && b != c a == c a c b != c b c c == b && b != a c == b c b b != a b a "Yes" "No" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		scan.close();
		System.out.println((a == b && b != c || a == c && b != c || c == b && b != a)? "Yes":"No");
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		scan.close();
		System.out.println((a == b && b != c || a == c && b != c || c == b && b != a)? "Yes":"No");
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		scan.close();
		System.out.println((a == b && b != c || a == c && b != c || c == b && b != a)? "Yes":"No");
	}
}