object HelloScala { def main(args: Array[String]): Unit = { val in = io.StdIn.readLine().split("") var ans = "" for (e <- in){ e match { case "I" | "i" => ans += "1" case "O" | "o" => ans += "0" case _ => ans += e } } println(ans) } }