import java.util.*;
import java.util.Scanner;
class Main{
    public static void main(String[] args)
    {
        String n;
        char station = ' ';
        int result = 0;
        Scanner scanner = new Scanner(System.in);
        n = scanner.next();

        for(int i = 0; i < n.length(); i++){
            if(i == 0){
                station = n.charAt(i); 
            }else if(station != n.charAt(i)){
                result = 1;
                break;
            }
        }
        if(result == 1){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} import java.util.*; util.* java import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args)
    {
        String n;
        char station = ' ';
        int result = 0;
        Scanner scanner = new Scanner(System.in);
        n = scanner.next();

        for(int i = 0; i < n.length(); i++){
            if(i == 0){
                station = n.charAt(i); 
            }else if(station != n.charAt(i)){
                result = 1;
                break;
            }
        }
        if(result == 1){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} Main public static void main(String[] args)
    {
        String n;
        char station = ' ';
        int result = 0;
        Scanner scanner = new Scanner(System.in);
        n = scanner.next();

        for(int i = 0; i < n.length(); i++){
            if(i == 0){
                station = n.charAt(i); 
            }else if(station != n.charAt(i)){
                result = 1;
                break;
            }
        }
        if(result == 1){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } main {
        String n;
        char station = ' ';
        int result = 0;
        Scanner scanner = new Scanner(System.in);
        n = scanner.next();

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

        for(int i = 0; i < n.length(); i++){
            if(i == 0){
                station = n.charAt(i); 
            }else if(station != n.charAt(i)){
                result = 1;
                break;
            }
        }
        if(result == 1){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}