    import java.util.*;
     
    public class Main {
      public static void main(String[] args) {
        Scanner sc = new Scanner(System.in); 
        String S = sc.next();
        boolean key = false;
        if (S.equals("AAA") || S.equals("BBB")) key = true;
        else ;
        System.out.println(key ? "No" : "Yes");
      }
    } import java.util.*; util.* java public class Main {
      public static void main(String[] args) {
        Scanner sc = new Scanner(System.in); 
        String S = sc.next();
        boolean key = false;
        if (S.equals("AAA") || S.equals("BBB")) key = true;
        else ;
        System.out.println(key ? "No" : "Yes");
      }
    } Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in); 
        String S = sc.next();
        boolean key = false;
        if (S.equals("AAA") || S.equals("BBB")) key = true;
        else ;
        System.out.println(key ? "No" : "Yes");
      } main {
        Scanner sc = new Scanner(System.in); 
        String S = sc.next();
        boolean key = false;
        if (S.equals("AAA") || S.equals("BBB")) key = true;
        else ;
        System.out.println(key ? "No" : "Yes");
      } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc boolean key = false; key false if (S.equals("AAA") || S.equals("BBB")) key = true;
        else ; S.equals("AAA") || S.equals("BBB") S.equals("AAA") S.equals S "AAA" S.equals("BBB") S.equals S "BBB" key = true key true System.out.println(key ? "No" : "Yes") System.out.println System.out System System.out key ? "No" : "Yes" key "No" "Yes" String[] args args public class Main {
      public static void main(String[] args) {
        Scanner sc = new Scanner(System.in); 
        String S = sc.next();
        boolean key = false;
        if (S.equals("AAA") || S.equals("BBB")) key = true;
        else ;
        System.out.println(key ? "No" : "Yes");
      }
    } public class Main {
      public static void main(String[] args) {
        Scanner sc = new Scanner(System.in); 
        String S = sc.next();
        boolean key = false;
        if (S.equals("AAA") || S.equals("BBB")) key = true;
        else ;
        System.out.println(key ? "No" : "Yes");
      }
    } Main
    import java.util.*;
     
    public class Main {
      public static void main(String[] args) {
        Scanner sc = new Scanner(System.in); 
        String S = sc.next();
        boolean key = false;
        if (S.equals("AAA") || S.equals("BBB")) key = true;
        else ;
        System.out.println(key ? "No" : "Yes");
      }
    }