CCL的脚本

TimeLimit:2000MS  MemoryLimit:256MB
64-bit integer IO format:%I64d
未提交 | 登录后收藏
Problem Description

图片.png


FJUT集训队的小伙伴们都是喜欢水群的,而CCL不喜欢水群,他喜欢窥屏,可是集训队的小伙伴们水群水的贼鸡儿厉害,动不动就99+


于是CCL就写了一个脚本来看谁说了哪几句话,但是他还没有测试过,于是他就把这个脚本交给你们来测试


由于他只知道Freda喜欢以"lala."结尾,Rainbow喜欢以"miao."开头,所以这个脚本只会判断Freda和Rainbow说的话,其他的都是"OMG>.< I don't know!"

所以请你们测试一下这个脚本

Input

The first line of the input contains an integer n (1 ≤ n ≤ 10), number of sentences in the chat record. Each of the next n lines contains a sentence. A sentence is a string that contains only Latin letters (A-Z, a-z), underline (_), comma (,), point (.) and space ( ). Its length doesn’t exceed 100.


第一行输入一个整数n (1 ≤ n ≤ 10),代表输入脚本的聊记录有几句话

接下来有n行,每一行都有一句话,这一句话是一个字符串,且只包含拉丁字母(A-Z,a-z),下划线(_),逗号(,),点(。)和空格()的字符串。它的长度不超过100。

Output

For each sentence, output "Freda's" if the sentence was said by Freda, "Rainbow's" if the sentence was said by Rainbow, or "OMG>.< I don't know!" if liouzhou_101 can’t recognize whose sentence it is. He can’t recognize a sentence if it begins with "miao." and ends with "lala.", or satisfies neither of the conditions.


每一句话都要给出答案,如果他是Freda说的就输出

Freda's

如果是Rainbow说的就输出

Rainbow's

如果无法判断就输出,如果出现以miao.开头,以lala.结尾也是无法判断的情况

OMG>.< I don't know!


SampleInput
5
I will go to play with you lala.
wow, welcome.
miao.lala.
miao.
miao .
SampleOutput
Freda's
OMG>.< I don't know!
OMG>.< I don't know!
Rainbow's
OMG>.< I don't know!
Submit
题目统计信息详细
总AC数35
通过人数30
尝试人数32
总提交量73
AC率41.10%
AC该题后可以添加标签
贴完标签可以获得20ACB。
并且可以获得本题所有提交代码查看权限。
点击标题可以显示标签。
如果你还没认真思考过这题,请不要查看标签
如果您已经通过了该题,请务为该题贴上标签

T^T Online Judge

[BUG反馈] [FAQ] [闽ICP备17026590号-1]
当前版本:3.24 系统时间: