
import java.util.*;
import java.lang.*;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Scanner sc1 = new Scanner(System.in);
		int i = 0, j = 0, k = 0, flag;
		i = sc.nextInt();
		j = sc.nextInt();
		k = sc.nextInt();
		if (i == j && i != k) {
			System.out.println("Yes");

		} else if (j == k && j != i) {
			System.out.println("Yes");

		} else if (k == i && k != j) {
			System.out.println("Yes");
		} else
			System.out.println("No");
	}
} import java.util.*; util.* java import java.lang.*; lang.* java public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Scanner sc1 = new Scanner(System.in);
		int i = 0, j = 0, k = 0, flag;
		i = sc.nextInt();
		j = sc.nextInt();
		k = sc.nextInt();
		if (i == j && i != k) {
			System.out.println("Yes");

		} else if (j == k && j != i) {
			System.out.println("Yes");

		} else if (k == i && k != j) {
			System.out.println("Yes");
		} else
			System.out.println("No");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Scanner sc1 = new Scanner(System.in);
		int i = 0, j = 0, k = 0, flag;
		i = sc.nextInt();
		j = sc.nextInt();
		k = sc.nextInt();
		if (i == j && i != k) {
			System.out.println("Yes");

		} else if (j == k && j != i) {
			System.out.println("Yes");

		} else if (k == i && k != j) {
			System.out.println("Yes");
		} else
			System.out.println("No");
	} main {
		Scanner sc = new Scanner(System.in);
		Scanner sc1 = new Scanner(System.in);
		int i = 0, j = 0, k = 0, flag;
		i = sc.nextInt();
		j = sc.nextInt();
		k = sc.nextInt();
		if (i == j && i != k) {
			System.out.println("Yes");

		} else if (j == k && j != i) {
			System.out.println("Yes");

		} else if (k == i && k != j) {
			System.out.println("Yes");
		} else
			System.out.println("No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Scanner sc1 = new Scanner(System.in); sc1 new Scanner(System.in) int i = 0 i 0 j = 0 j 0 k = 0 k 0 flag; flag i = sc.nextInt() i sc.nextInt() sc.nextInt sc j = sc.nextInt() j sc.nextInt() sc.nextInt sc k = sc.nextInt() k sc.nextInt() sc.nextInt sc if (i == j && i != k) {
			System.out.println("Yes");

		} else if (j == k && j != i) {
			System.out.println("Yes");

		} else if (k == i && k != j) {
			System.out.println("Yes");
		} else
			System.out.println("No"); i == j && i != k i == j i j i != k i k {
			System.out.println("Yes");

		} System.out.println("Yes") System.out.println System.out System System.out "Yes" if (j == k && j != i) {
			System.out.println("Yes");

		} else if (k == i && k != j) {
			System.out.println("Yes");
		} else
			System.out.println("No"); j == k && j != i j == k j k j != i j i {
			System.out.println("Yes");

		} System.out.println("Yes") System.out.println System.out System System.out "Yes" if (k == i && k != j) {
			System.out.println("Yes");
		} else
			System.out.println("No"); k == i && k != j k == i k i k != j k j {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" 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 sc = new Scanner(System.in);
		Scanner sc1 = new Scanner(System.in);
		int i = 0, j = 0, k = 0, flag;
		i = sc.nextInt();
		j = sc.nextInt();
		k = sc.nextInt();
		if (i == j && i != k) {
			System.out.println("Yes");

		} else if (j == k && j != i) {
			System.out.println("Yes");

		} else if (k == i && k != j) {
			System.out.println("Yes");
		} else
			System.out.println("No");
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Scanner sc1 = new Scanner(System.in);
		int i = 0, j = 0, k = 0, flag;
		i = sc.nextInt();
		j = sc.nextInt();
		k = sc.nextInt();
		if (i == j && i != k) {
			System.out.println("Yes");

		} else if (j == k && j != i) {
			System.out.println("Yes");

		} else if (k == i && k != j) {
			System.out.println("Yes");
		} else
			System.out.println("No");
	}
} Main

import java.util.*;
import java.lang.*;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Scanner sc1 = new Scanner(System.in);
		int i = 0, j = 0, k = 0, flag;
		i = sc.nextInt();
		j = sc.nextInt();
		k = sc.nextInt();
		if (i == j && i != k) {
			System.out.println("Yes");

		} else if (j == k && j != i) {
			System.out.println("Yes");

		} else if (k == i && k != j) {
			System.out.println("Yes");
		} else
			System.out.println("No");
	}
}
