import java.util.Scanner;

public class Main {

	public static int A;
	public static int B;
	public static int C;

	public static void main(String[] args) {
		init();
		if ((A == B && B != C) || (B == C && C != A) || (C == A && A != B)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

	public static void init() {
		Scanner sc = new Scanner(System.in);
		try {
			A = sc.nextInt();
			B = sc.nextInt();
			C = sc.nextInt();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static int A;
	public static int B;
	public static int C;

	public static void main(String[] args) {
		init();
		if ((A == B && B != C) || (B == C && C != A) || (C == A && A != B)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

	public static void init() {
		Scanner sc = new Scanner(System.in);
		try {
			A = sc.nextInt();
			B = sc.nextInt();
			C = sc.nextInt();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} Main public static int A; A public static int B; B public static int C; C public static void main(String[] args) {
		init();
		if ((A == B && B != C) || (B == C && C != A) || (C == A && A != B)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	} main {
		init();
		if ((A == B && B != C) || (B == C && C != A) || (C == A && A != B)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	} init() init if ((A == B && B != C) || (B == C && C != A) || (C == A && A != B)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} (A == B && B != C) || (B == C && C != A) || (C == A && A != B) (A == B && B != C) || (B == C && C != A) || (C == A && A != B) (A == B && B != C) A == B A B B != C B C (B == C && C != A) B == C B C C != A C A (C == A && A != B) C == A C A A != B A B {
			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 static void init() {
		Scanner sc = new Scanner(System.in);
		try {
			A = sc.nextInt();
			B = sc.nextInt();
			C = sc.nextInt();
		} catch (Exception e) {
			e.printStackTrace();
		}
	} init {
		Scanner sc = new Scanner(System.in);
		try {
			A = sc.nextInt();
			B = sc.nextInt();
			C = sc.nextInt();
		} catch (Exception e) {
			e.printStackTrace();
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) try {
			A = sc.nextInt();
			B = sc.nextInt();
			C = sc.nextInt();
		} catch (Exception e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		} Exception e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			A = sc.nextInt();
			B = sc.nextInt();
			C = sc.nextInt();
		} A = sc.nextInt() A sc.nextInt() sc.nextInt sc B = sc.nextInt() B sc.nextInt() sc.nextInt sc C = sc.nextInt() C sc.nextInt() sc.nextInt sc public class Main {

	public static int A;
	public static int B;
	public static int C;

	public static void main(String[] args) {
		init();
		if ((A == B && B != C) || (B == C && C != A) || (C == A && A != B)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

	public static void init() {
		Scanner sc = new Scanner(System.in);
		try {
			A = sc.nextInt();
			B = sc.nextInt();
			C = sc.nextInt();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} public class Main {

	public static int A;
	public static int B;
	public static int C;

	public static void main(String[] args) {
		init();
		if ((A == B && B != C) || (B == C && C != A) || (C == A && A != B)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

	public static void init() {
		Scanner sc = new Scanner(System.in);
		try {
			A = sc.nextInt();
			B = sc.nextInt();
			C = sc.nextInt();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static int A;
	public static int B;
	public static int C;

	public static void main(String[] args) {
		init();
		if ((A == B && B != C) || (B == C && C != A) || (C == A && A != B)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

	public static void init() {
		Scanner sc = new Scanner(System.in);
		try {
			A = sc.nextInt();
			B = sc.nextInt();
			C = sc.nextInt();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
