import java.util.Arrays;
import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		
		String[] strs = str.split(" ");
		if(strs[0].equals(strs[1])) {
			if(!strs[0].equals(strs[2])) {
				System.out.println("Yes");				
			}else {
				System.out.println("No");	
			}
			
		}else if(strs[1].equals(strs[2])) {
			if(!strs[1].equals(strs[0])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			}
		}else if(strs[0].equals(strs[2])) {
			if(!strs[0].equals(strs[1])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			}
		}else {
			System.out.println("No");
			
		}
		
	}

} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main{

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		
		String[] strs = str.split(" ");
		if(strs[0].equals(strs[1])) {
			if(!strs[0].equals(strs[2])) {
				System.out.println("Yes");				
			}else {
				System.out.println("No");	
			}
			
		}else if(strs[1].equals(strs[2])) {
			if(!strs[1].equals(strs[0])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			}
		}else if(strs[0].equals(strs[2])) {
			if(!strs[0].equals(strs[1])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			}
		}else {
			System.out.println("No");
			
		}
		
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		
		String[] strs = str.split(" ");
		if(strs[0].equals(strs[1])) {
			if(!strs[0].equals(strs[2])) {
				System.out.println("Yes");				
			}else {
				System.out.println("No");	
			}
			
		}else if(strs[1].equals(strs[2])) {
			if(!strs[1].equals(strs[0])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			}
		}else if(strs[0].equals(strs[2])) {
			if(!strs[0].equals(strs[1])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			}
		}else {
			System.out.println("No");
			
		}
		
	} main {
		// TODO Auto-generated method stub
		
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		
		String[] strs = str.split(" ");
		if(strs[0].equals(strs[1])) {
			if(!strs[0].equals(strs[2])) {
				System.out.println("Yes");				
			}else {
				System.out.println("No");	
			}
			
		}else if(strs[1].equals(strs[2])) {
			if(!strs[1].equals(strs[0])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			}
		}else if(strs[0].equals(strs[2])) {
			if(!strs[0].equals(strs[1])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			}
		}else {
			System.out.println("No");
			
		}
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = scan.nextLine(); str scan.nextLine() scan.nextLine scan String[] strs = str.split(" "); strs str.split(" ") str.split str " " if(strs[0].equals(strs[1])) {
			if(!strs[0].equals(strs[2])) {
				System.out.println("Yes");				
			}else {
				System.out.println("No");	
			}
			
		}else if(strs[1].equals(strs[2])) {
			if(!strs[1].equals(strs[0])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			}
		}else if(strs[0].equals(strs[2])) {
			if(!strs[0].equals(strs[1])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			}
		}else {
			System.out.println("No");
			
		} strs[0].equals(strs[1]) strs[0].equals strs[0] strs 0 strs[1] strs 1 {
			if(!strs[0].equals(strs[2])) {
				System.out.println("Yes");				
			}else {
				System.out.println("No");	
			}
			
		} if(!strs[0].equals(strs[2])) {
				System.out.println("Yes");				
			}else {
				System.out.println("No");	
			} !strs[0].equals(strs[2]) strs[0].equals(strs[2]) strs[0].equals strs[0] strs 0 strs[2] strs 2 {
				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" if(strs[1].equals(strs[2])) {
			if(!strs[1].equals(strs[0])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			}
		}else if(strs[0].equals(strs[2])) {
			if(!strs[0].equals(strs[1])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			}
		}else {
			System.out.println("No");
			
		} strs[1].equals(strs[2]) strs[1].equals strs[1] strs 1 strs[2] strs 2 {
			if(!strs[1].equals(strs[0])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			}
		} if(!strs[1].equals(strs[0])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			} !strs[1].equals(strs[0]) strs[1].equals(strs[0]) strs[1].equals strs[1] strs 1 strs[0] strs 0 {
				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" if(strs[0].equals(strs[2])) {
			if(!strs[0].equals(strs[1])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			}
		}else {
			System.out.println("No");
			
		} strs[0].equals(strs[2]) strs[0].equals strs[0] strs 0 strs[2] strs 2 {
			if(!strs[0].equals(strs[1])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			}
		} if(!strs[0].equals(strs[1])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			} !strs[0].equals(strs[1]) strs[0].equals(strs[1]) strs[0].equals strs[0] strs 0 strs[1] strs 1 {
				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" {
			System.out.println("No");
			
		} 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) {
		// TODO Auto-generated method stub
		
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		
		String[] strs = str.split(" ");
		if(strs[0].equals(strs[1])) {
			if(!strs[0].equals(strs[2])) {
				System.out.println("Yes");				
			}else {
				System.out.println("No");	
			}
			
		}else if(strs[1].equals(strs[2])) {
			if(!strs[1].equals(strs[0])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			}
		}else if(strs[0].equals(strs[2])) {
			if(!strs[0].equals(strs[1])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			}
		}else {
			System.out.println("No");
			
		}
		
	}

} public class Main{

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		
		String[] strs = str.split(" ");
		if(strs[0].equals(strs[1])) {
			if(!strs[0].equals(strs[2])) {
				System.out.println("Yes");				
			}else {
				System.out.println("No");	
			}
			
		}else if(strs[1].equals(strs[2])) {
			if(!strs[1].equals(strs[0])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			}
		}else if(strs[0].equals(strs[2])) {
			if(!strs[0].equals(strs[1])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			}
		}else {
			System.out.println("No");
			
		}
		
	}

} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		
		String[] strs = str.split(" ");
		if(strs[0].equals(strs[1])) {
			if(!strs[0].equals(strs[2])) {
				System.out.println("Yes");				
			}else {
				System.out.println("No");	
			}
			
		}else if(strs[1].equals(strs[2])) {
			if(!strs[1].equals(strs[0])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			}
		}else if(strs[0].equals(strs[2])) {
			if(!strs[0].equals(strs[1])) {
				System.out.println("Yes");
			}else {
				System.out.println("No");	
			}
		}else {
			System.out.println("No");
			
		}
		
	}

}