CF2094A.Trippi Troppi

传统题 时间 2000 ms 内存 256 MiB 3 尝试 1 已通过 1 标签

Trippi Troppi

Trippi Troppi resides in a strange world. The ancient name of each country consists of three strings. The first letter of each string is concatenated to form the country's modern name.

Given the country's ancient name, please output the modern name.

Input

The first line contains an integer tt – the number of independent test cases (1t1001 \leq t \leq 100).

The following tt lines each contain three space-separated strings. Each string has a length of no more than 1010, and contains only lowercase Latin characters.

Output

For each test case, output the string formed by concatenating the first letter of each word.

Samples

7
united states america
oh my god
i cant lie
binary indexed tree
believe in yourself
skibidi slay sigma
god bless america
usa
omg
icl
bit
biy
sss
gba

在线编程 IDE

建议全屏模式获得最佳体验