Changyeong's Diary
InterviewTime limit1sMemory limit128 MB
Decode a string by replacing every vowel-p-vowel triple with the single vowel, restoring the original sentence.
- Level
Easy2 of 10
- Topics
- String, Implementation
- Solved
- No attempts yet
Problem
Changyeong writes an English sentence in his diary every night. To keep other people from reading it easily, he encodes each vowel (a, e, i, o, u) as the vowel itself, then p, then the same vowel again.
Given one encoded sentence, restore the original sentence.
Input
The first line contains one encoded sentence made only of lowercase English letters and spaces. All words are separated by one space, and the sentence length is at most 100.
Output
Print the original sentence before it was encoded.