#K85312. Decode Circular Shift Message
Decode Circular Shift Message
Decode Circular Shift Message
You are given an encoded message that has been encoded using a circular shift mechanism. In this process, each alphabetic character is replaced by the letter immediately preceding it in the alphabet. The shifting is circular, which means that:
$$ \text{decoded}(c) = \begin{cases} 'z' & \text{if } c = 'a' \\ 'Z' & \text{if } c = 'A' \\ chr(ord(c)-1) & \text{if } c \text{ is a letter and not } 'a' \text{ or } 'A' \end{cases} $$
Your task is to decode the given message by applying the reverse circular shift to each letter in the input string. Non-alphabetical characters, if any, will not be present in the input.
inputFormat
The input consists of a single line containing the encoded message. The message will only contain uppercase and/or lowercase English letters.
outputFormat
Output a single line containing the decoded message after performing a circular shift on each character as described.
## sampleBcd
Abc