import java.io.IOException;
import java.util.Scanner;

public class Main{
	public static void main(String[] args) throws IOException {
		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 ? "Yes" : a == c && a != b ? "Yes" : b == c && a != b ? "Yes" : "No");
	}

} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) throws IOException {
		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 ? "Yes" : a == c && a != b ? "Yes" : b == c && a != b ? "Yes" : "No");
	}

} Main public static void main(String[] args) throws IOException {
		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 ? "Yes" : a == c && a != b ? "Yes" : b == c && a != b ? "Yes" : "No");
	} 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 ? "Yes" : a == c && a != b ? "Yes" : b == c && a != b ? "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 System.out.println(a == b && a != c ? "Yes" : a == c && a != b ? "Yes" : b == c && a != b ? "Yes" : "No") System.out.println System.out System System.out a == b && a != c ? "Yes" : a == c && a != b ? "Yes" : b == c && a != b ? "Yes" : "No" a == b && a != c a == b a b a != c a c "Yes" a == c && a != b ? "Yes" : b == c && a != b ? "Yes" : "No" a == c && a != b a == c a c a != b a b "Yes" b == c && a != b ? "Yes" : "No" b == c && a != b b == c b c a != b a b "Yes" "No" String[] args args public class Main{
	public static void main(String[] args) throws IOException {
		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 ? "Yes" : a == c && a != b ? "Yes" : b == c && a != b ? "Yes" : "No");
	}

} public class Main{
	public static void main(String[] args) throws IOException {
		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 ? "Yes" : a == c && a != b ? "Yes" : b == c && a != b ? "Yes" : "No");
	}

} Main
import java.io.IOException;
import java.util.Scanner;

public class Main{
	public static void main(String[] args) throws IOException {
		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 ? "Yes" : a == c && a != b ? "Yes" : b == c && a != b ? "Yes" : "No");
	}

}
