eolymp
bolt
Попробуйте наш новый интерфейс для отправки задач

Tongues

Gandalf's writings have long been available for study, but no one has yet gured out what language they are written in. Recently, due to programming work by a hacker known only by the code name ROT13, it has been discovered that Gandalf used nothing but a simple letter substitution scheme, and further, that it is its own inverse|the same operation scrambles the message as unscrambles it. This operation is performed by replacing vowels in the sequence \textbf{(a i y e o u)} with the vowel three advanced, cyclicly, while preserving case (i.e., lower or upper). Similarly, consonants are replaced from the sequence \textbf{(b k x z n h d c w g p v j q t s r l m f)} by advancing ten letters. So for instance the phrase \textbf{One ring to rule them all.} translates to \textbf{Ita dotf ni dyca nsaw ecc.} The fascinating thing about this transformation is that the resulting language yields pronounceable words. For this problem, you will write code to translate Gandalf's manuscripts into plain text. \InputFile The input le will contain multiple test cases. Each test case consists of a single line containing up to \textbf{100} characters, representing some text written by Gandalf. All characters will be plain ASCII, in the range space (\textbf{32}) to tilde (\textbf{126}), plus a newline terminating each line. The end of the input is denoted by the end-of-file. \OutputFile For each input test case, print its translation into plaintext. The output should contain exactly the same number of lines and characters as the input.
Лимит времени 5 секунд
Лимит использования памяти 64 MiB
Входные данные #1
Ita dotf ni dyca nsaw ecc.
Выходные данные #1
One ring to rule them all.
Источник Pacific North West Region Programming Contest, 2012, November 3