#P11034. Good Flash Challenge
Good Flash Challenge
Good Flash Challenge
A string is defined as Good Flash if and only if it contains the substring \(RiOI\) (case-insensitive), i.e., any variation such as \(rioi\), \(RIOI\), or \(rIoI\) is accepted.
Given two non-empty strings \(s\) and \(t\) consisting only of uppercase and lowercase English letters, perform the following checks:
- If both \(s\) and \(t\) are Good Flash, output
Either is ok!
. - If only \(s\) is Good Flash, output \(s\) concatenated with
for sure!
. - If only \(t\) is Good Flash, output \(t\) concatenated with
for sure!
. - If neither string is Good Flash, output
Try again!
.
inputFormat
The input consists of two lines. Each line contains a non-empty string comprised solely of uppercase and lowercase English letters.
outputFormat
Output a single line according to the rules described in the problem statement.
sample
riOI
RIOI
Either is ok!