Rename the Books

Limits 1s, 1.0 GB

Everything is short in the Short Land. People use short words when talking to each other or writing something or messaging there. For example, they write 'hapy' instead of 'happy'. They write 'runing' instead of 'running' etc. In other words, if they find a letter consecutively in a word, they write it once.

Long time ago, Short land was known as Long Land. Because, their ancestors used to write long words then. For example, they wrote 'haaaappppyyyy' instead of 'hapy'. They wrote 'runnninnnng' instead of 'runing' etc.

Recently the historians of Short Land discovered an ancient library. There are $N$ books in that library. Since the ancient people used to write long words, the name of the books were also long. For example, the name of a famous book was 'the alchemmmisst'. Your task is to rename these books maintaining the rule of Short Land.

Input

You'll be given the value of $N (N \le 10^5)$ in the first line of the input, which indicates the total number of books in the library. The name of all the books in the library will be inputted one at a time in the next $N$ lines. A book name can have a maximum of 10 words. Every word can have a maximum of 20 English lowercase letters.

Output

Rename the books maintaining the current rule of Short Land and print it in $N$ lines.

Sample

InputOutput
3
the alchemmmisst
harrrryyyy potttterrrr
teachhh yoursellfff c
the alchemist
hary poter
teach yourself c