import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    
    int a = 0;
    for(int i=0;i<3;i++){
      if(s.charAt(i) =='A')
        a += 1;
    }
    if(a == 0|| a==3)
      System.out.println("No");
    else
      System.out.println("Yes");
  }
} import java.util.*; util.* java class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    
    int a = 0;
    for(int i=0;i<3;i++){
      if(s.charAt(i) =='A')
        a += 1;
    }
    if(a == 0|| a==3)
      System.out.println("No");
    else
      System.out.println("Yes");
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    
    int a = 0;
    for(int i=0;i<3;i++){
      if(s.charAt(i) =='A')
        a += 1;
    }
    if(a == 0|| a==3)
      System.out.println("No");
    else
      System.out.println("Yes");
  } main {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    
    int a = 0;
    for(int i=0;i<3;i++){
      if(s.charAt(i) =='A')
        a += 1;
    }
    if(a == 0|| a==3)
      System.out.println("No");
    else
      System.out.println("Yes");
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int a = 0; a 0 for(int i=0;i<3;i++){
      if(s.charAt(i) =='A')
        a += 1;
    } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
      if(s.charAt(i) =='A')
        a += 1;
    } {
      if(s.charAt(i) =='A')
        a += 1;
    } if(s.charAt(i) =='A')
        a += 1; s.charAt(i) =='A' s.charAt(i) s.charAt s i 'A' a += 1 a 1 if(a == 0|| a==3)
      System.out.println("No");
    else
      System.out.println("Yes"); a == 0|| a==3 a == 0 a 0 a==3 a 3 System.out.println("No") System.out.println System.out System System.out "No" System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args
import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    
    int a = 0;
    for(int i=0;i<3;i++){
      if(s.charAt(i) =='A')
        a += 1;
    }
    if(a == 0|| a==3)
      System.out.println("No");
    else
      System.out.println("Yes");
  }
}