import java.util.*;
import java.lang.*;
public class Main {
        public static void main (String[]args){
            Scanner scanner = new Scanner(System.in);
            String input = scanner.next();
            boolean path=false;
            for (int i=0;i<input.length()-1;i++){
                if(input.charAt(i)!=input.charAt(i+1)){
                    path=true;
                    break;
                }
            }
            System.out.println(path ? "Yes":"No");
    }
}


 import java.util.*; util.* java import java.lang.*; lang.* java public class Main {
        public static void main (String[]args){
            Scanner scanner = new Scanner(System.in);
            String input = scanner.next();
            boolean path=false;
            for (int i=0;i<input.length()-1;i++){
                if(input.charAt(i)!=input.charAt(i+1)){
                    path=true;
                    break;
                }
            }
            System.out.println(path ? "Yes":"No");
    }
} Main public static void main (String[]args){
            Scanner scanner = new Scanner(System.in);
            String input = scanner.next();
            boolean path=false;
            for (int i=0;i<input.length()-1;i++){
                if(input.charAt(i)!=input.charAt(i+1)){
                    path=true;
                    break;
                }
            }
            System.out.println(path ? "Yes":"No");
    } main {
            Scanner scanner = new Scanner(System.in);
            String input = scanner.next();
            boolean path=false;
            for (int i=0;i<input.length()-1;i++){
                if(input.charAt(i)!=input.charAt(i+1)){
                    path=true;
                    break;
                }
            }
            System.out.println(path ? "Yes":"No");
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String input = scanner.next(); input scanner.next() scanner.next scanner boolean path=false; path false for (int i=0;i<input.length()-1;i++){
                if(input.charAt(i)!=input.charAt(i+1)){
                    path=true;
                    break;
                }
            } int i=0; int i=0; i 0 i<input.length()-1 i input.length()-1 input.length() input.length input 1 i++ i++ i {
                if(input.charAt(i)!=input.charAt(i+1)){
                    path=true;
                    break;
                }
            } {
                if(input.charAt(i)!=input.charAt(i+1)){
                    path=true;
                    break;
                }
            } if(input.charAt(i)!=input.charAt(i+1)){
                    path=true;
                    break;
                } input.charAt(i)!=input.charAt(i+1) input.charAt(i) input.charAt input i input.charAt(i+1) input.charAt input i+1 i 1 {
                    path=true;
                    break;
                } path=true path true break; System.out.println(path ? "Yes":"No") System.out.println System.out System System.out path ? "Yes":"No" path "Yes" "No" String[]args args public class Main {
        public static void main (String[]args){
            Scanner scanner = new Scanner(System.in);
            String input = scanner.next();
            boolean path=false;
            for (int i=0;i<input.length()-1;i++){
                if(input.charAt(i)!=input.charAt(i+1)){
                    path=true;
                    break;
                }
            }
            System.out.println(path ? "Yes":"No");
    }
} public class Main {
        public static void main (String[]args){
            Scanner scanner = new Scanner(System.in);
            String input = scanner.next();
            boolean path=false;
            for (int i=0;i<input.length()-1;i++){
                if(input.charAt(i)!=input.charAt(i+1)){
                    path=true;
                    break;
                }
            }
            System.out.println(path ? "Yes":"No");
    }
} Main
import java.util.*;
import java.lang.*;
public class Main {
        public static void main (String[]args){
            Scanner scanner = new Scanner(System.in);
            String input = scanner.next();
            boolean path=false;
            for (int i=0;i<input.length()-1;i++){
                if(input.charAt(i)!=input.charAt(i+1)){
                    path=true;
                    break;
                }
            }
            System.out.println(path ? "Yes":"No");
    }
}



