One day, liouzhou_101 got a chat record of Freda and Rainbow. Out of curiosity, he wanted to know which sentences were said by Freda, and which were said by Rainbow. According to his experience, he thought that Freda always said "lala." at the end of her sentences, while Rainbow always said "miao." at the beginning of his sentences. For each sentence in the chat record, help liouzhou_101 find whose sentence it is. 


-----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.


-----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. 


-----Examples-----
Input
5
I will go to play with you lala.
wow, welcome.
miao.lala.
miao.
miao .

Output
Freda's
OMG>.< I don't know!
OMG>.< I don't know!
Rainbow's
OMG>.< I don't know!

Difficulty: interview

Starter code:

Solutions:
for i in range(int(input())):
    s = input()
    if s.endswith('lala.') and not s.startswith('miao.'):
        print("Freda's")
    elif s.startswith('miao.') and not s.endswith('lala.'):
        print("Rainbow's")
    else:
        print("OMG>.< I don't know!")


n = int(input())

for i in range(n):
    s = input()

    if s[len(s) - 5: len(s)] == 'lala.' and s[: 5] == 'miao.':
        print("OMG>.< I don't know!")
    elif s[len(s) - 5: len(s)] == 'lala.':
        print("Freda's")
    elif s[: 5] == 'miao.':
        print("Rainbow's")
    else:
        print("OMG>.< I don't know!")


n = int(input())
for i in range(n):
    S = input()
    flag1 = len(S) >= 5 and S[:5] == "miao."
    flag2 = len(S) >= 5 and S[-5:] == "lala."
    if flag1 and flag2:
        print("OMG>.< I don't know!")
    elif flag2:
        print("Freda's")
    elif flag1:
        print("Rainbow's")
    else:
        print("OMG>.< I don't know!")


n= int(input())
ans=[]

for i in range(n):
    s=input()
    s.lower
    if(s[-5:]=="lala." and s[0:5]=="miao."):
        ans.append("OMG>.< I don't know!")
        continue
    elif(s[-5:]=="lala."):
        ans.append("Freda's")
        continue
    elif(s[0:5]=="miao."):
        ans.append("Rainbow's")
        continue
    else:
        ans.append("OMG>.< I don't know!")

for i in range(n):
    print(ans[i])


n = int(input())
for i in range(n):
    a = input()
    if a[:5] == "miao." and a[len(a)-5:] == "lala.":
        print("OMG>.< I don't know!")
    elif a[len(a)-5:] == "lala.":
        print("Freda's")
    elif a[:5] == "miao.":
        print("Rainbow's")
    else:
        print("OMG>.< I don't know!")


import re
n = int( input() )
r1 = re.compile('^miao\..*lala\.$')
r2 = re.compile('lala\.$')
r3 = re.compile('^miao\.')

for i in range( 0, n ):
    s = str(input())
    #res1 = r1.findall( s ) )
    #res2 = r2.findall( s ) )
    if len( r1.findall( s ) ) > 0:
        print( 'OMG>.< I don\'t know!' )
    elif len( r2.findall( s ) ) > 0 :
        print( 'Freda\'s' )
    elif len( r3.findall( s ) ) > 0 :
        print ('Rainbow\'s')
    else:
        print( 'OMG>.< I don\'t know!' )


t=int(input())
for x in range(t):
    l=input()
    flag=3
    if(l.startswith('miao.')==True):
        flag=2
    if(l.endswith('lala.')==True):
        flag=1
    if(l.startswith('miao.')==True) and (l.endswith('lala.')==True):
        flag=3
    if(flag==3):
        print("OMG>.< I don't know!")
    if(flag==2):
        print("Rainbow's")
    if(flag==1):
        print("Freda's")


##A
def main():
    n=int(input())
    f,r=0,0
    Sr="Rainbow's"
    Sf="Freda's"
    Su="OMG>.< I don't know!"
    for _  in range(n):
        s=str(input())
        if(s.find('miao.')==0):
            r=1
        else:
            r=0
        if (s.rfind('lala.')==len(s)-5):
            f=1
        else:
            f=0
        if (r and not f):
            print(Sr)
        elif (f and not r):
            print(Sf)
        elif(r and f) or (not f and not r):
            print(Su)
    
main()


n = int(input())
for i in range(n):
  s = input()
  ans = 0
  if s[-5:] == 'lala.':
    ans += 1
  if s[:5] == 'miao.':
    ans += 2
  if ans == 1:
    print("Freda's")
  elif ans == 2:
    print("Rainbow's")
  else:
    print ("OMG>.< I don't know!")



n = int(input())
for i in range (0, n):
    s = input()
    ns = len(s)
    if ns < 5:
        print ("OMG>.< I don't know!")
    else:
        if s[:5] == "miao." and s[-5:] == "lala.":
            print ("OMG>.< I don't know!")
        else:
            if s[:5] == "miao.":
                print ("Rainbow's")
            else:
                if s[-5:] == "lala.":
                    print ("Freda's")
                else:
                    print ("OMG>.< I don't know!")


n = int(input())
for i in range(n):
  s = input()
  if s.startswith('miao.') and not s.endswith('lala.'):
    print("Rainbow's")
  elif s.endswith('lala.') and not s.startswith('miao.'):
    print("Freda's")
  else:
    print("OMG>.< I don't know!")

n = int(input())
for i in range(n):
	sign = False
	sign1 = False
	s = input()
	if s[:5] == 'miao.':
		sign1 = True
	if s[-5:] == 'lala.':
		sign = True
	if sign and sign1 or sign == False and sign1 == False:
		print("OMG>.< I don't know!")
	elif sign:
		print("Freda's")
	else:
		print("Rainbow's")


