import java.util.*;

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

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