import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		System.out.println((A == B && A == C) || (A != B && B != C && C != A) ? "No" : "Yes");
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		System.out.println((A == B && A == C) || (A != B && B != C && C != A) ? "No" : "Yes");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		System.out.println((A == B && A == C) || (A != B && B != C && C != A) ? "No" : "Yes");
	} main {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		System.out.println((A == B && A == C) || (A != B && B != C && C != A) ? "No" : "Yes");
	} 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 System.out.println((A == B && A == C) || (A != B && B != C && C != A) ? "No" : "Yes") System.out.println System.out System System.out (A == B && A == C) || (A != B && B != C && C != A) ? "No" : "Yes" (A == B && A == C) || (A != B && B != C && C != A) (A == B && A == C) A == B A B A == C A C (A != B && B != C && C != A) A != B && B != C && C != A A != B A B B != C B C C != A C A "No" "Yes" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		System.out.println((A == B && A == C) || (A != B && B != C && C != A) ? "No" : "Yes");
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		System.out.println((A == B && A == C) || (A != B && B != C && C != A) ? "No" : "Yes");
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		System.out.println((A == B && A == C) || (A != B && B != C && C != A) ? "No" : "Yes");
	}
}