Veni, vidi, vici
InterviewTime limit1sMemory limit256 MB
Drop the last letter of each odd-length ciphertext, then decode every letter pair into one plain letter with the given key.
Problem
Woncheol learned the Caesar cipher in a cryptography class. The Caesar cipher is a well known substitution cipher, and its rules are these.
- Treat a as 0, b as 1, and in the same way z as 25.
- Encrypting the number with a key gives . For example, when , a becomes b, b becomes c, and z becomes a.
- Decrypting the encrypted number gives .
Woncheol also learned the weakness of this cipher. Counting how often each letter appears breaks it quickly. He decided that turning one letter into two letters avoids that weakness. A letter "x" is replaced by two letters "yz" that satisfy , and Woncheol calls this the Woncheol cipher. To encrypt a word he replaces its letters one at a time from the front and joins the results in order.
A word encrypted this way always has even length, which reveals that the Woncheol cipher was used. So Woncheol may append one dummy letter of his choice to the end of an encrypted word. A ciphertext of odd length therefore ends with a dummy letter, and a ciphertext of even length has no dummy letter.
Decrypt what Woncheol said in the Woncheol cipher.
Input
The first line contains an integer (), the key used for encryption.
The second line contains at most 100 words separated by one space each. Every word is 2 to 101 characters long and consists only of the lowercase English letters 'a' to 'z'. All of these words are ciphertexts of the Woncheol cipher.
Output
Decrypt each word in the order given in the input and print the results on one line, separated by one space each.