you & mdash; Graphic designer in the creative agency "Pixel Perfect". Your new client, the startup "Cosmo Link", wants to get a unique and memorable text style logo. Their idea & mdash; Create a feeling of "cosmic spare" and technological. You have come up with a special algorithm for transforming the text, which, in your opinion, is ideal.
rn
You need to write a program that automates this process. The program should accept the name of the brand to the input and convert it to the following rules:
rn
rn - mergers: & nbsp; first you need to get rid of From all spaces, so that the letters merge into a single whole, symbolizing the connection (link).
rn - & nbsp; then, then, then, then, then, then, then, then To give weight and significance, each letter or symbol is duplicated.
rn - status: & nbsp; And confidently, the whole line is transferred to the upper register.
rn - durability: & nbsp; finally, to create the very "cosmic" effect and cosmic "effect and cosmic" effect and space effects Readability, a gap is added between each pair of identical characters.
rn Ol> rn Technical requirement: & nbsp; if an empty line or line is supplied to the input, Consisting only of spaces, the program should consider this by a mistake and display the message: & nbsp; the name cannot be empty!
rn Your task & mdash; To implement this algorithm using cycles and work with lines.
rn & nbsp;
Input format
The name of the brand for the logo (line).
Output format
The modified line for the logo (line). Or error message if the line was empty (line).
Example
Output
cc oo ss mm oo ll ii nn kk
Hint
There will be no clue here, decide for yourself!