import java.util.*;

public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    //int N = sc.nextInt();
    int count = 0;
    
    if(str.charAt(0) == str.charAt(1)){
        count++;
    }else{
    }
    if(str.charAt(0) == str.charAt(2)){
        count++;
    }else{
    }
    if(str.charAt(1) == str.charAt(2)){
        count++;
    }else{
    }
    
    if(count == 3){
        System.out.println("No");
    }else{
        System.out.println("Yes");
    }
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    //int N = sc.nextInt();
    int count = 0;
    
    if(str.charAt(0) == str.charAt(1)){
        count++;
    }else{
    }
    if(str.charAt(0) == str.charAt(2)){
        count++;
    }else{
    }
    if(str.charAt(1) == str.charAt(2)){
        count++;
    }else{
    }
    
    if(count == 3){
        System.out.println("No");
    }else{
        System.out.println("Yes");
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    //int N = sc.nextInt();
    int count = 0;
    
    if(str.charAt(0) == str.charAt(1)){
        count++;
    }else{
    }
    if(str.charAt(0) == str.charAt(2)){
        count++;
    }else{
    }
    if(str.charAt(1) == str.charAt(2)){
        count++;
    }else{
    }
    
    if(count == 3){
        System.out.println("No");
    }else{
        System.out.println("Yes");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    //int N = sc.nextInt();
    int count = 0;
    
    if(str.charAt(0) == str.charAt(1)){
        count++;
    }else{
    }
    if(str.charAt(0) == str.charAt(2)){
        count++;
    }else{
    }
    if(str.charAt(1) == str.charAt(2)){
        count++;
    }else{
    }
    
    if(count == 3){
        System.out.println("No");
    }else{
        System.out.println("Yes");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc int count = 0; count 0 if(str.charAt(0) == str.charAt(1)){
        count++;
    }else{
    } str.charAt(0) == str.charAt(1) str.charAt(0) str.charAt str 0 str.charAt(1) str.charAt str 1 {
        count++;
    } count++ count {
    } if(str.charAt(0) == str.charAt(2)){
        count++;
    }else{
    } str.charAt(0) == str.charAt(2) str.charAt(0) str.charAt str 0 str.charAt(2) str.charAt str 2 {
        count++;
    } count++ count {
    } if(str.charAt(1) == str.charAt(2)){
        count++;
    }else{
    } str.charAt(1) == str.charAt(2) str.charAt(1) str.charAt str 1 str.charAt(2) str.charAt str 2 {
        count++;
    } count++ count {
    } if(count == 3){
        System.out.println("No");
    }else{
        System.out.println("Yes");
    } count == 3 count 3 {
        System.out.println("No");
    } System.out.println("No") System.out.println System.out System System.out "No" {
        System.out.println("Yes");
    } System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    //int N = sc.nextInt();
    int count = 0;
    
    if(str.charAt(0) == str.charAt(1)){
        count++;
    }else{
    }
    if(str.charAt(0) == str.charAt(2)){
        count++;
    }else{
    }
    if(str.charAt(1) == str.charAt(2)){
        count++;
    }else{
    }
    
    if(count == 3){
        System.out.println("No");
    }else{
        System.out.println("Yes");
    }
  }
} public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    //int N = sc.nextInt();
    int count = 0;
    
    if(str.charAt(0) == str.charAt(1)){
        count++;
    }else{
    }
    if(str.charAt(0) == str.charAt(2)){
        count++;
    }else{
    }
    if(str.charAt(1) == str.charAt(2)){
        count++;
    }else{
    }
    
    if(count == 3){
        System.out.println("No");
    }else{
        System.out.println("Yes");
    }
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    //int N = sc.nextInt();
    int count = 0;
    
    if(str.charAt(0) == str.charAt(1)){
        count++;
    }else{
    }
    if(str.charAt(0) == str.charAt(2)){
        count++;
    }else{
    }
    if(str.charAt(1) == str.charAt(2)){
        count++;
    }else{
    }
    
    if(count == 3){
        System.out.println("No");
    }else{
        System.out.println("Yes");
    }
  }
}