Language: C++

import java.io.*;
import java.math.*;
import java.util.*;
import java.util.regex.Pattern;

class Main {

    private static final PrintWriter out = new PrintWriter(System.out);
    private static final Scanner scanner = new Scanner(System.in);
    private static int[] dx = {1, 0, -1, 0, 1, 1, -1, -1};
    private static int[] dy = {0, 1, 0, -1, 1, -1, 1, -1};
    private static int INF = 0x3f3f3f3f;

    public static void main(String[] args) {
        // From IntelliJ IDEA

        String s = fgetStr();
        for ( char i = 'C'; i <= 'Z'; i++ ) {
            if ( i == 'K' || i == 'I' || i == 'H' || i =='R' ) {
                continue;
            }
            if ( s.contains(Character.toString(i)) ) {
                println("NO");
                break;
            }
        }
        if ( s.matches("A??KIHA??BA??RA??") ) {
            println("YES");
        }
        else {
            println("NO");
        }


        suomi();
    }

    private static boolean isMovable( int x, int y, int w, int h ) {
        return ( x >= 0 && y >= 0 && x < w && y < h );
    }
    private static String fgetStr(){
        return FastScanner.next();
    }
    private static String fgetLine(){
        return FastScanner.nextLine();
    }
    private static char fgetChar(){
        return fgetStr().charAt(0);
    }
    private static int fgetInt(){
        return FastScanner.nextInt();
    }
    private static long fgetLong(){
        return FastScanner.nextLong();
    }
    private static double fgetDouble(){
        return FastScanner.nextDouble();
    }
    private static BigInteger fgetBig(){
        return new BigInteger(fgetStr());
    }
    private static String reverseStr(String str){
        return new StringBuffer(str).reverse().toString();
    }
    private static void println(Object a){
        out.println(a);
    }
    private static void print(Object a){
        out.print(a);
    }
    private static void printf(String string, Object... args) {
        out.printf(string, args);
    }
    private static void suomi(){
        out.flush();
    }
    private static long pow ( long x, long n ) {
        final long MOD = 1000000007;
        long ans = 1;
        while ( n > 0 ) {
            if ( ( n & 1 ) == 1 ) {
                ans = (ans * x) % MOD;
            }
            x = ( x * x ) % MOD;
            n >>= 1;
        }
        return ans;
    }
    private static long gcd(long x, long y) {
        return x % y == 0 ? y : gcd(y, x % y);
    }
    private static long lcm(long x, long y) {
        return ( x / gcd(x, y) * y);
    }
}

class FastScanner {

