Each word is rewritten by mapping its first letter to the nearest hard consonant, copying it over later hard consonants, and adding a vowel if it ends in one.
Easy3StringSimulationNo attempts yetTime limit1sMemory limit256 MBThe Nimions speak a funny form of language. Whichever word they try to say, and whichever language it comes from, it never comes out quite the same. A word from any language turns into Nimionese by these rules.
The hard consonants are b, c, d, g, k, n, p and t. A word is written as one or more syllables joined by the dash character -.
Apply the rules in this order, to each word of the sentence on its own.
The only line contains a sentence of 1 to 50 words and at most 104 characters. A single space separates two words, and the dash character - separates the syllables inside a word.
Apart from the dashes, the sentence contains only lower-case and upper-case Latin letters, and only the first letter of a word can be upper-case.
Print the sentence from the input translated to Nimionese, on one line, with a single space between two words. Remove every dash. The output fits within 5⋅104 characters.