#P6409. Decrypting Luka's Encrypted Message
Decrypting Luka's Encrypted Message
Decrypting Luka's Encrypted Message
Luka was goofing off in chemistry class again! Instead of writing chemical equations, he wrote a peculiar message. He encrypted each word by inserting a letter 'p' followed by the same vowel immediately after every vowel. For example, the word kemija
becomes kepemipijapa
and paprika
becomes papapripikapa
.
The encryption rule for each vowel, namely $\texttt{a}$, $\texttt{e}$, $\texttt{i}$, $\texttt{o}$, and $\texttt{u}$, can be described as follows:
$$ \text{vowel} \to \text{vowel} + p + \text{vowel} $$Your task is to help Luka's teacher by writing a program that decrypts the given message back to its original form.
inputFormat
The input consists of a single line containing an encrypted string composed of lowercase letters only.
outputFormat
Output the original decrypted string.
sample
kepemipijapa
kemija