3391. Recite Words

Description

is bad at English, so his teammates asked him to recite some words.has a poor memory, so he can only recite the first letter and the last letter of one word, and he will recite those letters in upper-case.has a list ofwords he will try to recite, and want to know what he will memorize after the recitation.

Input

The first line contains one positive integer.

The nextlines, each line contains a wordwritten in lower-case, and it is guaranteed that the length of each line is at leastand at most.

Output

The output containslines, for each line, output a string with length of two, represent whatwill memorize.

Sample Input

11

if

you

aint

aim

too

high

then

you

aim

too

low

Sample Output

IF

YU

AT

AM

TO

HH

TN

YU

AM

TO

LW


难度等级: 0
总通过次数: 36
总提交次数: 138