#B4110. Cyclic Character Transformation

    ID: 11767 Type: Default 1000ms 256MiB

Cyclic Character Transformation

Cyclic Character Transformation

Given a string $S$ of length $N$, consisting only of the characters $\tt{J}$, $\tt{O}$, and $\tt{I}$, transform each character as follows:

  • If $c=\tt{J}$, then $c' = \tt{O}$
  • If $c=\tt{O}$, then $c' = \tt{I}$
  • If $c=\tt{I}$, then $c' = \tt{J}$

Apply the transformation to every character in the string and output the resulting string.

inputFormat

The input consists of a single line containing the string $S$.

outputFormat

Output the string after performing the transformation on every character.

sample

JOI
OIJ