#K15726. Shift Alphabet
Shift Alphabet
Shift Alphabet
Given a string consisting of alphabetic characters, your task is to shift each character to the next one in the English alphabet. For any letter ( c ) (except the last letters in the sequence), the result should be ( c+1 ). In case the letter is 'z' or 'Z', it wraps around to 'a' or 'A' respectively.
For example, the string "abc" becomes "bcd", and "XYZ" becomes "YZA". This operation can be mathematically represented as:
[
\text{shift}(c) = \begin{cases}
c+1 & \text{if } c \neq 'z' \text{ and } c \neq 'Z' \
'a' & \text{if } c = 'z' \
'A' & \text{if } c = 'Z'
\end{cases}
]
inputFormat
The input consists of a single line containing a string s
made up of alphabetic characters only.
outputFormat
Output the resulting string after shifting each character by one position. Remember, if a letter exceeds 'z' or 'Z', it should wrap around to 'a' or 'A'.
## sampleabc
bcd