import java.util.Scanner;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String a = "AAA" , b = "BBB";
    if( s.equals(a) || s.equals(b) ){
        System.out.println("No");
    }else{
        System.out.println("Yes");
    }
    sc.close();
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String a = "AAA" , b = "BBB";
    if( s.equals(a) || s.equals(b) ){
        System.out.println("No");
    }else{
        System.out.println("Yes");
    }
    sc.close();
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String a = "AAA" , b = "BBB";
    if( s.equals(a) || s.equals(b) ){
        System.out.println("No");
    }else{
        System.out.println("Yes");
    }
    sc.close();
  } main {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String a = "AAA" , b = "BBB";
    if( s.equals(a) || s.equals(b) ){
        System.out.println("No");
    }else{
        System.out.println("Yes");
    }
    sc.close();
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String a = "AAA" a "AAA" b = "BBB"; b "BBB" if( s.equals(a) || s.equals(b) ){
        System.out.println("No");
    }else{
        System.out.println("Yes");
    } s.equals(a) || s.equals(b) s.equals(a) s.equals s a s.equals(b) s.equals s 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" sc.close() sc.close sc String[] args args public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String a = "AAA" , b = "BBB";
    if( s.equals(a) || s.equals(b) ){
        System.out.println("No");
    }else{
        System.out.println("Yes");
    }
    sc.close();
  }
} public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String a = "AAA" , b = "BBB";
    if( s.equals(a) || s.equals(b) ){
        System.out.println("No");
    }else{
        System.out.println("Yes");
    }
    sc.close();
  }
} Main
import java.util.Scanner;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String a = "AAA" , b = "BBB";
    if( s.equals(a) || s.equals(b) ){
        System.out.println("No");
    }else{
        System.out.println("Yes");
    }
    sc.close();
  }
}