F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

Cyber Language

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 524288/524288 K (Java/Others)
Total Submission(s): 695    Accepted Submission(s): 476


Problem Description
You may have ever seen the following words written in cyber language: ''$\texttt{KK}$'', ''$\texttt{DDW}$'', ''$\texttt{SMWY}$'', which means ''$\texttt{kan kan}$'', ''$\texttt{dai dai wo}$'', ''$\texttt{shen me wan yi}$'', respectively.

To translate a Chinese sentence into cyber language, you need to find the first letter of each Chinese character, and write it in upper-case.

You will be given several Chinese sentences, please translate them into the cyber language described above.
 

Input
The first line contains a single integer $T$ ($1 \leq T \leq 10$), the number of test cases. For each test case:

The only line contains several Chinese characters written in lower-case, separated by exactly one space. It is guaranteed that the length of each line is at least $1$ and at most $50$.
 

Output
For each test case, output a single line containing a string, denoting the corresponding word written in the cyber language.
 

Sample Input
3 kan kan dai dai wo shen me wan yi
 

Sample Output
KK DDW SMWY
 

Source
 

Statistic | Submit | Discuss | Note
Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-22 15:11:52, Gzip enabled