All of you have probably heard about the amazing adventures of Rar the Cat. But he has one weakness that nobody knows about. Long variable names! Due to some weird form of obsession with squished code, Rar the Cat goes crazy whenever he sees variable names that are longer than 5 characters long.
Knowing his secret weakness, his evil junior, Bradley, has decided to exploit such a weakness by bombarding Rar the Cat with long variable names. Help code a program to shorten any of the long variable names submitted by Bradley.
Rar the Cat is a very picky cat, thus the variable names must be shortened in a very special way. Bradley likes to use overly_descriptive_variable_names that are words joined by underscores between them. Rar the Cat, however, would only want the first letter of each word to be used so that the code remains concise and understandable [for him]. For example, In this case, the variable would be shortened to 'odvn'.
Create a program that shortens Bradley's long variable names. The long variable names will not be longer than 10000 characters long.
The first line of input will be a single integer, t
is the total number of testcases that follow. 0 < t
The following t
lines would contain the evil variable names that Bradley uses to attack Rar the Cat.
Output the shortened form of the variable names that Bradley gives Rar the Cat.
If the shortened variable name still exceeds 5 characters, output "CENSORED" to prevent Rar the Cat from going crazy.