
import java.util.*;
import java.io.*;

import static java.lang.Character.isUpperCase;

public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        String str = in.next();

           if(str.equals("AAA")|| str.equals("BBB"))
           {
               System.out.println("No");
           }

            else
                {
                    System.out.println("Yes");
                }
    }


 }









 import java.util.*; util.* java import java.io.*; io.* java import static java.lang.Character.isUpperCase; import static java.lang.Character.isUpperCase; import static java.lang.Character.isUpperCase; public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        String str = in.next();

           if(str.equals("AAA")|| str.equals("BBB"))
           {
               System.out.println("No");
           }

            else
                {
                    System.out.println("Yes");
                }
    }


 } Main public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        String str = in.next();

           if(str.equals("AAA")|| str.equals("BBB"))
           {
               System.out.println("No");
           }

            else
                {
                    System.out.println("Yes");
                }
    } main {

        Scanner in = new Scanner(System.in);
        String str = in.next();

           if(str.equals("AAA")|| str.equals("BBB"))
           {
               System.out.println("No");
           }

            else
                {
                    System.out.println("Yes");
                }
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) String str = in.next(); str in.next() in.next in if(str.equals("AAA")|| str.equals("BBB"))
           {
               System.out.println("No");
           }

            else
                {
                    System.out.println("Yes");
                } str.equals("AAA")|| str.equals("BBB") str.equals("AAA") str.equals str "AAA" str.equals("BBB") str.equals str "BBB" {
               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 in = new Scanner(System.in);
        String str = in.next();

           if(str.equals("AAA")|| str.equals("BBB"))
           {
               System.out.println("No");
           }

            else
                {
                    System.out.println("Yes");
                }
    }


 } public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        String str = in.next();

           if(str.equals("AAA")|| str.equals("BBB"))
           {
               System.out.println("No");
           }

            else
                {
                    System.out.println("Yes");
                }
    }


 } Main

import java.util.*;
import java.io.*;

import static java.lang.Character.isUpperCase;

public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        String str = in.next();

           if(str.equals("AAA")|| str.equals("BBB"))
           {
               System.out.println("No");
           }

            else
                {
                    System.out.println("Yes");
                }
    }


 }










