import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();

		String ans = "No";

		if(A == B && B != C)
			ans = "Yes";
		if(A == C && A != B)
			ans = "Yes";
		if(B == C && A != B)
			ans = "Yes";

		System.out.println(ans);
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();

		String ans = "No";

		if(A == B && B != C)
			ans = "Yes";
		if(A == C && A != B)
			ans = "Yes";
		if(B == C && A != B)
			ans = "Yes";

		System.out.println(ans);
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();

		String ans = "No";

		if(A == B && B != C)
			ans = "Yes";
		if(A == C && A != B)
			ans = "Yes";
		if(B == C && A != B)
			ans = "Yes";

		System.out.println(ans);
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();

		String ans = "No";

		if(A == B && B != C)
			ans = "Yes";
		if(A == C && A != B)
			ans = "Yes";
		if(B == C && A != B)
			ans = "Yes";

		System.out.println(ans);
	} 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 String ans = "No"; ans "No" if(A == B && B != C)
			ans = "Yes"; A == B && B != C A == B A B B != C B C ans = "Yes" ans "Yes" if(A == C && A != B)
			ans = "Yes"; A == C && A != B A == C A C A != B A B ans = "Yes" ans "Yes" if(B == C && A != B)
			ans = "Yes"; B == C && A != B B == C B C A != B A B ans = "Yes" ans "Yes" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();

		String ans = "No";

		if(A == B && B != C)
			ans = "Yes";
		if(A == C && A != B)
			ans = "Yes";
		if(B == C && A != B)
			ans = "Yes";

		System.out.println(ans);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();

		String ans = "No";

		if(A == B && B != C)
			ans = "Yes";
		if(A == C && A != B)
			ans = "Yes";
		if(B == C && A != B)
			ans = "Yes";

		System.out.println(ans);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();

		String ans = "No";

		if(A == B && B != C)
			ans = "Yes";
		if(A == C && A != B)
			ans = "Yes";
		if(B == C && A != B)
			ans = "Yes";

		System.out.println(ans);
	}

}
