output_description: If it is possible to change S into `AKIHABARA`, print `YES`; otherwise, print
  `NO`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      S
attempt: S = input()
  origin = ["", "K", "I", "H", "", "B", "", "R", ""]
  idx = [0, 4, 6, 8]
  candidate = []
  for state in range(1 << 4):
      tmp = origin[:]
      for i in range(4):
          if state >> i & 1:
              tmp[idx[i]] = "A"
      candidate.append("".join(tmp))
  print("YES" if S in candidate else "NO")
  
problem_description: Statement
  
  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`?
samples: [{"input": "KIHBR", "output": "YES\n    \n\nInsert one `A` at each of the four positions: the beginning, immediately after\n`H`, immediately after `B` and the end.\n\n* * *"}, {"input": "AKIBAHARA", "output": "NO\n    \n\nThe correct spell is `AKIHABARA`.\n\n* * *"}, {"input": "AAKIAHBAARA", "output": "NO"}]