import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        char keep = line.charAt(0);
        int cnt = 0;


        for(int i = 1; i<line.length();i++){
            if(keep != line.charAt(i)){
                cnt++;
            }
            keep = line.charAt(i);
        }
        if(cnt!=0){
        System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        char keep = line.charAt(0);
        int cnt = 0;


        for(int i = 1; i<line.length();i++){
            if(keep != line.charAt(i)){
                cnt++;
            }
            keep = line.charAt(i);
        }
        if(cnt!=0){
        System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        char keep = line.charAt(0);
        int cnt = 0;


        for(int i = 1; i<line.length();i++){
            if(keep != line.charAt(i)){
                cnt++;
            }
            keep = line.charAt(i);
        }
        if(cnt!=0){
        System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        char keep = line.charAt(0);
        int cnt = 0;


        for(int i = 1; i<line.length();i++){
            if(keep != line.charAt(i)){
                cnt++;
            }
            keep = line.charAt(i);
        }
        if(cnt!=0){
        System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc char keep = line.charAt(0); keep line.charAt(0) line.charAt line 0 int cnt = 0; cnt 0 for(int i = 1; i<line.length();i++){
            if(keep != line.charAt(i)){
                cnt++;
            }
            keep = line.charAt(i);
        } int i = 1; int i = 1; i 1 i<line.length() i line.length() line.length line i++ i++ i {
            if(keep != line.charAt(i)){
                cnt++;
            }
            keep = line.charAt(i);
        } {
            if(keep != line.charAt(i)){
                cnt++;
            }
            keep = line.charAt(i);
        } if(keep != line.charAt(i)){
                cnt++;
            } keep != line.charAt(i) keep line.charAt(i) line.charAt line i {
                cnt++;
            } cnt++ cnt keep = line.charAt(i) keep line.charAt(i) line.charAt line i if(cnt!=0){
        System.out.println("Yes");
        }else{
            System.out.println("No");
        } cnt!=0 cnt 0 {
        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 public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        char keep = line.charAt(0);
        int cnt = 0;


        for(int i = 1; i<line.length();i++){
            if(keep != line.charAt(i)){
                cnt++;
            }
            keep = line.charAt(i);
        }
        if(cnt!=0){
        System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        char keep = line.charAt(0);
        int cnt = 0;


        for(int i = 1; i<line.length();i++){
            if(keep != line.charAt(i)){
                cnt++;
            }
            keep = line.charAt(i);
        }
        if(cnt!=0){
        System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} Main
import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        char keep = line.charAt(0);
        int cnt = 0;


        for(int i = 1; i<line.length();i++){
            if(keep != line.charAt(i)){
                cnt++;
            }
            keep = line.charAt(i);
        }
        if(cnt!=0){
        System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}