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

public class Main {
    static PrintWriter out = new PrintWriter(System.out);
    static Scanner sc = new Scanner(System.in);
    static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    int k;
    long[] d;
    public static void main(String[] args) throws IOException {
        Main main = new Main();
        main.solve();
//        System.out.println(main.solve());
    }
    void solve() throws IOException{
        String s1 = "AAA", s2 = "BBB";
        String s = sc.next();
        String ans = "Yes";
        if(s.equals(s1)||s.equals(s2)) ans= "No";
        System.out.println(ans);
    }
}
 import java.io.*; io.* java import java.util.*; util.* java public class Main {
    static PrintWriter out = new PrintWriter(System.out);
    static Scanner sc = new Scanner(System.in);
    static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    int k;
    long[] d;
    public static void main(String[] args) throws IOException {
        Main main = new Main();
        main.solve();
//        System.out.println(main.solve());
    }
    void solve() throws IOException{
        String s1 = "AAA", s2 = "BBB";
        String s = sc.next();
        String ans = "Yes";
        if(s.equals(s1)||s.equals(s2)) ans= "No";
        System.out.println(ans);
    }
} Main static PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) int k; k long[] d; d public static void main(String[] args) throws IOException {
        Main main = new Main();
        main.solve();
//        System.out.println(main.solve());
    } main {
        Main main = new Main();
        main.solve();
//        System.out.println(main.solve());
    } Main main = new Main(); main new Main() main.solve() main.solve main String[] args args void solve() throws IOException{
        String s1 = "AAA", s2 = "BBB";
        String s = sc.next();
        String ans = "Yes";
        if(s.equals(s1)||s.equals(s2)) ans= "No";
        System.out.println(ans);
    } solve {
        String s1 = "AAA", s2 = "BBB";
        String s = sc.next();
        String ans = "Yes";
        if(s.equals(s1)||s.equals(s2)) ans= "No";
        System.out.println(ans);
    } String s1 = "AAA" s1 "AAA" s2 = "BBB"; s2 "BBB" String s = sc.next(); s sc.next() sc.next sc String ans = "Yes"; ans "Yes" if(s.equals(s1)||s.equals(s2)) ans= "No"; s.equals(s1)||s.equals(s2) s.equals(s1) s.equals s s1 s.equals(s2) s.equals s s2 ans= "No" ans "No" System.out.println(ans) System.out.println System.out System System.out ans public class Main {
    static PrintWriter out = new PrintWriter(System.out);
    static Scanner sc = new Scanner(System.in);
    static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    int k;
    long[] d;
    public static void main(String[] args) throws IOException {
        Main main = new Main();
        main.solve();
//        System.out.println(main.solve());
    }
    void solve() throws IOException{
        String s1 = "AAA", s2 = "BBB";
        String s = sc.next();
        String ans = "Yes";
        if(s.equals(s1)||s.equals(s2)) ans= "No";
        System.out.println(ans);
    }
} public class Main {
    static PrintWriter out = new PrintWriter(System.out);
    static Scanner sc = new Scanner(System.in);
    static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    int k;
    long[] d;
    public static void main(String[] args) throws IOException {
        Main main = new Main();
        main.solve();
//        System.out.println(main.solve());
    }
    void solve() throws IOException{
        String s1 = "AAA", s2 = "BBB";
        String s = sc.next();
        String ans = "Yes";
        if(s.equals(s1)||s.equals(s2)) ans= "No";
        System.out.println(ans);
    }
} Main
import java.io.*;
import java.util.*;

public class Main {
    static PrintWriter out = new PrintWriter(System.out);
    static Scanner sc = new Scanner(System.in);
    static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    int k;
    long[] d;
    public static void main(String[] args) throws IOException {
        Main main = new Main();
        main.solve();
//        System.out.println(main.solve());
    }
    void solve() throws IOException{
        String s1 = "AAA", s2 = "BBB";
        String s = sc.next();
        String ans = "Yes";
        if(s.equals(s1)||s.equals(s2)) ans= "No";
        System.out.println(ans);
    }
}

