import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner inp = new Scanner(System.in);
    String s = inp.next();
    char c = s.charAt(0);
    int f=0;
    for(int i=1;i<s.length();i++){
      if(c!=s.charAt(i)){
        f = 1;
      }
    }

    if(f==1){
      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){
    Scanner inp = new Scanner(System.in);
    String s = inp.next();
    char c = s.charAt(0);
    int f=0;
    for(int i=1;i<s.length();i++){
      if(c!=s.charAt(i)){
        f = 1;
      }
    }

    if(f==1){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }
} Main public static void main(String[] args){
    Scanner inp = new Scanner(System.in);
    String s = inp.next();
    char c = s.charAt(0);
    int f=0;
    for(int i=1;i<s.length();i++){
      if(c!=s.charAt(i)){
        f = 1;
      }
    }

    if(f==1){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  } main {
    Scanner inp = new Scanner(System.in);
    String s = inp.next();
    char c = s.charAt(0);
    int f=0;
    for(int i=1;i<s.length();i++){
      if(c!=s.charAt(i)){
        f = 1;
      }
    }

    if(f==1){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

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

    if(f==1){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }
} public class Main{
  public static void main(String[] args){
    Scanner inp = new Scanner(System.in);
    String s = inp.next();
    char c = s.charAt(0);
    int f=0;
    for(int i=1;i<s.length();i++){
      if(c!=s.charAt(i)){
        f = 1;
      }
    }

    if(f==1){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }
} Main
import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner inp = new Scanner(System.in);
    String s = inp.next();
    char c = s.charAt(0);
    int f=0;
    for(int i=1;i<s.length();i++){
      if(c!=s.charAt(i)){
        f = 1;
      }
    }

    if(f==1){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }
}