시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB169534334.677%

문제

Everyone can generally recognize when they hear a hit song. It's melodic, the words are easy to follow, and is auditorily pleasant.

Your job is to determine if a song will be a hit song based on its lyrics. Because the general population has lost their ideals of quality due of oversaturation of media, the threshold for deciding if a song will be a hit or not will be if the song uses words that most people find appealing at least 75% of the time.

입력

The first line of input contains the number of test cases N (1 <= N <= 100).

Each test case begins with a line containing P (1 <= P <= 100), indicating the number of pleasant words. The following P lines each contain a pleasant word. The following line contains a number L (1 <= L <= 100), indicating the number of lines in a song. The following L lines each contain a line of the song you are analyzing. A word is a sequence of 1 or more ASCII letters. Words are separated by (and may be preceded by or followed by) other (non-letter) printable ASCII characters (using ASCII values 32-126). No input line will exceed 100 characters. Ignore case when comparing words.

출력

For each test case, if the song reaches the 75% threshold of pleasantness, output It's a hit!, otherwise output Delete immediately! . Output a single line after each case.

예제 입력 1

2
3
love
baby
beautiful
2
Baby baby baby, I love you, beautiful baby.
Love is in the air tonight!
3
love
baby
beautiful
1
Baby baby baby, I love you, beautiful baby.

예제 출력 1

Delete immediately!
It's a hit!