Under construction

Still being built. Things may change

OIJ

Time limit2sMemory limit2048 MB

Summary
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 SS of length NN is given. Each character of SS is one of J, O, or I. For each character of SS, 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 SS: J to O, O to I, and I to J.

Output only the answer. Do not print any prompts or other text.

Constraints

  • 1≤N≤1001 \leq N \leq 100.
  • NN is an integer.
  • SS is a string of length NN.
  • Each character of SS is J, O, or I.

Examples2

  1. Example 1

    Input
    3
    JOI
    
    Expected output
    OIJ
    
  2. Example 2

    Input
    10
    JOIOOJOOOJ
    
    Expected output
    OIJIIOIIIO