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();
		boolean ok = false;
		if(A == B && C != A)
			ok = true;
		else if(A == C && C != B)
			ok = true;
		else if(B == C && A != B)
			ok = true;
		System.out.println(ok ? "Yes" : "No");

	}

} 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();
		boolean ok = false;
		if(A == B && C != A)
			ok = true;
		else if(A == C && C != B)
			ok = true;
		else if(B == C && A != B)
			ok = true;
		System.out.println(ok ? "Yes" : "No");

	}

} 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();
		boolean ok = false;
		if(A == B && C != A)
			ok = true;
		else if(A == C && C != B)
			ok = true;
		else if(B == C && A != B)
			ok = true;
		System.out.println(ok ? "Yes" : "No");

	} main {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		boolean ok = false;
		if(A == B && C != A)
			ok = true;
		else if(A == C && C != B)
			ok = true;
		else if(B == C && A != B)
			ok = true;
		System.out.println(ok ? "Yes" : "No");

	} 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 boolean ok = false; ok false if(A == B && C != A)
			ok = true;
		else if(A == C && C != B)
			ok = true;
		else if(B == C && A != B)
			ok = true; A == B && C != A A == B A B C != A C A ok = true ok true if(A == C && C != B)
			ok = true;
		else if(B == C && A != B)
			ok = true; A == C && C != B A == C A C C != B C B ok = true ok true if(B == C && A != B)
			ok = true; B == C && A != B B == C B C A != B A B ok = true ok true System.out.println(ok ? "Yes" : "No") System.out.println System.out System System.out ok ? "Yes" : "No" ok "Yes" "No" 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();
		boolean ok = false;
		if(A == B && C != A)
			ok = true;
		else if(A == C && C != B)
			ok = true;
		else if(B == C && A != B)
			ok = true;
		System.out.println(ok ? "Yes" : "No");

	}

} 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();
		boolean ok = false;
		if(A == B && C != A)
			ok = true;
		else if(A == C && C != B)
			ok = true;
		else if(B == C && A != B)
			ok = true;
		System.out.println(ok ? "Yes" : "No");

	}

} 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();
		boolean ok = false;
		if(A == B && C != A)
			ok = true;
		else if(A == C && C != B)
			ok = true;
		else if(B == C && A != B)
			ok = true;
		System.out.println(ok ? "Yes" : "No");

	}

}