Problem Statement:
CodeZilla team is the winner of the Second Oman Collegiate Programming Contest (OCPC 2014). It is the first team includes only female students to win a national programming contest. After winning the contest, the coach of the team (Mr. Alhussain Aly) noticed that all members of the team (Asma Yasin, Marwa Maghnie and Yusra Abu Jaradeh) have a common thing: the first name of all of them includes the letter 'a' which is the first letter in both his first and last names. So, he is currently thinking to accept only new members to join the programming team if their first names include the letter 'a'. Could you help him?

In this problem, you will be given the first and last names of a coach and the first names of the candidates for the programming team. Then, you should decide for each member if he can join the team or no. The candidate can join the team in 2 cases:

1. Either his/her first name contains the first letter of both the first and last names of the coach if the first letter is the same for both names.
2. The first letters of the first and last names of the coach are not the same.


Input Format:
Your program will be tested on one or more test cases. The first line of the input will be a single integer T, the number of test cases (1  ≤  T  ≤  100). Followed by T test cases, the first line of each test case contains an integer and 2 strings separated by single spaces N F L (1  ≤  N  ≤  100) representing the number of candidates, the first name and the last name of a coach, respectively. Followed by N lines, each line contains a single string which represents the first name of a candidate. All the strings in the input are non-empty strings of at least 1 and at most 100 upper case or lower case English letters (from 'A' to 'Z' and from 'a' to 'z').

Note: lower case letters and upper case letters are considered equivalent (e.g. 'a' and 'A' are equivalent).


Output Format:
For each test case, print a line containing "Case n:" (without the quotes) where n is the test case number (starting from 1) followed by one line for each candidate in the test case which contains the word "YES" if the candidate can join the programming team, or the word "NO" otherwise.


Sample Input:
1 4 Alhussain Aly Asma Marwa Yusra Zohdi


Sample Output:
Case 1: YES YES YES NO





Added by: ahmed_aly
Added at: 2014-10-11 15:00:10 UTC
Time Limit: 3 seconds
Partial score: No
Source:ACM Egyptian Collegiate Programming Contest 2014