import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String res = "";
    String S = sc.next();

      if(S.charAt(0)==S.charAt(1) && S.charAt(1)==S.charAt(2)){
        res = "No";
      }else{
        res ="Yes";
    }
    System.out.println(res);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String res = "";
    String S = sc.next();

      if(S.charAt(0)==S.charAt(1) && S.charAt(1)==S.charAt(2)){
        res = "No";
      }else{
        res ="Yes";
    }
    System.out.println(res);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String res = "";
    String S = sc.next();

      if(S.charAt(0)==S.charAt(1) && S.charAt(1)==S.charAt(2)){
        res = "No";
      }else{
        res ="Yes";
    }
    System.out.println(res);
  } main {
    Scanner sc = new Scanner(System.in);
    String res = "";
    String S = sc.next();

      if(S.charAt(0)==S.charAt(1) && S.charAt(1)==S.charAt(2)){
        res = "No";
      }else{
        res ="Yes";
    }
    System.out.println(res);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String res = ""; res "" String S = sc.next(); S sc.next() sc.next sc if(S.charAt(0)==S.charAt(1) && S.charAt(1)==S.charAt(2)){
        res = "No";
      }else{
        res ="Yes";
    } S.charAt(0)==S.charAt(1) && S.charAt(1)==S.charAt(2) S.charAt(0)==S.charAt(1) S.charAt(0) S.charAt S 0 S.charAt(1) S.charAt S 1 S.charAt(1)==S.charAt(2) S.charAt(1) S.charAt S 1 S.charAt(2) S.charAt S 2 {
        res = "No";
      } res = "No" res "No" {
        res ="Yes";
    } res ="Yes" res "Yes" System.out.println(res) System.out.println System.out System System.out res String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String res = "";
    String S = sc.next();

      if(S.charAt(0)==S.charAt(1) && S.charAt(1)==S.charAt(2)){
        res = "No";
      }else{
        res ="Yes";
    }
    System.out.println(res);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String res = "";
    String S = sc.next();

      if(S.charAt(0)==S.charAt(1) && S.charAt(1)==S.charAt(2)){
        res = "No";
      }else{
        res ="Yes";
    }
    System.out.println(res);
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String res = "";
    String S = sc.next();

      if(S.charAt(0)==S.charAt(1) && S.charAt(1)==S.charAt(2)){
        res = "No";
      }else{
        res ="Yes";
    }
    System.out.println(res);
  }
}