import java.util.*;
public class Main { //クラス名はMain
    public static void main(String[] args) {
      	Scanner sc = new Scanner(System.in);
		int n1 = Integer.parseInt(sc.next());
     	int n2 = Integer.parseInt(sc.next());
     	int n3 = Integer.parseInt(sc.next());
      	int cnt = 0;
      
      	if( n1 == n2 ){
          cnt++;
        }
      	if( n2 == n3 ){
          cnt++;
        }
      	if( n3 == n1 ){
          cnt++;
        }
      
      	if( cnt == 1 ){
       	 System.out.println("Yes");
        }else{
          System.out.println("No");
        }
    }
} import java.util.*; util.* java public class Main { //クラス名はMain
    public static void main(String[] args) {
      	Scanner sc = new Scanner(System.in);
		int n1 = Integer.parseInt(sc.next());
     	int n2 = Integer.parseInt(sc.next());
     	int n3 = Integer.parseInt(sc.next());
      	int cnt = 0;
      
      	if( n1 == n2 ){
          cnt++;
        }
      	if( n2 == n3 ){
          cnt++;
        }
      	if( n3 == n1 ){
          cnt++;
        }
      
      	if( cnt == 1 ){
       	 System.out.println("Yes");
        }else{
          System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
      	Scanner sc = new Scanner(System.in);
		int n1 = Integer.parseInt(sc.next());
     	int n2 = Integer.parseInt(sc.next());
     	int n3 = Integer.parseInt(sc.next());
      	int cnt = 0;
      
      	if( n1 == n2 ){
          cnt++;
        }
      	if( n2 == n3 ){
          cnt++;
        }
      	if( n3 == n1 ){
          cnt++;
        }
      
      	if( cnt == 1 ){
       	 System.out.println("Yes");
        }else{
          System.out.println("No");
        }
    } main {
      	Scanner sc = new Scanner(System.in);
		int n1 = Integer.parseInt(sc.next());
     	int n2 = Integer.parseInt(sc.next());
     	int n3 = Integer.parseInt(sc.next());
      	int cnt = 0;
      
      	if( n1 == n2 ){
          cnt++;
        }
      	if( n2 == n3 ){
          cnt++;
        }
      	if( n3 == n1 ){
          cnt++;
        }
      
      	if( cnt == 1 ){
       	 System.out.println("Yes");
        }else{
          System.out.println("No");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n1 = Integer.parseInt(sc.next()); n1 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int n2 = Integer.parseInt(sc.next()); n2 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int n3 = Integer.parseInt(sc.next()); n3 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int cnt = 0; cnt 0 if( n1 == n2 ){
          cnt++;
        } n1 == n2 n1 n2 {
          cnt++;
        } cnt++ cnt if( n2 == n3 ){
          cnt++;
        } n2 == n3 n2 n3 {
          cnt++;
        } cnt++ cnt if( n3 == n1 ){
          cnt++;
        } n3 == n1 n3 n1 {
          cnt++;
        } cnt++ cnt if( cnt == 1 ){
       	 System.out.println("Yes");
        }else{
          System.out.println("No");
        } cnt == 1 cnt 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" String[] args args public class Main { //クラス名はMain
    public static void main(String[] args) {
      	Scanner sc = new Scanner(System.in);
		int n1 = Integer.parseInt(sc.next());
     	int n2 = Integer.parseInt(sc.next());
     	int n3 = Integer.parseInt(sc.next());
      	int cnt = 0;
      
      	if( n1 == n2 ){
          cnt++;
        }
      	if( n2 == n3 ){
          cnt++;
        }
      	if( n3 == n1 ){
          cnt++;
        }
      
      	if( cnt == 1 ){
       	 System.out.println("Yes");
        }else{
          System.out.println("No");
        }
    }
} public class Main { //クラス名はMain
    public static void main(String[] args) {
      	Scanner sc = new Scanner(System.in);
		int n1 = Integer.parseInt(sc.next());
     	int n2 = Integer.parseInt(sc.next());
     	int n3 = Integer.parseInt(sc.next());
      	int cnt = 0;
      
      	if( n1 == n2 ){
          cnt++;
        }
      	if( n2 == n3 ){
          cnt++;
        }
      	if( n3 == n1 ){
          cnt++;
        }
      
      	if( cnt == 1 ){
       	 System.out.println("Yes");
        }else{
          System.out.println("No");
        }
    }
} Main
import java.util.*;
public class Main { //クラス名はMain
    public static void main(String[] args) {
      	Scanner sc = new Scanner(System.in);
		int n1 = Integer.parseInt(sc.next());
     	int n2 = Integer.parseInt(sc.next());
     	int n3 = Integer.parseInt(sc.next());
      	int cnt = 0;
      
      	if( n1 == n2 ){
          cnt++;
        }
      	if( n2 == n3 ){
          cnt++;
        }
      	if( n3 == n1 ){
          cnt++;
        }
      
      	if( cnt == 1 ){
       	 System.out.println("Yes");
        }else{
          System.out.println("No");
        }
    }
}