import 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();

    if(A == B){
      if(A!=C){
        System.out.println("Yes");
        return;
      }
    }
    if(A == C){
      if(B!=C){
        System.out.println("Yes");
        return;
      }
    }
    if(B == C){
      if(A!=C){
        System.out.println("Yes");
        return;
      }
    }

    System.out.println("No");
    return;


    
  }
}
 import java.util.*; util.* java 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();

    if(A == B){
      if(A!=C){
        System.out.println("Yes");
        return;
      }
    }
    if(A == C){
      if(B!=C){
        System.out.println("Yes");
        return;
      }
    }
    if(B == C){
      if(A!=C){
        System.out.println("Yes");
        return;
      }
    }

    System.out.println("No");
    return;


    
  }
} 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();

    if(A == B){
      if(A!=C){
        System.out.println("Yes");
        return;
      }
    }
    if(A == C){
      if(B!=C){
        System.out.println("Yes");
        return;
      }
    }
    if(B == C){
      if(A!=C){
        System.out.println("Yes");
        return;
      }
    }

    System.out.println("No");
    return;


    
  } main {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();    
    int C = sc.nextInt();

    if(A == B){
      if(A!=C){
        System.out.println("Yes");
        return;
      }
    }
    if(A == C){
      if(B!=C){
        System.out.println("Yes");
        return;
      }
    }
    if(B == C){
      if(A!=C){
        System.out.println("Yes");
        return;
      }
    }

    System.out.println("No");
    return;


    
  } 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 if(A == B){
      if(A!=C){
        System.out.println("Yes");
        return;
      }
    } A == B A B {
      if(A!=C){
        System.out.println("Yes");
        return;
      }
    } if(A!=C){
        System.out.println("Yes");
        return;
      } A!=C A C {
        System.out.println("Yes");
        return;
      } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; if(A == C){
      if(B!=C){
        System.out.println("Yes");
        return;
      }
    } A == C A C {
      if(B!=C){
        System.out.println("Yes");
        return;
      }
    } if(B!=C){
        System.out.println("Yes");
        return;
      } B!=C B C {
        System.out.println("Yes");
        return;
      } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; if(B == C){
      if(A!=C){
        System.out.println("Yes");
        return;
      }
    } B == C B C {
      if(A!=C){
        System.out.println("Yes");
        return;
      }
    } if(A!=C){
        System.out.println("Yes");
        return;
      } A!=C A C {
        System.out.println("Yes");
        return;
      } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; System.out.println("No") System.out.println System.out System System.out "No" return; 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();

    if(A == B){
      if(A!=C){
        System.out.println("Yes");
        return;
      }
    }
    if(A == C){
      if(B!=C){
        System.out.println("Yes");
        return;
      }
    }
    if(B == C){
      if(A!=C){
        System.out.println("Yes");
        return;
      }
    }

    System.out.println("No");
    return;


    
  }
} 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();

    if(A == B){
      if(A!=C){
        System.out.println("Yes");
        return;
      }
    }
    if(A == C){
      if(B!=C){
        System.out.println("Yes");
        return;
      }
    }
    if(B == C){
      if(A!=C){
        System.out.println("Yes");
        return;
      }
    }

    System.out.println("No");
    return;


    
  }
} Main
import 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();

    if(A == B){
      if(A!=C){
        System.out.println("Yes");
        return;
      }
    }
    if(A == C){
      if(B!=C){
        System.out.println("Yes");
        return;
      }
    }
    if(B == C){
      if(A!=C){
        System.out.println("Yes");
        return;
      }
    }

    System.out.println("No");
    return;


    
  }
}