n = int(input())
for i in range(n):
    line = input()
    result = 0
    if len(line) >= 5 and line[0:5] == 'miao.':
        result += 1
    if len(line) >= 5 and line[-5:] == 'lala.':
        result += 2
    if result == 2: print("Freda's")
    elif result == 1: print("Rainbow's")
    else: print("OMG>.< I don't know!")


def main():
	n = int(input())
	for i in range(n):
		s = input()
		if s.endswith("lala.") and s.endswith("miao.", 0, 5):
			print("OMG>.< I don't know!")
		elif s.endswith("lala."):
			print("Freda's")
		elif s.endswith("miao.", 0, 5):
			print("Rainbow's")
		else:
			print("OMG>.< I don't know!")

def __starting_point(): main()

__starting_point()

import sys
for line in sys.stdin:
    line_number = int(line)
    for line in range(line_number):
        s = input()
        Freda, Rainbow = False, False
        if s[-5:] == 'lala.':
            Freda = True
        if s[:5] == 'miao.':
            Rainbow = True
        if Freda == True and Rainbow == True or Freda == False and Rainbow == False:
            print("OMG>.< I don't know!")
        elif Freda:
            print("Freda's")
        elif Rainbow:
            print("Rainbow's")
        else:
            pass



n = int(input())
for i in range(n):
    x = input()
    f = x.endswith('lala.')
    r = x.startswith('miao.')
    if (f and r) or not (f or r):
        print("OMG>.< I don't know!")
    elif f:
        print("Freda's")
    else:
        print("Rainbow's")


import math
import re
from fractions import Fraction
from collections import Counter

class Task:
    sentences = []
    answer = []
    
    def __init__(self):
        self.sentences = ['' for _ in range(int(input()))]
        for i in range(len(self.sentences)):
            self.sentences[i] = input()

    def solve(self):
        sentences = self.sentences
        for current in sentences:
            matcherFirst = re.search('^miao\.', current) 
            matcherSecond = re.search('lala\.$', current)
            if matcherFirst != None and matcherSecond == None:
                self.answer += ["Rainbow's"]
                continue
            if matcherFirst == None and matcherSecond != None:
                self.answer += ["Freda's"]
                continue
            self.answer += ["OMG>.< I don't know!"]

    def printAnswer(self):
        for line in self.answer:
            print(line)

task = Task()
task.solve()
task.printAnswer()


n = int(input())
a = []

for x in range(n) : a.append(str(input()))
for x in range(n):
    if (a[x][-5:] == 'lala.' and a[x][:5] == 'miao.'): print('OMG>.< I don\'t know!')
    elif (a[x][-5:] == 'lala.'): print('Freda\'s')
    elif (a[x][:5] == 'miao.'): print('Rainbow\'s')
    else: print('OMG>.< I don\'t know!')

import re
Fe = re.compile('.*lala\.!')
FeA = "Freda's"
Ra = re.compile('miao\..*')
RaA = "Rainbow's"
NotSure = "OMG>.< I don't know!"

def __starting_point():
    N = int(input())
    for times in range(N):
        inp = input()
        inp = inp.strip('\n') + '!'

        f1 = Fe.match(inp) != None
        f2 = Ra.match(inp) != None

        if f1:
            if f2:
                print(NotSure)
            else:
                print(FeA)
        elif f2:
            print(RaA)
        else:
            print(NotSure)


__starting_point()

f, r, unknow="Freda's", "Rainbow's", "OMG>.< I don't know!"
answer=[]
n=int(input())
for i in range(n):
    s=input()
    if s[0:5]=="miao.":
        if s[-5:]=="lala.": answer.append(unknow)
        else: answer.append(r)
    elif s[-5:]=="lala.": answer.append(f)
    else: answer.append(unknow)
for i in answer: print(i)


for _ in range(int(input())):
    s = input()
    print((["OMG>.< I don't know!", "Freda's", "Rainbow's", "OMG>.< I don't know!"][s.startswith("miao.")
        * 2 + s.endswith("lala.")]))


n=int(input())

for i in range(0,n):
    s=input()
    if(s.startswith("miao.") and not s.endswith("lala.")):
        print("Rainbow's")
    elif(s.endswith("lala.") and not s.startswith("miao.")):
        print("Freda's")
    else:
        print("OMG>.< I don't know!")


3

n = int(input())
for _ in range(n):
    s = input()
    if not (s.startswith('miao.') ^ s.endswith('lala.')):
        print("OMG>.< I don't know!")
    elif s.startswith('miao.'):
        print("Rainbow's")
    else:
        print("Freda's")


n = int(input())
for i in range(n):
    t = input()
    a = b = len(t) > 4
    a = a and t[:5] == 'miao.'
    b = b and t[-5:] == 'lala.'
    if a:
        if b: print('OMG>.< I don\'t know!')
        else: print('Rainbow\'s')
    else:
        if b: print('Freda\'s')
        else: print('OMG>.< I don\'t know!')

n=int(input())
for i in range(n):
    s=input()
    f1=0
    f2=0
    if len(s)>=5 and s[-5:]=='lala.':
        f1=1
    if len(s)>=5 and s[:5]=='miao.':
        f2=1
    if (f1 and f2)or(f1==0 and f2==0):
        print('OMG>.< I don\'t know!')
    elif f1==1 :
        print('Freda\'s')
    else :
        print('Rainbow\'s')