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
#include <cstdio>

char str[99];
char goal[99]="AKIHABARA";
int cnt[99];
int main() {
	scanf("%s",str);
	int N=0;
	while(str[N]!='\0') N++;
	int M=0;
	for(int i=0;i<N;i++) {
		while(M<11) {
			if(str[i]==goal[M]) break;
			M++;
		}
		if(str[i]==goal[M]) cnt[M++]++;
	}
	if(M>9) {
		printf("NO\n");
		return 0;
	} else {
		for(int i=0;i<9;i++) if(cnt[i]==0&&goal[i]!='A') {
			printf("NO\n");
			return 0;
		}
	}
	printf("YES\n");
	return 0;
}
