import java.util.*;

public class Main{
  public static void main(String[] args){
    
    Scanner scanner = new Scanner(System.in);
    String S = scanner.nextLine();
    
    if(S.charAt(0)==S.charAt(1) && S.charAt(0)==S.charAt(2)){
      System.out.println("No");
    }else{
      System.out.println("Yes");
    }
    
  }
}

     import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    
    Scanner scanner = new Scanner(System.in);
    String S = scanner.nextLine();
    
    if(S.charAt(0)==S.charAt(1) && S.charAt(0)==S.charAt(2)){
      System.out.println("No");
    }else{
      System.out.println("Yes");
    }
    
  }
} Main public static void main(String[] args){
    
    Scanner scanner = new Scanner(System.in);
    String S = scanner.nextLine();
    
    if(S.charAt(0)==S.charAt(1) && S.charAt(0)==S.charAt(2)){
      System.out.println("No");
    }else{
      System.out.println("Yes");
    }
    
  } main {
    
    Scanner scanner = new Scanner(System.in);
    String S = scanner.nextLine();
    
    if(S.charAt(0)==S.charAt(1) && S.charAt(0)==S.charAt(2)){
      System.out.println("No");
    }else{
      System.out.println("Yes");
    }
    
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String S = scanner.nextLine(); S scanner.nextLine() scanner.nextLine scanner if(S.charAt(0)==S.charAt(1) && S.charAt(0)==S.charAt(2)){
      System.out.println("No");
    }else{
      System.out.println("Yes");
    } S.charAt(0)==S.charAt(1) && S.charAt(0)==S.charAt(2) S.charAt(0)==S.charAt(1) S.charAt(0) S.charAt S 0 S.charAt(1) S.charAt S 1 S.charAt(0)==S.charAt(2) S.charAt(0) S.charAt S 0 S.charAt(2) S.charAt S 2 {
      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 scanner = new Scanner(System.in);
    String S = scanner.nextLine();
    
    if(S.charAt(0)==S.charAt(1) && S.charAt(0)==S.charAt(2)){
      System.out.println("No");
    }else{
      System.out.println("Yes");
    }
    
  }
} public class Main{
  public static void main(String[] args){
    
    Scanner scanner = new Scanner(System.in);
    String S = scanner.nextLine();
    
    if(S.charAt(0)==S.charAt(1) && S.charAt(0)==S.charAt(2)){
      System.out.println("No");
    }else{
      System.out.println("Yes");
    }
    
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    
    Scanner scanner = new Scanner(System.in);
    String S = scanner.nextLine();
    
    if(S.charAt(0)==S.charAt(1) && S.charAt(0)==S.charAt(2)){
      System.out.println("No");
    }else{
      System.out.println("Yes");
    }
    
  }
}

    