
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();

		boolean flag = false;

		if (A == B && B != C) {
			flag = true;
		}
		if (B == C && C != A) {
			flag = true;
		}
		if (A == C && B != A) {
			flag = true;
		}

		if (flag) {
			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 scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		int C = scan.nextInt();

		boolean flag = false;

		if (A == B && B != C) {
			flag = true;
		}
		if (B == C && C != A) {
			flag = true;
		}
		if (A == C && B != A) {
			flag = true;
		}

		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("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();

		boolean flag = false;

		if (A == B && B != C) {
			flag = true;
		}
		if (B == C && C != A) {
			flag = true;
		}
		if (A == C && B != A) {
			flag = true;
		}

		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	} main {

		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		int C = scan.nextInt();

		boolean flag = false;

		if (A == B && B != C) {
			flag = true;
		}
		if (B == C && C != A) {
			flag = true;
		}
		if (A == C && B != A) {
			flag = true;
		}

		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("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 boolean flag = false; flag false if (A == B && B != C) {
			flag = true;
		} A == B && B != C A == B A B B != C B C {
			flag = true;
		} flag = true flag true if (B == C && C != A) {
			flag = true;
		} B == C && C != A B == C B C C != A C A {
			flag = true;
		} flag = true flag true if (A == C && B != A) {
			flag = true;
		} A == C && B != A A == C A C B != A B A {
			flag = true;
		} flag = true flag true if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} flag {
			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 scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		int C = scan.nextInt();

		boolean flag = false;

		if (A == B && B != C) {
			flag = true;
		}
		if (B == C && C != A) {
			flag = true;
		}
		if (A == C && B != A) {
			flag = true;
		}

		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("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();

		boolean flag = false;

		if (A == B && B != C) {
			flag = true;
		}
		if (B == C && C != A) {
			flag = true;
		}
		if (A == C && B != A) {
			flag = true;
		}

		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("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();

		boolean flag = false;

		if (A == B && B != C) {
			flag = true;
		}
		if (B == C && C != A) {
			flag = true;
		}
		if (A == C && B != A) {
			flag = true;
		}

		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}
}
