
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		int c=sc.nextInt();

		if((a==b && a != c) || (a==c && a != b) || (b==c && b != a)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		int c=sc.nextInt();

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

		if((a==b && a != c) || (a==c && a != b) || (b==c && b != a)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	} run {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		int c=sc.nextInt();

		if((a==b && a != c) || (a==c && a != b) || (b==c && b != a)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc int b=sc.nextInt(); b sc.nextInt() sc.nextInt sc int c=sc.nextInt(); c sc.nextInt() sc.nextInt sc if((a==b && a != c) || (a==c && a != b) || (b==c && b != a)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} (a==b && a != c) || (a==c && a != b) || (b==c && b != a) (a==b && a != c) || (a==c && a != b) || (b==c && b != a) (a==b && a != c) a==b a b a != c a c (a==c && a != b) a==c a c a != b a b (b==c && b != a) b==c b c b != a b a {
			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" sc.close() sc.close sc public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		int c=sc.nextInt();

		if((a==b && a != c) || (a==c && a != b) || (b==c && b != a)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	}
} public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		int c=sc.nextInt();

		if((a==b && a != c) || (a==c && a != b) || (b==c && b != a)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	}
} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		int c=sc.nextInt();

		if((a==b && a != c) || (a==c && a != b) || (b==c && b != a)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	}
}
