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`?

Constraints

* 1 \leq |S| \leq 50
* S consists of uppercase English letters.

Input

Input is given from Standard Input in the following format:


S


Output

If it is possible to change S into `AKIHABARA`, print `YES`; otherwise, print `NO`.

Examples

Input

KIHBR


Output

YES


Input

AKIBAHARA


Output

NO


Input

AAKIAHBAARA


Output

NO
s=input()
a=[]
for i in range(1<<4):
  l=list("AKIHABARA")
  for j in range(len(l)):
    if i&(1<<j):
      if j==0:
        l[0]=""
      elif j==1:
        l[4]=""
      elif j==2:
        l[6]=""
      elif j==3:
        l[8]=""
  a.append("".join(l))
if s in a:
  print("YES")
else:
  print("NO")