Problem list
Log in
#r03696 · CCC 2015 Junior

Rövarspråket

Silver V 2.0 s 256 MB

In Sweden, there is a simple child’s game similar to Pig Latin called Rövarspråket (Robber’s Language).

In the CCC version of Rövarspråket, every consonant is replaced by three letters, in the following order:

  • the consonant itself;

  • the vowel closest to the consonant in the alphabet (e.g., if the consonant is d, then the closest vowel is e), with the rule that if the consonant falls exactly between two vowels, then the vowel closer to the start of the alphabet will be chosen (e.g., if the consonant is c, then the closest vowel is a);

  • the next consonant in the alphabet following the original consonant (e.g., if the consonant is d, then the next consonant is f) except if the original consonant is z, in which case the next consonant is z as well.

Vowels in the word remain the same. (Vowels are a, e, i, o, u and all other letters are consonants.)

Write a program that translates a word from English into Rövarspråket.

Input

The input consists of one word entirely composed of lower-case letters. There will be at least one letter and no more than 30 letters in this word.

Output

Output the word as it would be translated into Rövarspråket on one line.

Example 1

Input
joy
Output
jikoyuz

Example 2

Input
ham
Output
hijamon
Source
CCC 2015 Junior
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code