#include <algorithm>
#include <bitset>
#include <tuple>
#include <cstdint>
#include <cstdio>
#include <cctype>
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <limits>
#include <map>
#include <memory>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#define ArraySizeOf(array)     (sizeof(array) / sizeof(array[0]))
#define res(i,n) for(int i=n;;i++)
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define REP(i,n) for(int i=1;i<n;i++)
#define rev(i,n) for(int i=n-1;i>=0;i--)
#define REV(i,n) for(int i=n-1;i>0;i--)
#define req(i,n,m) for(int i=n;i<m;i++)
#define REQ(i,n,m,l) for(int i=n;i<m;i+=l) 
#define _GLIBCXX_DEBUG
int INF = 1e9 + 7;
unsigned NthDayOfWeekToDay(unsigned n, unsigned dow, unsigned dow1)
{
    unsigned day;
    if (dow < dow1) dow += 7;
    day = dow - dow1;
    day += 7 * n - 6;
    return day;
}
signed gcd(long long x, long long y) {
    if (y == 0)return x;
    return gcd(y, x % y);
}
signed lcm(long long x, long long y) {
    return x / gcd(x, y) * y;
}
unsigned DayToWeekNumber(unsigned day)
{
    return (day - 1) / 7 + 1;
}
unsigned AnotherDayOfWeek(unsigned day, unsigned day0, unsigned dow0)
{
    return (dow0 + 35 + day - day0) % 7;
}
using namespace std;
signed main() {
    string A; cin >> A;
    if (A.size() == 5) {
        if (A.at(0) == 'K' && A.at(1) == 'I' && A.at(2) == 'H' && A.at(3) == 'B' && A.at(4) == 'R') {
            cout << "YES" << endl;
            return 0;
        }
    }
    if (A.size() == 6) {
        if ((A.at(0) == 'K' && A.at(1) == 'I' && A.at(2) == 'H' && A.at(3) == 'B' && A.at(4) == 'R' && A.at(5) == 'A') || (A.at(0) == 'K' && A.at(1) == 'I' && A.at(2) == 'H' && A.at(3) == 'B' && A.at(4) == 'A' && A.at(5) == 'R') || (A.at(0) == 'K' && A.at(1) == 'I' && A.at(2) == 'H' && A.at(3) == 'A' && A.at(4) == 'B' && A.at(5) == 'R') || (A.at(0) == 'A' && A.at(1) == 'K' && A.at(2) == 'I' && A.at(3) == 'H' && A.at(4) == 'B' && A.at(5) == 'R')) {
            cout << "YES" << endl;
            return 0;
        }
    }
    if (A.size() == 7) {
        if ((A.at(0) == 'K' && A.at(1) == 'I' && A.at(2) == 'H' && A.at(3) == 'B' && A.at(4) == 'A' && A.at(5) == 'R' && A.at(6) == 'A') || (A.at(0) == 'K' && A.at(1) == 'I' && A.at(2) == 'H' && A.at(3) == 'A' && A.at(4) == 'B' && A.at(5) == 'R' && A.at(6) == 'A') || (A.at(0) == 'A' && A.at(1) == 'K' && A.at(2) == 'I' && A.at(3) == 'H' && A.at(4) == 'B' && A.at(5) == 'R' && A.at(6) == 'A') || (A.at(0) == 'K' && A.at(1) == 'I' && A.at(2) == 'H' && A.at(3) == 'A' && A.at(4) == 'B' && A.at(5) == 'A' && A.at(6) == 'R') || (A.at(0) == 'A' && A.at(1) == 'K' && A.at(2) == 'I' && A.at(3) == 'H' && A.at(4) == 'B' && A.at(5) == 'A' && A.at(6) == 'R') || (A.at(0) == 'A' && A.at(1) == 'K' && A.at(2) == 'I' && A.at(3) == 'H' && A.at(4) == 'A' && A.at(5) == 'B' && A.at(6) == 'R')) {
            cout << "YES" << endl;
            return 0;
        }
    }
    if (A.size() == 8) {
        if ((A.at(0) == 'A' && A.at(1) == 'K' && A.at(2) == 'I' && A.at(3) == 'H' && A.at(4) == 'A' && A.at(5) == 'B' && A.at(6) == 'A' && A.at(7) == 'R') || (A.at(0) == 'A' && A.at(1) == 'K' && A.at(2) == 'I' && A.at(3) == 'H' && A.at(4) == 'A' && A.at(5) == 'B' && A.at(6) == 'R' && A.at(7) == 'A') || (A.at(0) == 'A' && A.at(1) == 'K' && A.at(2) == 'I' && A.at(3) == 'H' && A.at(4) == 'B' && A.at(5) == 'A' && A.at(6) == 'R' && A.at(7) == 'A') || (A.at(0) == 'K' && A.at(1) == 'I' && A.at(2) == 'H' && A.at(3) == 'A' && A.at(4) == 'B' && A.at(5) == 'A' && A.at(6) == 'R' && A.at(7) == 'A')) {
            cout << "YES" << endl;
            return 0;
        }
    }
    if (A.size() == 9) {
        if (A.at(0) == 'A' && A.at(1) == 'K' && A.at(2) == 'I' && A.at(3) == 'H' && A.at(4) == 'A' && A.at(5) == 'B' && A.at(6) == 'A' && A.at(7) == 'R' && A.at(8) == 'A') {
            cout << "YES" << endl;
            return 0;
        }
    }
    cout << "NO" << endl;
}

Measured memory_bytes: 3600