#T454. 词组缩写

词组缩写

Description

Definition: The abbreviation of a phrase is formed by the uppercase combination of the first letters of each word in the phrase.

For example, EOF, commonly used in the C language, is the abbreviation of "end of file".

Input Format

The first line of input is an integer T, indicating there are T test cases in total.

The following T lines each represent a test case. Each line contains a phrase consisting of one or more words. Each test case contains no more than 10 words, and each word is composed of one or more uppercase or lowercase letters.

The length of each word does not exceed 10, and the words are separated by one or more spaces.

Output Format

For each test case, output the specified abbreviation. Each output should occupy a single line.

```input1 1 end of file ``` ```output1 EOF ``` ```markdown ## Source

CodesOnline