import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        String S =sc.next();
        String word[] =S.split("");
        
        String result ="";
        
        
            if(word[0].equals("A") &&word[1].equals("A")&&word[2].equals("A")){
                result ="No";
            }else if(word[0].equals("B") &&word[1].equals("B")&&word[2].equals("B")){
                result ="No";
            }else{
                result ="Yes";
            }
            
        
        System.out.println(result);
        
    }
    
    
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        String S =sc.next();
        String word[] =S.split("");
        
        String result ="";
        
        
            if(word[0].equals("A") &&word[1].equals("A")&&word[2].equals("A")){
                result ="No";
            }else if(word[0].equals("B") &&word[1].equals("B")&&word[2].equals("B")){
                result ="No";
            }else{
                result ="Yes";
            }
            
        
        System.out.println(result);
        
    }
    
    
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        String S =sc.next();
        String word[] =S.split("");
        
        String result ="";
        
        
            if(word[0].equals("A") &&word[1].equals("A")&&word[2].equals("A")){
                result ="No";
            }else if(word[0].equals("B") &&word[1].equals("B")&&word[2].equals("B")){
                result ="No";
            }else{
                result ="Yes";
            }
            
        
        System.out.println(result);
        
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        String S =sc.next();
        String word[] =S.split("");
        
        String result ="";
        
        
            if(word[0].equals("A") &&word[1].equals("A")&&word[2].equals("A")){
                result ="No";
            }else if(word[0].equals("B") &&word[1].equals("B")&&word[2].equals("B")){
                result ="No";
            }else{
                result ="Yes";
            }
            
        
        System.out.println(result);
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S =sc.next(); S sc.next() sc.next sc String word[] =S.split(""); word S.split("") S.split S "" String result =""; result "" if(word[0].equals("A") &&word[1].equals("A")&&word[2].equals("A")){
                result ="No";
            }else if(word[0].equals("B") &&word[1].equals("B")&&word[2].equals("B")){
                result ="No";
            }else{
                result ="Yes";
            } word[0].equals("A") &&word[1].equals("A")&&word[2].equals("A") word[0].equals("A") &&word[1].equals("A")&&word[2].equals("A") word[0].equals("A") word[0].equals word[0] word 0 "A" word[1].equals("A") word[1].equals word[1] word 1 "A" word[2].equals("A") word[2].equals word[2] word 2 "A" {
                result ="No";
            } result ="No" result "No" if(word[0].equals("B") &&word[1].equals("B")&&word[2].equals("B")){
                result ="No";
            }else{
                result ="Yes";
            } word[0].equals("B") &&word[1].equals("B")&&word[2].equals("B") word[0].equals("B") &&word[1].equals("B")&&word[2].equals("B") word[0].equals("B") word[0].equals word[0] word 0 "B" word[1].equals("B") word[1].equals word[1] word 1 "B" word[2].equals("B") word[2].equals word[2] word 2 "B" {
                result ="No";
            } result ="No" result "No" {
                result ="Yes";
            } result ="Yes" result "Yes" System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        String S =sc.next();
        String word[] =S.split("");
        
        String result ="";
        
        
            if(word[0].equals("A") &&word[1].equals("A")&&word[2].equals("A")){
                result ="No";
            }else if(word[0].equals("B") &&word[1].equals("B")&&word[2].equals("B")){
                result ="No";
            }else{
                result ="Yes";
            }
            
        
        System.out.println(result);
        
    }
    
    
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        String S =sc.next();
        String word[] =S.split("");
        
        String result ="";
        
        
            if(word[0].equals("A") &&word[1].equals("A")&&word[2].equals("A")){
                result ="No";
            }else if(word[0].equals("B") &&word[1].equals("B")&&word[2].equals("B")){
                result ="No";
            }else{
                result ="Yes";
            }
            
        
        System.out.println(result);
        
    }
    
    
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        String S =sc.next();
        String word[] =S.split("");
        
        String result ="";
        
        
            if(word[0].equals("A") &&word[1].equals("A")&&word[2].equals("A")){
                result ="No";
            }else if(word[0].equals("B") &&word[1].equals("B")&&word[2].equals("B")){
                result ="No";
            }else{
                result ="Yes";
            }
            
        
        System.out.println(result);
        
    }
    
    
}
