
import java.util.Scanner;

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();
		int count = 0;
		if(a == b){
			count++;
		}
		if(b == c){
			count++;
		}
		if(c == a){
			count++;
		}
		System.out.println(count == 1 ? "Yes" : "No");
	}
} import java.util.Scanner; Scanner 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();
		int count = 0;
		if(a == b){
			count++;
		}
		if(b == c){
			count++;
		}
		if(c == a){
			count++;
		}
		System.out.println(count == 1 ? "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();
		int count = 0;
		if(a == b){
			count++;
		}
		if(b == c){
			count++;
		}
		if(c == a){
			count++;
		}
		System.out.println(count == 1 ? "Yes" : "No");
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int count = 0;
		if(a == b){
			count++;
		}
		if(b == c){
			count++;
		}
		if(c == a){
			count++;
		}
		System.out.println(count == 1 ? "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 int count = 0; count 0 if(a == b){
			count++;
		} a == b a b {
			count++;
		} count++ count if(b == c){
			count++;
		} b == c b c {
			count++;
		} count++ count if(c == a){
			count++;
		} c == a c a {
			count++;
		} count++ count System.out.println(count == 1 ? "Yes" : "No") System.out.println System.out System System.out count == 1 ? "Yes" : "No" count == 1 count 1 "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();
		int count = 0;
		if(a == b){
			count++;
		}
		if(b == c){
			count++;
		}
		if(c == a){
			count++;
		}
		System.out.println(count == 1 ? "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();
		int count = 0;
		if(a == b){
			count++;
		}
		if(b == c){
			count++;
		}
		if(c == a){
			count++;
		}
		System.out.println(count == 1 ? "Yes" : "No");
	}
} Main

import java.util.Scanner;

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();
		int count = 0;
		if(a == b){
			count++;
		}
		if(b == c){
			count++;
		}
		if(c == a){
			count++;
		}
		System.out.println(count == 1 ? "Yes" : "No");
	}
}
