题目描述
CSDN has reportedly suffered from hackers, some sites account, password, and other related data were leaked. On these sites use the same email address you registered, several usernames may be different account, hope to change the password has been leaked as soon as possible. Strategy is as follows: you traverse database through the email address, find your user name and password, and change the password. Change the rules for: lowercase and uppercase exchange, non-alphabetic characters remain the same.
输入解释
The first line contains two integers n , m ; the number of your email address and the number of test cases. The following n lines, each line contains an email address. The following m lines, each line contains an account、username、 password and email address. 1≤n≤100 , 1≤m≤10000
输出解释
Several lines, each line has one of your accounts, including: your account and the modified password. Without your account, then output “EMPTY”.
输入样例
2 5
2015@sspu.edu.cn
2016@stu.sspu.edu.cn
sspu iLoveCats 2015@sspu.edu.cn
2012 maya2012 cplusplus@exam.com
KittyCat 5iKitty 2016@stu.sspu.edu.cn
program password teacher@exam.com
whoAmi Feb.29$ 2015@sspu.edu.cn
输出样例
sspu IlOVEcATS
KittyCat 5IkITTY
whoAmi fEB.29$
提示
样例输入
1 1
abc@sspu.edu.cn
2012 maya2012 cplusplus@exam.com
样例输出
EMPTY
共提交
9
次
通过率
22.22%