import java.util.Scanner;

public class Main {
	//C問題

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a, b, c;
		String kawaiso = "No";

		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();

		if (a == b && b == c) {

		} else {
			if (a == b || b == c || a == c) {
				kawaiso = "Yes";
			}
		}

		System.out.println(kawaiso);

	}

} import java.util.Scanner; Scanner java.util public class Main {
	//C問題

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a, b, c;
		String kawaiso = "No";

		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();

		if (a == b && b == c) {

		} else {
			if (a == b || b == c || a == c) {
				kawaiso = "Yes";
			}
		}

		System.out.println(kawaiso);

	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a, b, c;
		String kawaiso = "No";

		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();

		if (a == b && b == c) {

		} else {
			if (a == b || b == c || a == c) {
				kawaiso = "Yes";
			}
		}

		System.out.println(kawaiso);

	} main {
		Scanner scan = new Scanner(System.in);
		int a, b, c;
		String kawaiso = "No";

		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();

		if (a == b && b == c) {

		} else {
			if (a == b || b == c || a == c) {
				kawaiso = "Yes";
			}
		}

		System.out.println(kawaiso);

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a a b b c; c String kawaiso = "No"; kawaiso "No" a = scan.nextInt() a scan.nextInt() scan.nextInt scan b = scan.nextInt() b scan.nextInt() scan.nextInt scan c = scan.nextInt() c scan.nextInt() scan.nextInt scan if (a == b && b == c) {

		} else {
			if (a == b || b == c || a == c) {
				kawaiso = "Yes";
			}
		} a == b && b == c a == b a b b == c b c {

		} {
			if (a == b || b == c || a == c) {
				kawaiso = "Yes";
			}
		} if (a == b || b == c || a == c) {
				kawaiso = "Yes";
			} a == b || b == c || a == c a == b || b == c || a == c a == b a b b == c b c a == c a c {
				kawaiso = "Yes";
			} kawaiso = "Yes" kawaiso "Yes" System.out.println(kawaiso) System.out.println System.out System System.out kawaiso String[] args args public class Main {
	//C問題

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a, b, c;
		String kawaiso = "No";

		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();

		if (a == b && b == c) {

		} else {
			if (a == b || b == c || a == c) {
				kawaiso = "Yes";
			}
		}

		System.out.println(kawaiso);

	}

} public class Main {
	//C問題

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a, b, c;
		String kawaiso = "No";

		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();

		if (a == b && b == c) {

		} else {
			if (a == b || b == c || a == c) {
				kawaiso = "Yes";
			}
		}

		System.out.println(kawaiso);

	}

} Main
import java.util.Scanner;

public class Main {
	//C問題

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a, b, c;
		String kawaiso = "No";

		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();

		if (a == b && b == c) {

		} else {
			if (a == b || b == c || a == c) {
				kawaiso = "Yes";
			}
		}

		System.out.println(kawaiso);

	}

}