#P11034. 【MX-X3-T1】「RiOI-4」What beats RiOI

【MX-X3-T1】「RiOI-4」What beats RiOI

Background

Original problem link: https://oier.team/problems/X3B


But as everyone knows, RiOI split off from KDOI, so this is just for fun... (whisper)
Sorry, KDOI, meow!

Problem Description

Define a string as good flash if and only if it contains the substring RiOI (case-insensitive, for example, containing rioi, RIOI, rIoI all counts as containing it).

Given two non-empty strings s,ts, t that contain only uppercase and lowercase English letters:

  • If both strings are good flash, output Either is ok!
  • Otherwise, if ss is good flash, output ss for sure!
  • Otherwise, if tt is good flash, output tt for sure!
  • If neither string is good flash, output Try again!

Input Format

Two lines, each contains a non-empty string consisting only of uppercase and lowercase English letters, representing s,ts, t.

Output Format

One line with one string, representing your answer.

RiOI
KDOI
RiOI for sure!
RiOIroundfour
RiOIroundnegtiveone
Either is ok!
majsoul
digdigio
Try again!
GoInForNOI
GoInForIOI
GoInForIOI for sure!

Hint

Sample Explanation #1

RiOI contains the substring RiOI, while KDOI does not, so output RiOI for sure!

Sample Explanation #2

RiOIroundfour and RiOIroundnegtiveone both contain the substring RiOI, so output Either is ok!

Sample Explanation #4

GoInForIOI contains the substring rIOI, while GoInForNOI does not, so output GoInForIOI for sure!

Constraints

For 50%50\% of the testdata, s,ts, t are guaranteed to contain only lowercase English letters.
For 100%100\% of the testdata, the lengths of s,ts, t are both at most 1 0001\ 000, and both are non-empty strings consisting only of uppercase and lowercase English letters.

Translated by ChatGPT 5