import java.util.Arrays;
import java.util.Scanner;
import java.util.stream.Stream;

public class Main {
    Scanner sc = new Scanner(System.in);

    public static void main(String[] arg){
        Main m = new Main();
        m.run();
    }

    void run(){
        String s = sc.next();
        if("AAA".equals(s) || "BBB".equals(s)){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util import java.util.stream.Stream; Stream java.util.stream public class Main {
    Scanner sc = new Scanner(System.in);

    public static void main(String[] arg){
        Main m = new Main();
        m.run();
    }

    void run(){
        String s = sc.next();
        if("AAA".equals(s) || "BBB".equals(s)){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
} Main Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] arg){
        Main m = new Main();
        m.run();
    } main {
        Main m = new Main();
        m.run();
    } Main m = new Main(); m new Main() m.run() m.run m String[] arg arg void run(){
        String s = sc.next();
        if("AAA".equals(s) || "BBB".equals(s)){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    } run {
        String s = sc.next();
        if("AAA".equals(s) || "BBB".equals(s)){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    } String s = sc.next(); s sc.next() sc.next sc if("AAA".equals(s) || "BBB".equals(s)){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        } "AAA".equals(s) || "BBB".equals(s) "AAA".equals(s) "AAA".equals "AAA" s "BBB".equals(s) "BBB".equals "BBB" s {
            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" public class Main {
    Scanner sc = new Scanner(System.in);

    public static void main(String[] arg){
        Main m = new Main();
        m.run();
    }

    void run(){
        String s = sc.next();
        if("AAA".equals(s) || "BBB".equals(s)){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
} public class Main {
    Scanner sc = new Scanner(System.in);

    public static void main(String[] arg){
        Main m = new Main();
        m.run();
    }

    void run(){
        String s = sc.next();
        if("AAA".equals(s) || "BBB".equals(s)){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
} Main
import java.util.Arrays;
import java.util.Scanner;
import java.util.stream.Stream;

public class Main {
    Scanner sc = new Scanner(System.in);

    public static void main(String[] arg){
        Main m = new Main();
        m.run();
    }

    void run(){
        String s = sc.next();
        if("AAA".equals(s) || "BBB".equals(s)){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
}