#include <bits/stdc++.h>
using namespace std;
string akiba(string s) {
  vector<string> can = {"KIHBR",    "KIHBRA",   "KIHBAR",   "KIHBARA",
                        "KIHABR",   "KIHABRA",  "KIHABARA", "AKIHBR",
                        "AKIHBRA",  "AKIHBAR",  "AKIHABR",  "AKIHABRA",
                        "AKIHABAR", "AKIHABARA"};
  auto it = find(can.begin(), can.end(), s);
  if (it != can.end())
    return "YES";
  else
    return "NO";
}
int main() {
  string s;
  cin >> s;
  cout << akiba(s) << endl;
  return 0;
}
