import java.io.*;
import java.util.*;
 
class Main
{
  public static void main (String[] arg)
  {
    Scanner scan = new Scanner(System.in);
    String mng = scan.next(); //整数
    
    String ans_A = "AAA";
    String ans_B = "BBB";
    
    if(mng.equals(ans_A)){
      System.out.println("No");
    }
    else if(mng.equals(ans_B)){
      System.out.println("No");
    }
    else{
      System.out.println("Yes");
    }
    
  }
} import java.io.*; io.* java import java.util.*; util.* java class Main
{
  public static void main (String[] arg)
  {
    Scanner scan = new Scanner(System.in);
    String mng = scan.next(); //整数
    
    String ans_A = "AAA";
    String ans_B = "BBB";
    
    if(mng.equals(ans_A)){
      System.out.println("No");
    }
    else if(mng.equals(ans_B)){
      System.out.println("No");
    }
    else{
      System.out.println("Yes");
    }
    
  }
} Main public static void main (String[] arg)
  {
    Scanner scan = new Scanner(System.in);
    String mng = scan.next(); //整数
    
    String ans_A = "AAA";
    String ans_B = "BBB";
    
    if(mng.equals(ans_A)){
      System.out.println("No");
    }
    else if(mng.equals(ans_B)){
      System.out.println("No");
    }
    else{
      System.out.println("Yes");
    }
    
  } main {
    Scanner scan = new Scanner(System.in);
    String mng = scan.next(); //整数
    
    String ans_A = "AAA";
    String ans_B = "BBB";
    
    if(mng.equals(ans_A)){
      System.out.println("No");
    }
    else if(mng.equals(ans_B)){
      System.out.println("No");
    }
    else{
      System.out.println("Yes");
    }
    
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String mng = scan.next(); mng scan.next() scan.next scan String ans_A = "AAA"; ans_A "AAA" String ans_B = "BBB"; ans_B "BBB" if(mng.equals(ans_A)){
      System.out.println("No");
    }
    else if(mng.equals(ans_B)){
      System.out.println("No");
    }
    else{
      System.out.println("Yes");
    } mng.equals(ans_A) mng.equals mng ans_A {
      System.out.println("No");
    } System.out.println("No") System.out.println System.out System System.out "No" if(mng.equals(ans_B)){
      System.out.println("No");
    }
    else{
      System.out.println("Yes");
    } mng.equals(ans_B) mng.equals mng ans_B {
      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[] arg arg
import java.io.*;
import java.util.*;
 
class Main
{
  public static void main (String[] arg)
  {
    Scanner scan = new Scanner(System.in);
    String mng = scan.next(); //整数
    
    String ans_A = "AAA";
    String ans_B = "BBB";
    
    if(mng.equals(ans_A)){
      System.out.println("No");
    }
    else if(mng.equals(ans_B)){
      System.out.println("No");
    }
    else{
      System.out.println("Yes");
    }
    
  }
}