#K57497. Shift Characters Problem
Shift Characters Problem
Shift Characters Problem
Given a string, shift every alphabetical character by 2 positions forward in the alphabet, wrapping around if necessary. Non-alphabetical characters remain unchanged. The operation is case-sensitive.
For a character \( c \), the transformation can be expressed in LaTeX as:
\( new\_char = ((c - base + 2) \mod 26) + base \)
where \( base \) is \( 'a' \) for lowercase letters and \( 'A' \) for uppercase letters.
For example, the input "abcXYZ" would produce "cdeZAB".
inputFormat
The input consists of a single line containing a non-empty string.
outputFormat
Output the transformed string to stdout.
## sampleabcXYZ
cdeZAB