    private static final InputStream in = System.in;
    private static final byte[] buffer = new byte[1024];
    private static int ptr = 0;
    private static int bufferLength = 0;
    private static boolean hasNextByte() {
        if (ptr < bufferLength) {
            return true;
        }else{
            ptr = 0;
            try {
                bufferLength = in.read(buffer);
            } catch ( IOException e) {
                e.printStackTrace();
            }
            if (bufferLength <= 0) {
                return false;
            }
        }
        return true;
    }
    private static int readByte() {
        if (hasNextByte()) return buffer[ptr++];
        else return -1;
    }
    private static boolean isPrintableChar(int c) {
        return 33 <= c && c <= 126;
    }
    private static boolean hasNext() {
        while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;
        return hasNextByte();
    }
    static String next() {
        if (!hasNext()) throw new NoSuchElementException();
        StringBuilder sb = new StringBuilder();
        int b = readByte();
        while(isPrintableChar(b)) {
            sb.appendCodePoint(b);
            b = readByte();
        }
        return sb.toString();
    }
    static String nextLine() {
        if (!hasNext()) throw new NoSuchElementException();
        StringBuilder sb = new StringBuilder();
        int b = readByte();
        while(isPrintableChar(b) || b == 32) {
            sb.appendCodePoint(b);
            b = readByte();
        }
        return sb.toString();
    }
    static long nextLong() {
        if (!hasNext()) throw new NoSuchElementException();
        long n = 0;
        boolean minus = false;
        int b = readByte();
        if (b == '-') {
            minus = true;
            b = readByte();
        }
        if (b < '0' || '9' < b) {
            throw new NumberFormatException();
        }
        while(true){
            if ('0' <= b && b <= '9') {
                n *= 10;
                n += b - '0';
            }else if(b == -1 || !isPrintableChar(b)){
                return minus ? -n : n;
            }else{
                throw new NumberFormatException();
            }
            b = readByte();
        }
    }
    static int nextInt() {
        long nl = nextLong();
        if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
        return (int) nl;
    }
    static double nextDouble() {
        return Double.parseDouble(next());
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.math.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.util.*;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.util.regex.Pattern;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:12: error: expected ':' before 'static'
    8 |     private static final PrintWriter out = new PrintWriter(System.out);
      |            ^~~~~~~
      |            :
a.cc:8:20: error: 'final' does not name a type
    8 |     private static final PrintWriter out = new PrintWriter(System.out);
      |                    ^~~~~
a.cc:9:12: error: expected ':' before 'static'
    9 |     private static final Scanner scanner = new Scanner(System.in);
      |            ^~~~~~~
      |            :
a.cc:9:20: error: 'final' does not name a type
    9 |     private static final Scanner scanner = new Scanner(System.in);
      |                    ^~~~~
a.cc:10:12: error: expected ':' before 'static'
   10 |     private static int[] dx = {1, 0, -1, 0, 1, 1, -1, -1};
      |            ^~~~~~~
      |            :
a.cc:10:23: error: expected unqualified-id before '[' token
   10 |     private static int[] dx = {1, 0, -1, 0, 1, 1, -1, -1};
      |                       ^
a.cc:11:12: error: expected ':' before 'static'
   11 |     private static int[] dy = {0, 1, 0, -1, 1, -1, 1, -1};
      |            ^~~~~~~
      |            :
a.cc:11:23: error: expected unqualified-id before '[' token
   11 |     private static int[] dy = {0, 1, 0, -1, 1, -1, 1, -1};
      |                       ^
a.cc:12:12: error: expected ':' before 'static'
   12 |     private static int INF = 0x3f3f3f3f;
      |            ^~~~~~~
      |            :
a.cc:12:24: error: ISO C++ forbids in-class initialization of non-const static member 'Main::INF'
   12 |     private static int INF = 0x3f3f3f3f;
      |                        ^~~
a.cc:14:11: error: expected ':' before 'static'
   14 |     public static void main(String[] args) {
      |           ^~~~~~~
      |           :
a.cc:14:29: error: 'String' has not been declared
   14 |     public static void main(String[] args) {
      |                             ^~~~~~
a.cc:14:38: error: expected ',' or '...' before 'args'
   14 |     public static void main(String[] args) {
      |                                      ^~~~
a.cc:38:12: error: expected ':' before 'static'
   38 |     private static boolean isMovable( int x, int y, int w, int h ) {
      |            ^~~~~~~
      |            :
a.cc:38:20: error: 'boolean' does not name a type; did you mean 'bool'?
   38 |     private static boolean isMovable( int x, int y, int w, int h ) {
      |                    ^~~~~~~
      |                    bool
a.cc:41:12: error: expected ':' before 'static'
   41 |     private static String fgetStr(){
      |            ^~~~~~~
      |            :
a.cc:41:20: error: 'String' does not name a type
   41 |     private static String fgetStr(){
      |                    ^~~~~~
a.cc:44:12: error: expected ':' before 'static'
   44 |     private static String fgetLine(){
      |            ^~~~~~~
      |            :
a.cc:44:20: error: 'String' does not name a type
   44 |     private static String fgetLine(){
      |                    ^~~~~~
a.cc:47:12: error: expected ':' before 'static'
   47 |     private static char fgetChar(){
      |            ^~~~~~~
      |            :
a.cc:50:12: error: expected ':' before 'static'
   50 |     private static int fgetInt(){
      |            ^~~~~~~
      |            :
a.cc:53:12: error: expected ':' before 'static'
   53 |     private static long fgetLong(){
      |            ^~~~~~~
      |            :
a.cc:56:12: error: expected ':' before 'static'
   56 |     private static double fgetDouble(){
      |            ^~~~~~~
      |            :
a.cc:59:12: error: expected ':' before 'static'
   59 |     private static BigInteger fgetBig(){
      |            ^~~~~~~
      |            :
a.cc:59:20: error: 'BigInteger' does not name a type
   59 |     private static BigInteger fgetBig(){
      |                    ^~~~~~~~~~
a.cc:62:12: error: expected ':' before 'static'
   62 |     private static String reverseStr(String str){
      |            ^~~~~~~
      |            :
a.cc:62:20: error: 'String' does not name a type
   62 |     private static String reverseStr(String str){
      |                    ^~~~~~
a.cc:65:12: error: expected ':' before 'static'
   65 |     private static void println(Object a){
      |            ^~~~~~~
      |            :
a.cc:65:33: error: 'Object' has not been declared
   65 |     private static void println(Object a){
      |                                 ^~~~~~
a.cc:68:12: error: expected ':' before 'static'
   68 |     private static void print(Object a){
      |            ^~~~~~~
      |            :
a.cc:68:31: error: 'Object' has not been declared
   68 |     private static void print(Object a){
      |                               ^~~~~~
a.cc:71:12: error: expected ':' before 'static'
   71 |     private static void printf(String string, Object... args) {
      |            ^~~~~~~
      |            :
a.cc:71:32: error: 'String' has not been declared
   71 |     private static void printf(String string, Object... args) {
      |                                ^~~~~~
a.cc:71:47: error: 'Object' has not been declared
   71 |     private static void printf(String string, Object... args) {
      |                                               ^~~~~~
a.cc:71:57: error: expansion pattern 'int' contains no parameter packs
   71 |     private static void printf(String string, Object... args) {
      |                                                         ^~~~
a.cc:74:12: error: expected ':' before 'static'
   74 |     private static void suomi(){
      |            ^~~~~~~
      |            :
a.cc:77:12: error: expected ':' before 'static'
   77 |     private static long pow ( long x, long n ) {
      |            ^~~~~~~
      |            :
a.cc:89:12: error: expected ':' before 'static'
   89 |     private static long gcd(long x, long y) {
      |            ^~~~~~~
      |            :
a.cc:92:12: error: expected ':' before 'static'
   92 |     private static long lcm(long x, long y) {
      |            ^~~~~~~
      |            :
a.cc:95:2: error: expected ';' after class definition
   95 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:17:9: error: 'String' was not declared in this scope
   17 |         String s = fgetStr();
      |         ^~~~~~
a.cc:22:18: error: 's' was not declared in this scope
   22 |             if ( s.contains(Character.toString(i)) ) {
      |                  ^
a.cc:22:29: error: 'Character' was not declared in this scope
   22 |             if ( s.contains(Character.toString(i)) ) {
      |                             ^~~~~~~~~
a.cc:23:25: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   23 |                 println("NO");
      |                         ^~~~
      |                         |
      |                         const char*
a.cc:65:40: note:   initializing argument 1 of 'static void Main::println(int)'
   65 |     private static void println(Object a){
      |                                 ~~~~~~~^
a.cc:27:14: error: 's' was not declared in this scope
   27 |         if ( s.matches("A??KIHA??BA??RA??") ) {
      |              ^
a.cc:28:21: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   28 |             println("YES");
      |                     ^~~~~
      |                     |
      |                     const char*
a.cc:65:40: note:   initializing argument 1 of 'static void Main::println(int)'
   65 |     private static void println(Object a){
      |                                 ~~~~~~~^
a.cc:31:21: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   31 |             println("NO");
      |                     ^~~~
      |                     |
      |                     const char*
a.cc:65:40: note:   initializing argument 1 of 'static void Main::println(int)'
   65 |     private static void println(Object a){
      |                                 ~~~~~~~^
a.cc: In static member function 'static char Main::fgetChar()':
a.cc:48:16: error: 'fgetStr' was not declared in this scope
   48 |         return fgetStr().charAt(0);
      |                ^~~~~~~
a.cc: In static member function 'static int Main::fgetInt()':
a.cc:51:16: error: 'FastScanner' was not declared in this scope
   51 |         return FastScanner.nextInt();
      |                ^~~~~~~~~~~
a.cc: In static member function 'static long int Main::fgetLong()':
a.cc:54:16: error: 'FastScanner' was not declared in this scope
   54 |         return FastScanner.nextLong();
      |                ^~~~~~~~~~~
a.cc: In static member function 'static double Main::fgetDouble()':
a.cc:57:16: error: 'FastScanner' was not declared in this scope
   57 |         return FastScanner.nextDouble();
      |                ^~~~~~~~~~~
a.cc: In static member function 'static void Main::println(int)':
a.cc:66:9: error: 'out' was not declared in this scope
   66 |         out.println(a);
      |         ^~~
a.cc: In static member function 'static void Main::print(int)':
a.cc:69:9: error: 'out' was not declared in this scope
   69 |         out.print(a);
      |         ^~~
a.cc: In static member function 'static void Main::printf(...)':
a.cc:72:9: error: 'out' was not declared in this scope
   72 |         out.printf(string, args);
      |         ^~~
a.cc:72:28: error: 'args' was not declared in this scope
   72 |         out.printf(string, args);
      |                            ^~~~
a.cc: In static member function 'static void Main::suomi()':
a.cc:75:9: error: 'out' was not declared in this scope