import java.util.Scanner;

public class Main{

    public static void main(String[] args) {

        new Main().solve();
    }

    void solve(){

        String stations;
        Scanner sc = new Scanner(System.in);
        stations = sc.next();
        sc.close();

        char[] arr = new char[stations.length()];
        boolean exist = false;

        for(int i=0; i < stations.length(); i++){
            arr[i] = stations.charAt(i);
            if(arr[i] != arr[0]){
                exist = true;
                break;
            }
        }
        
        if(exist){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
        
    }
} import java.util.Scanner; Scanner java.util public class Main{

    public static void main(String[] args) {

        new Main().solve();
    }

    void solve(){

        String stations;
        Scanner sc = new Scanner(System.in);
        stations = sc.next();
        sc.close();

        char[] arr = new char[stations.length()];
        boolean exist = false;

        for(int i=0; i < stations.length(); i++){
            arr[i] = stations.charAt(i);
            if(arr[i] != arr[0]){
                exist = true;
                break;
            }
        }
        
        if(exist){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
        
    }
} Main public static void main(String[] args) {

        new Main().solve();
    } main {

        new Main().solve();
    } new Main().solve() new Main().solve new Main() String[] args args void solve(){

        String stations;
        Scanner sc = new Scanner(System.in);
        stations = sc.next();
        sc.close();

        char[] arr = new char[stations.length()];
        boolean exist = false;

        for(int i=0; i < stations.length(); i++){
            arr[i] = stations.charAt(i);
            if(arr[i] != arr[0]){
                exist = true;
                break;
            }
        }
        
        if(exist){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
        
    } solve {

        String stations;
        Scanner sc = new Scanner(System.in);
        stations = sc.next();
        sc.close();

        char[] arr = new char[stations.length()];
        boolean exist = false;

        for(int i=0; i < stations.length(); i++){
            arr[i] = stations.charAt(i);
            if(arr[i] != arr[0]){
                exist = true;
                break;
            }
        }
        
        if(exist){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
        
    } String stations; stations Scanner sc = new Scanner(System.in); sc new Scanner(System.in) stations = sc.next() stations sc.next() sc.next sc sc.close() sc.close sc char[] arr = new char[stations.length()]; arr new char[stations.length()] stations.length() stations.length stations boolean exist = false; exist false for(int i=0; i < stations.length(); i++){
            arr[i] = stations.charAt(i);
            if(arr[i] != arr[0]){
                exist = true;
                break;
            }
        } int i=0; int i=0; i 0 i < stations.length() i stations.length() stations.length stations i++ i++ i {
            arr[i] = stations.charAt(i);
            if(arr[i] != arr[0]){
                exist = true;
                break;
            }
        } {
            arr[i] = stations.charAt(i);
            if(arr[i] != arr[0]){
                exist = true;
                break;
            }
        } arr[i] = stations.charAt(i) arr[i] arr i stations.charAt(i) stations.charAt stations i if(arr[i] != arr[0]){
                exist = true;
                break;
            } arr[i] != arr[0] arr[i] arr i arr[0] arr 0 {
                exist = true;
                break;
            } exist = true exist true break; if(exist){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        } exist {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" public class Main{

    public static void main(String[] args) {

        new Main().solve();
    }

    void solve(){

        String stations;
        Scanner sc = new Scanner(System.in);
        stations = sc.next();
        sc.close();

        char[] arr = new char[stations.length()];
        boolean exist = false;

        for(int i=0; i < stations.length(); i++){
            arr[i] = stations.charAt(i);
            if(arr[i] != arr[0]){
                exist = true;
                break;
            }
        }
        
        if(exist){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
        
    }
} public class Main{

    public static void main(String[] args) {

        new Main().solve();
    }

    void solve(){

        String stations;
        Scanner sc = new Scanner(System.in);
        stations = sc.next();
        sc.close();

        char[] arr = new char[stations.length()];
        boolean exist = false;

        for(int i=0; i < stations.length(); i++){
            arr[i] = stations.charAt(i);
            if(arr[i] != arr[0]){
                exist = true;
                break;
            }
        }
        
        if(exist){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
        
    }
} Main
import java.util.Scanner;

public class Main{

    public static void main(String[] args) {

        new Main().solve();
    }

    void solve(){

        String stations;
        Scanner sc = new Scanner(System.in);
        stations = sc.next();
        sc.close();

        char[] arr = new char[stations.length()];
        boolean exist = false;

        for(int i=0; i < stations.length(); i++){
            arr[i] = stations.charAt(i);
            if(arr[i] != arr[0]){
                exist = true;
                break;
            }
        }
        
        if(exist){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
        
    }
}