#K38717. Next Character in Alphabet
Next Character in Alphabet
Next Character in Alphabet
Given a string s, your task is to replace each alphabetical character with the next letter in the English alphabet. Non-alphabetic characters should remain unchanged. If the character is '\( z \)' or '\( Z \)', it should wrap around to '\( a \)' or '\( A \)' respectively.
For example, the letter 'a' will become 'b', and 'z' will become 'a'. The transformation can be formally defined as follows:
\[ f(c) = \begin{cases} \text{chr}(\text{ord}(c) + 1) & \text{if } c \text{ is between } 'a' \text{ and } 'y' \text{ or } 'A' \text{ and } 'Y', \\ 'a' \text{ or } 'A' & \text{if } c = 'z' \text{ or } c = 'Z', \\ c & \text{otherwise.} \end{cases} \]
Your solution should read the input from standard input and write the result to standard output.
inputFormat
The input consists of a single line string s which may contain spaces, numbers, and special characters.
outputFormat
Output the transformed string after replacing each alphabetical character with the next character in the alphabet as described above.
## sampleHello, World!
Ifmmp, Xpsme!