Atbash Cipher
Statement
The program
Your program must decrypt a text with Atbash cipher -- a simple substitution cipher.
It consists in substituting "a" (the first letter) for "z" (the last), "b" (the second) for "y" (one before last), and so on, reversing the alphabet.
It consists in substituting "a" (the first letter) for "z" (the last), "b" (the second) for "y" (one before last), and so on, reversing the alphabet.
INPUT:
Line 1: an encrypted word.
OUTPUT:
Line 1: the decrypted word.
CONSTRAINTS:
The given word contains only lowercase latin letters (a-z).
EXAMPLE:
Input
zyxabc
Output
abczyx
Game modes
Fastest, Shortest, Reverse
Test cases
Test n°1 Test
Input
zyxabc
Output
abczyx
Validator n°1 Validator
Input
xyzcba
Output
cbaxyz
Test n°2 Test
Input
svool
Output
hello
Validator n°2 Validator
Input
zoolsz
Output
alloha
Test n°3 Test
Input
abcdefghijklmnopqrstuvwxyz
Output
zyxwvutsrqponmlkjihgfedcba
Validator n°3 Validator
Input
zyxwvutsrqponmlkjihgfedcba
Output
abcdefghijklmnopqrstuvwxyz
Test n°4 Test
Input
nmnmnmnmnm
Output
mnmnmnmnmn
Validator n°4 Validator
Input
mnmnmnmnmn
Output
nmnmnmnmnm
Test n°5 Test
Input
xlwrmtznvwlgxlnrhiformt
Output
codingamedotcomisruling
Validator n°5 Validator
Input
xlwrmtznvwlgxlnrhxllo
Output
codingamedotcomiscool
Solution language
Solution
Stub generator input