import java.util.Scanner;
 

//result = Math.pow(num1, num3)
//StringBuffer str = new StringBuffer(hoge1);
//String hoge2 = str.reverse().toString();
public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	
	
	public static void main(String[] args) {
	int n =sc.nextInt();
	int a =sc.nextInt();
	int b =sc.nextInt();
	if(n==a&&n!=b) {
		p("Yes");
	}else if(n==b&&n!=a) {
		p("Yes");
	}else if(a==b&&a!=n) {
		p("Yes");
	}else {
		p("No");
	}
	
	
	
	}
} import java.util.Scanner; Scanner java.util public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	
	
	public static void main(String[] args) {
	int n =sc.nextInt();
	int a =sc.nextInt();
	int b =sc.nextInt();
	if(n==a&&n!=b) {
		p("Yes");
	}else if(n==b&&n!=a) {
		p("Yes");
	}else if(a==b&&a!=n) {
		p("Yes");
	}else {
		p("No");
	}
	
	
	
	}
} Main private static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static void p(String ans) {System.out.println(ans);} p {System.out.println(ans);} System.out.println(ans) System.out.println System.out System System.out ans String ans ans static void p(int ans) {System.out.println(ans);} p {System.out.println(ans);} System.out.println(ans) System.out.println System.out System System.out ans int ans ans static void p(long ans) {System.out.println(ans);} p {System.out.println(ans);} System.out.println(ans) System.out.println System.out System System.out ans long ans ans public static void main(String[] args) {
	int n =sc.nextInt();
	int a =sc.nextInt();
	int b =sc.nextInt();
	if(n==a&&n!=b) {
		p("Yes");
	}else if(n==b&&n!=a) {
		p("Yes");
	}else if(a==b&&a!=n) {
		p("Yes");
	}else {
		p("No");
	}
	
	
	
	} main {
	int n =sc.nextInt();
	int a =sc.nextInt();
	int b =sc.nextInt();
	if(n==a&&n!=b) {
		p("Yes");
	}else if(n==b&&n!=a) {
		p("Yes");
	}else if(a==b&&a!=n) {
		p("Yes");
	}else {
		p("No");
	}
	
	
	
	} int n =sc.nextInt(); n sc.nextInt() sc.nextInt sc int a =sc.nextInt(); a sc.nextInt() sc.nextInt sc int b =sc.nextInt(); b sc.nextInt() sc.nextInt sc if(n==a&&n!=b) {
		p("Yes");
	}else if(n==b&&n!=a) {
		p("Yes");
	}else if(a==b&&a!=n) {
		p("Yes");
	}else {
		p("No");
	} n==a&&n!=b n==a n a n!=b n b {
		p("Yes");
	} p("Yes") p "Yes" if(n==b&&n!=a) {
		p("Yes");
	}else if(a==b&&a!=n) {
		p("Yes");
	}else {
		p("No");
	} n==b&&n!=a n==b n b n!=a n a {
		p("Yes");
	} p("Yes") p "Yes" if(a==b&&a!=n) {
		p("Yes");
	}else {
		p("No");
	} a==b&&a!=n a==b a b a!=n a n {
		p("Yes");
	} p("Yes") p "Yes" {
		p("No");
	} p("No") p "No" String[] args args public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	
	
	public static void main(String[] args) {
	int n =sc.nextInt();
	int a =sc.nextInt();
	int b =sc.nextInt();
	if(n==a&&n!=b) {
		p("Yes");
	}else if(n==b&&n!=a) {
		p("Yes");
	}else if(a==b&&a!=n) {
		p("Yes");
	}else {
		p("No");
	}
	
	
	
	}
} public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	
	
	public static void main(String[] args) {
	int n =sc.nextInt();
	int a =sc.nextInt();
	int b =sc.nextInt();
	if(n==a&&n!=b) {
		p("Yes");
	}else if(n==b&&n!=a) {
		p("Yes");
	}else if(a==b&&a!=n) {
		p("Yes");
	}else {
		p("No");
	}
	
	
	
	}
} Main
import java.util.Scanner;
 

//result = Math.pow(num1, num3)
//StringBuffer str = new StringBuffer(hoge1);
//String hoge2 = str.reverse().toString();
public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	
	
	public static void main(String[] args) {
	int n =sc.nextInt();
	int a =sc.nextInt();
	int b =sc.nextInt();
	if(n==a&&n!=b) {
		p("Yes");
	}else if(n==b&&n!=a) {
		p("Yes");
	}else if(a==b&&a!=n) {
		p("Yes");
	}else {
		p("No");
	}
	
	
	
	}
}