process.stdin.on("data", (chunk) => process.stdout.write(chunk.toString().replaceAll("yiwiy9", "yiwiY9").replaceAll("9yiwiy", "9Yiwiy")))