OIJ
Time limit2sMemory limit2048 MB
Given a string of J, O, and I, shift each letter forward in the cycle J to O, O to I, I to J and print the result.
- Level
Easy1 of 10
- Topics
- String, Simulation
- Solved
- No attempts yet
Input
A string of length is given. Each character of is one of J, O, or I. For each character of , change J to O, O to I, and I to J, then output the resulting string.
Output
Output the string after converting each character of : J to O, O to I, and I to J.
Output only the answer. Do not print any prompts or other text.
Constraints
- .
- is an integer.
- is a string of length .
- Each character of is
J,O, orI.