#C14117. Substitution Cipher Message Encoder
Substitution Cipher Message Encoder
Substitution Cipher Message Encoder
You are given a message as a string. Your task is to encode the message using a simple substitution cipher. In this cipher, every alphabetical character (both uppercase and lowercase) is replaced by the letter that appears three positions later in the English alphabet, wrapping around if necessary. Non-letter characters should remain unchanged.
For example, the letter a becomes d, Y becomes B, and "Hello, World!" becomes "Khoor, Zruog!".
Read the input from standard input (stdin) and output the encoded message to standard output (stdout).
The cipher formula for a letter \( c \) (represented by its ASCII code) is given by:
\[ \text{newChar} = \begin{cases} ((c - {\rm base} + 3) \mod 26) + {\rm base} & \text{if } c \text{ is a letter},\\ c & \text{otherwise}, \end{cases} \] where \({\rm base}\) is \(65\) for uppercase letters or \(97\) for lowercase letters.inputFormat
The input consists of a single line containing the message that needs to be encoded. The message can include letters, digits, spaces, and other printable characters.
outputFormat
Output a single line containing the encoded message.
## sampleabc
def