import java.util.*;
 
public class Main {
    public static void main(String[] args){
        Scanner scn = new Scanner(System.in);
        String S = scn.next();
        char [] A = new char[S.length()];
        
        for(int i=0;i<S.length();i++){
        A[i] = S.charAt(i);
        }
        
        if(A[0] == A[1] && A[1] == A[2]){
            System.out.println("No");
        }
        
        else{
            System.out.println("Yes");
        }
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner scn = new Scanner(System.in);
        String S = scn.next();
        char [] A = new char[S.length()];
        
        for(int i=0;i<S.length();i++){
        A[i] = S.charAt(i);
        }
        
        if(A[0] == A[1] && A[1] == A[2]){
            System.out.println("No");
        }
        
        else{
            System.out.println("Yes");
        }
        
    }
} Main public static void main(String[] args){
        Scanner scn = new Scanner(System.in);
        String S = scn.next();
        char [] A = new char[S.length()];
        
        for(int i=0;i<S.length();i++){
        A[i] = S.charAt(i);
        }
        
        if(A[0] == A[1] && A[1] == A[2]){
            System.out.println("No");
        }
        
        else{
            System.out.println("Yes");
        }
        
    } main {
        Scanner scn = new Scanner(System.in);
        String S = scn.next();
        char [] A = new char[S.length()];
        
        for(int i=0;i<S.length();i++){
        A[i] = S.charAt(i);
        }
        
        if(A[0] == A[1] && A[1] == A[2]){
            System.out.println("No");
        }
        
        else{
            System.out.println("Yes");
        }
        
    } Scanner scn = new Scanner(System.in); scn new Scanner(System.in) String S = scn.next(); S scn.next() scn.next scn char [] A = new char[S.length()]; A new char[S.length()] S.length() S.length S for(int i=0;i<S.length();i++){
        A[i] = S.charAt(i);
        } int i=0; int i=0; i 0 i<S.length() i S.length() S.length S i++ i++ i {
        A[i] = S.charAt(i);
        } {
        A[i] = S.charAt(i);
        } A[i] = S.charAt(i) A[i] A i S.charAt(i) S.charAt S i if(A[0] == A[1] && A[1] == A[2]){
            System.out.println("No");
        }
        
        else{
            System.out.println("Yes");
        } A[0] == A[1] && A[1] == A[2] A[0] == A[1] A[0] A 0 A[1] A 1 A[1] == A[2] A[1] A 1 A[2] A 2 {
            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 scn = new Scanner(System.in);
        String S = scn.next();
        char [] A = new char[S.length()];
        
        for(int i=0;i<S.length();i++){
        A[i] = S.charAt(i);
        }
        
        if(A[0] == A[1] && A[1] == A[2]){
            System.out.println("No");
        }
        
        else{
            System.out.println("Yes");
        }
        
    }
} public class Main {
    public static void main(String[] args){
        Scanner scn = new Scanner(System.in);
        String S = scn.next();
        char [] A = new char[S.length()];
        
        for(int i=0;i<S.length();i++){
        A[i] = S.charAt(i);
        }
        
        if(A[0] == A[1] && A[1] == A[2]){
            System.out.println("No");
        }
        
        else{
            System.out.println("Yes");
        }
        
    }
} Main
import java.util.*;
 
public class Main {
    public static void main(String[] args){
        Scanner scn = new Scanner(System.in);
        String S = scn.next();
        char [] A = new char[S.length()];
        
        for(int i=0;i<S.length();i++){
        A[i] = S.charAt(i);
        }
        
        if(A[0] == A[1] && A[1] == A[2]){
            System.out.println("No");
        }
        
        else{
            System.out.println("Yes");
        }
        
    }
}