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

public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
    
        String s = br.readLine();
        
        if(s.equals("AAA") || s.equals("BBB")){
            out.println("No");
        }else{
            out.println("Yes");
        }
        out.close();
        
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
    
        String s = br.readLine();
        
        if(s.equals("AAA") || s.equals("BBB")){
            out.println("No");
        }else{
            out.println("Yes");
        }
        out.close();
        
    }
} Main public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
    
        String s = br.readLine();
        
        if(s.equals("AAA") || s.equals("BBB")){
            out.println("No");
        }else{
            out.println("Yes");
        }
        out.close();
        
    } main {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
    
        String s = br.readLine();
        
        if(s.equals("AAA") || s.equals("BBB")){
            out.println("No");
        }else{
            out.println("Yes");
        }
        out.close();
        
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out)); out new PrintWriter(new OutputStreamWriter(System.out)) String s = br.readLine(); s br.readLine() br.readLine br if(s.equals("AAA") || s.equals("BBB")){
            out.println("No");
        }else{
            out.println("Yes");
        } s.equals("AAA") || s.equals("BBB") s.equals("AAA") s.equals s "AAA" s.equals("BBB") s.equals s "BBB" {
            out.println("No");
        } out.println("No") out.println out "No" {
            out.println("Yes");
        } out.println("Yes") out.println out "Yes" out.close() out.close out String[] args args public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
    
        String s = br.readLine();
        
        if(s.equals("AAA") || s.equals("BBB")){
            out.println("No");
        }else{
            out.println("Yes");
        }
        out.close();
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
    
        String s = br.readLine();
        
        if(s.equals("AAA") || s.equals("BBB")){
            out.println("No");
        }else{
            out.println("Yes");
        }
        out.close();
        
    }
} Main
import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
    
        String s = br.readLine();
        
        if(s.equals("AAA") || s.equals("BBB")){
            out.println("No");
        }else{
            out.println("Yes");
        }
        out.close();
        
    }
}