#K55717. Shift Characters in String

    ID: 30038 Type: Default 1000ms 256MiB

Shift Characters in String

Shift Characters in String

You are given a string consisting of uppercase letters, digits, and possibly other symbols. Your task is to shift each uppercase letter 3 positions forward in the alphabet (with wrap-around, i.e., \(X \to A\), \(Y \to B\), \(Z \to C\)) and each digit 3 positions forward (with wrap-around, i.e., \(7 \to 0\), \(8 \to 1\), \(9 \to 2\)). Characters that are not uppercase letters or digits should remain unchanged.

Example:

Input:  ABCDEFGHIJKLMNOPQRSTUVWXYZ
Output: DEFGHIJKLMNOPQRSTUVWXYZABC

This problem tests your ability to manipulate strings and handle wrap-around arithmetic on characters. Use the provided input from stdin and output your results to stdout.

inputFormat

The input consists of a single line containing a string \(S\) which may include uppercase letters (A-Z), digits (0-9), and other symbols. The length of \(S\) is between 0 and 105.

outputFormat

Print the transformed string after applying the shift to uppercase letters and digits.

## sample
ABCDEFGHIJKLMNOPQRSTUVWXYZ
DEFGHIJKLMNOPQRSTUVWXYZABC