atcoder#CF17FINALA. AKIBA
AKIBA
Score : points
Problem Statement
You are given a string .
Takahashi can insert the character A
at any position in this string any number of times.
Can he change into AKIHABARA
?
Constraints
- consists of uppercase English letters.
Input
Input is given from Standard Input in the following format:
Output
If it is possible to change into AKIHABARA
, print YES
; otherwise, print NO
.
KIHBR
YES
Insert one A
at each of the four positions: the beginning, immediately after H
, immediately after B
and the end.
AKIBAHARA
NO
The correct spell is AKIHABARA
.
AAKIAHBAARA
NO