You are given a string S.  Takahashi can insert the character `A` at any position in this string any number of times.  Can he change S into `AKIHABARA`?
A=["AKIHABARA","KIHBR", "AKIHBR", "KIHABR", "KIHBAR", "KIHBRA","AKIHABR","AKIHBAR","AKIHBRA","KIHABAR","KIHABRA","KIHBARA","AKIHABAR","AKIHABRA","AKIHBARA","KIHABARA"]
S=input()
if S in A:
  print("Yes")
else:
  print("No")


A=["AKIHABARA","KIHBR", "AKIHBR", "KIHABR", "KIHBAR", "KIHBRA","AKIHABR","AKIHBAR","AKIHBRA","KIHABAR","KIHABRA","KIHBARA","AKIHABAR","AKIHABRA","AKIHBARA","KIHABARA"]
S=input()
if S in A:
  print("YES")
else:
  print("NO")

