import java.util.*;

class Main{
    public static void main(String[] args) {
        
        try(Scanner sc = new Scanner(System.in);){

            //int ans = Integer.valueOf(sc.next());
            String input = sc.next();
            String input1 = input.substring(0, 1);
            String input2 = input.substring(1, 2);
            String input3 = input.substring(2, 3);

            if(input1.equals(input2) && input1.equals(input3)){
                System.out.println("No");
            }else{
                System.out.println("Yes");
            }


        }catch(Exception e){
            e.printStackTrace();
        }        
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args) {
        
        try(Scanner sc = new Scanner(System.in);){

            //int ans = Integer.valueOf(sc.next());
            String input = sc.next();
            String input1 = input.substring(0, 1);
            String input2 = input.substring(1, 2);
            String input3 = input.substring(2, 3);

            if(input1.equals(input2) && input1.equals(input3)){
                System.out.println("No");
            }else{
                System.out.println("Yes");
            }


        }catch(Exception e){
            e.printStackTrace();
        }        
    }
} Main public static void main(String[] args) {
        
        try(Scanner sc = new Scanner(System.in);){

            //int ans = Integer.valueOf(sc.next());
            String input = sc.next();
            String input1 = input.substring(0, 1);
            String input2 = input.substring(1, 2);
            String input3 = input.substring(2, 3);

            if(input1.equals(input2) && input1.equals(input3)){
                System.out.println("No");
            }else{
                System.out.println("Yes");
            }


        }catch(Exception e){
            e.printStackTrace();
        }        
    } main {
        
        try(Scanner sc = new Scanner(System.in);){

            //int ans = Integer.valueOf(sc.next());
            String input = sc.next();
            String input1 = input.substring(0, 1);
            String input2 = input.substring(1, 2);
            String input3 = input.substring(2, 3);

            if(input1.equals(input2) && input1.equals(input3)){
                System.out.println("No");
            }else{
                System.out.println("Yes");
            }


        }catch(Exception e){
            e.printStackTrace();
        }        
    } try(Scanner sc = new Scanner(System.in);){

            //int ans = Integer.valueOf(sc.next());
            String input = sc.next();
            String input1 = input.substring(0, 1);
            String input2 = input.substring(1, 2);
            String input3 = input.substring(2, 3);

            if(input1.equals(input2) && input1.equals(input3)){
                System.out.println("No");
            }else{
                System.out.println("Yes");
            }


        }catch(Exception e){
            e.printStackTrace();
        } catch(Exception e){
            e.printStackTrace();
        } Exception e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {

            //int ans = Integer.valueOf(sc.next());
            String input = sc.next();
            String input1 = input.substring(0, 1);
            String input2 = input.substring(1, 2);
            String input3 = input.substring(2, 3);

            if(input1.equals(input2) && input1.equals(input3)){
                System.out.println("No");
            }else{
                System.out.println("Yes");
            }


        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) String input = sc.next(); input sc.next() sc.next sc String input1 = input.substring(0, 1); input1 input.substring(0, 1) input.substring input 0 1 String input2 = input.substring(1, 2); input2 input.substring(1, 2) input.substring input 1 2 String input3 = input.substring(2, 3); input3 input.substring(2, 3) input.substring input 2 3 if(input1.equals(input2) && input1.equals(input3)){
                System.out.println("No");
            }else{
                System.out.println("Yes");
            } input1.equals(input2) && input1.equals(input3) input1.equals(input2) input1.equals input1 input2 input1.equals(input3) input1.equals input1 input3 {
                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
import java.util.*;

class Main{
    public static void main(String[] args) {
        
        try(Scanner sc = new Scanner(System.in);){

            //int ans = Integer.valueOf(sc.next());
            String input = sc.next();
            String input1 = input.substring(0, 1);
            String input2 = input.substring(1, 2);
            String input3 = input.substring(2, 3);

            if(input1.equals(input2) && input1.equals(input3)){
                System.out.println("No");
            }else{
                System.out.println("Yes");
            }


        }catch(Exception e){
            e.printStackTrace();
        }        
    }
}