import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String str = in.readLine();
    System.out.println(str.equals("AAA") || str.equals("BBB")?"No":"Yes");
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String str = in.readLine();
    System.out.println(str.equals("AAA") || str.equals("BBB")?"No":"Yes");
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String str = in.readLine();
    System.out.println(str.equals("AAA") || str.equals("BBB")?"No":"Yes");
  } main {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String str = in.readLine();
    System.out.println(str.equals("AAA") || str.equals("BBB")?"No":"Yes");
  } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String str = in.readLine(); str in.readLine() in.readLine in System.out.println(str.equals("AAA") || str.equals("BBB")?"No":"Yes") System.out.println System.out System System.out str.equals("AAA") || str.equals("BBB")?"No":"Yes" str.equals("AAA") || str.equals("BBB") str.equals("AAA") str.equals str "AAA" str.equals("BBB") str.equals str "BBB" "No" "Yes" String[] args args public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String str = in.readLine();
    System.out.println(str.equals("AAA") || str.equals("BBB")?"No":"Yes");
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String str = in.readLine();
    System.out.println(str.equals("AAA") || str.equals("BBB")?"No":"Yes");
  }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String str = in.readLine();
    System.out.println(str.equals("AAA") || str.equals("BBB")?"No":"Yes");
  }
}