import re;print((['NO','YES'][re.match('A?KIHA?BA?RA?$',eval(input()))!=None]))
import re;print(('YES'if re.match('A?KIHA?BA?RA?$',eval(input()))else 'NO'))
import re

print((["NO", "YES"][re.match("A?KIHA?BA?RA?$", eval(input())) != None]))

import re

print(("YES" if re.match("A?KIHA?BA?RA?$", eval(input())) else "NO"))

-print((["NO", "YES"][re.match("A?KIHA?BA?RA?$", eval(input())) != None])) +print(("YES" if re.match("A?KIHA?BA?RA?$", eval(input())) else "NO"))