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: EASY
Tags: String algorithms

Implementation

Starter code:

Solutions:
class CodeforcesTask312ASolution:

	def __init__(self):
		self.result = ''
		self.mess_count = 0
		self.messages = []

	def read_input(self):
		self.mess_count = int(input())
		self.messages = [input() for x in range(self.mess_count)]

	def process_task(self):
		for message in self.messages:
			if message[:5] == 'miao.':
				if message[-5:] == 'lala.':
					self.result += "OMG>.< I don't know!\n"
				else:
					self.result += "Rainbow's\n"
			elif message[-5:] == 'lala.':
				self.result += "Freda's\n"
			else:
				self.result += "OMG>.< I don't know!\n"

	def get_result(self):
		return self.result
Solution = CodeforcesTask312ASolution()
Solution.read_input()
Solution.process_task()
print(Solution.get_result())


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())
while n > 0:
	freda = rainbow = 0
	inp = input()
	if inp[-5:] == 'lala.':
		freda = 1
	if inp[:5] == 'miao.':
		rainbow = 1
	if freda and rainbow or (not freda and (not rainbow)):
		print("OMG>.< I don't know!")
	elif freda:
		print("Freda's")
	else:
		print("Rainbow's")
	n -= 1


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


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


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()


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


n = int(input())
p = 'miao.'
t = 'lala.'
for i in range(n):
	l = list(input())
	done = 0
	if len(l) >= 5:
		x = l[:5]
		total = 0
		for j in range(len(p)):
			if x[j] != p[j]:
				total = 1
		y = l[len(l) - 5:]
		simple = 0
		for j in range(len(t)):
			if y[j] != t[j]:
				simple = 1
		if simple == 1 and total == 1:
			print("OMG>.< I don't know!")
		elif simple == 1 and total == 0:
			print("Rainbow's")
		elif simple == 0 and total == 1:
			print("Freda's")
		else:
			print("OMG>.< I don't know!")
	else:
		print("OMG>.< I don't know!")


from functools import reduce
from operator import *
from math import *
from sys import *
from string import *
setrecursionlimit(10 ** 7)
dX = [0, 0, 1, -1, 1, -1, 1, -1]
dY = [1, -1, 0, 0, 1, -1, -1, 1]
RI = lambda : list(map(int, input().split()))
RS = lambda : input().rstrip().split()
n = RI()[0]
for i in range(n):
	s = input()
	flag1 = s[:5] == 'miao.'
	flag2 = s[-5:] == 'lala.'
	if flag1 == flag2:
		print("OMG>.< I don't know!")
	elif flag1:
		print("Rainbow's")
	else:
		print("Freda's")


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):
	str = list(input())
	if ''.join(str[:5]) == 'miao.' and (not ''.join(str[-5:]) == 'lala.'):
		print("Rainbow's")
	elif not ''.join(str[:5]) == 'miao.' and ''.join(str[-5:]) == 'lala.':
		print("Freda's")
	else:
		print("OMG>.< I don't know!")


import os
import sys
from math import *
from collections import *
from bisect import *
from io import BytesIO, IOBase
from fractions import *

def vsInput():
	sys.stdin = open('input.txt', 'r')
	sys.stdout = open('output.txt', 'w')
BUFSIZE = 8192

class FastIO(IOBase):
	newlines = 0

	def __init__(self, file):
		self._fd = file.fileno()
		self.buffer = BytesIO()
		self.writable = 'x' in file.mode or 'r' not in file.mode
		self.write = self.buffer.write if self.writable else None

	def read(self):
		while True:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			if not b:
				break
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines = 0
		return self.buffer.read()

	def readline(self):
		while self.newlines == 0:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			self.newlines = b.count(b'\n') + (not b)
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines -= 1
		return self.buffer.readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.buffer.getvalue())
			(self.buffer.truncate(0), self.buffer.seek(0))

class IOWrapper(IOBase):

	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		self.write = lambda s: self.buffer.write(s.encode('ascii'))
		self.read = lambda : self.buffer.read().decode('ascii')
		self.readline = lambda : self.buffer.readline().decode('ascii')
(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))
input = lambda : sys.stdin.readline().rstrip('\r\n')

def value():
	return tuple(map(int, input().split()))

def array():
	return [int(i) for i in input().split()]
for _ in range(int(input())):
	s = input()
	st = s[0:5]
	en = s[-5:]
	if st == 'miao.' and en != 'lala.':
		print("Rainbow's")
	elif st != 'miao.' and en == 'lala.':
		print("Freda's")
	else:
		print("OMG>.< I don't know!")


count = int(input())
lines = []
for x in range(count):
	lines.append(input())
for line in lines:
	if line.endswith('lala.') and line.startswith('miao.') or (not line.endswith('lala.') and (not line.startswith('miao.'))):
		print("OMG>.< I don't know!")
	elif line.startswith('miao.'):
		print("Rainbow's")
	else:
		print("Freda's")


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


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


Freda = "Freda's"
Rainbow = "Rainbow's"
OMG = "OMG>.< I don't know!"
Freda_suff = 'lala.'
Rainbow_pref = 'miao.'
z = int(input())
for _ in range(z):
	fr = False
	rb = False
	sentence = input()
	if len(sentence) >= len(Freda_suff) and sentence[-len(Freda_suff):] == Freda_suff:
		fr = True
	if len(sentence) >= len(Rainbow_pref) and sentence[:len(Rainbow_pref)] == Rainbow_pref:
		rb = True
	if fr == rb:
		print(OMG)
	elif fr:
		print(Freda)
	else:
		print(Rainbow)


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


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


import sys
input = sys.stdin.readline
import heapq
import copy
import math
import decimal

def inp():
	return int(input())

def inlt():
	return list(map(int, input().split()))

def insr():
	s = input()
	return list(s[:len(s) - 1])

def insr2():
	s = input()
	return s[:len(s) - 1]

def invr():
	return map(int, input().split())
ans = 0

def pr_list(a):
	print(*a, sep=' ')

def main():
	tests = inp()
	mod = 1000000007
	limit = 10 ** 18
	ans = 0
	stack = []
	hashm = {}
	arr = []
	heapq.heapify(arr)
	for test in range(tests):
		s = insr()
		ends = 'lala.'
		be = 'miao.'
		if len(s) < 5:
			print("OMG>.< I don't know!")
			continue
		if ''.join(s[0:5]) == be:
			a = 1
		else:
			a = 0
		if ''.join(s[len(s) - 5:len(s)]) == ends:
			b = 1
		else:
			b = 0
		if b == 0 and a == 0 or (a == 1 and b == 1):
			print("OMG>.< I don't know!")
			continue
		if b == 1:
			print("Freda's")
		else:
			print("Rainbow's")
main()


msg = ("Freda's", "Rainbow's", "OMG>.< I don't know!")
for _ in range(int(input())):
	s = input()
	f = s.endswith('lala.')
	r = s.startswith('miao.')
	if f and r:
		print(msg[2])
	elif f:
		print(msg[0])
	elif r:
		print(msg[1])
	else:
		print(msg[2])


import sys
import string
from collections import Counter, defaultdict
from math import fsum, sqrt, gcd, ceil, factorial
from itertools import combinations, permutations
flush = lambda : sys.stdout.flush
comb = lambda x, y: factorial(x) // factorial(y) // factorial(x - y)
ip = lambda : input()
ii = lambda : int(input())
r = lambda : map(int, input().split())
rr = lambda : list(r())
n = ii()
for _ in range(n):
	s = ip()
	f = s.startswith('miao.')
	g = s.endswith('lala.')
	if f and g or (not f and (not g)):
		print("OMG>.< I don't know!")
	else:
		print("Freda's" if g else "Rainbow's")


import sys
import math
import itertools
import collections

def divs(n, start=1):
	r = []
	for i in range(start, int(math.sqrt(n) + 1)):
		if n % i == 0:
			if n / i == i:
				r.append(i)
			else:
				r.extend([i, n // i])
	return r

def cdiv(n, k):
	return n // k + (n % k != 0)

def ii():
	return int(input())

def mi():
	return map(int, input().split())

def li():
	return list(map(int, input().split()))

def lcm(a, b):
	return abs(a * b) // math.gcd(a, b)

def wr(arr):
	return ''.join(map(str, arr))

def revn(n):
	return int(str(n)[::-1])

def prime(n):
	if n == 2:
		return True
	if n % 2 == 0 or n <= 1:
		return False
	sqr = int(math.sqrt(n)) + 1
	for d in range(3, sqr, 2):
		if n % d == 0:
			return False
	return True

def convn(number, base=3):
	newnumber = ''
	while number > 0:
		newnumber = str(number % base) + newnumber
		number //= base
	return newnumber
n = ii()
for i in range(n):
	s = input()
	if s[:5] == 'miao.' and s[-5:] != 'lala.':
		print("Rainbow's")
	elif s[-5:] == 'lala.' and s[:5] != 'miao.':
		print("Freda's")
	else:
		print("OMG>.< I don't know!")


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.')])


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


for q in range(int(input())):
	s = input()
	a = s.endswith('lala.')
	b = s.startswith('miao.')
	print("Freda's" if a and b == 0 else "Rainbow's" if a == 0 and b else "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])


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


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


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!")


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()


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


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


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


str_n = input()
int_n = int(str_n)
while int_n:
	int_n -= 1
	lina = input()
	flag0 = 0
	flag1 = 0
	if lina[:5] == 'miao.':
		flag0 = 1
	if lina[-5:] == 'lala.':
		flag1 = 1
	if flag0 == flag1:
		print("OMG>.< I don't know!")
	elif flag0:
		print("Rainbow's")
	else:
		print("Freda'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!")


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


from collections import Counter
import string
import math
import sys

def array_int():
	return [int(i) for i in sys.stdin.readline().split()]

def vary(number_of_variables):
	if number_of_variables == 1:
		return int(sys.stdin.readline())
	if number_of_variables >= 2:
		return map(int, sys.stdin.readline().split())

def makedict(var):
	return dict(Counter(var))
mod = 100000007
for _ in range(vary(1)):
	s = input()
	flag = 0
	k = 0
	try:
		if s[-5:] == 'lala.':
			flag += 1
			k = 1
	except:
		pass
	try:
		if s[:5] == 'miao.':
			flag += 1
			k = 2
	except:
		pass
	if flag == 0 or flag == 2:
		print("OMG>.< I don't know!")
	elif flag == 1 and k == 1:
		print("Freda's")
	else:
		print("Rainbow's")


for _ in range(int(input())):
	s = input()
	p = 0
	c = 0
	for i in range(len(s) + 1):
		if s[:i] == 'miao.':
			p += 1
	for j in range(len(s) - 1, -1, -1):
		if s[j:] == 'lala.':
			c += 1
	if p == 1 and c == 0:
		print("Rainbow's")
	elif c == 1 and p == 0:
		print("Freda's")
	else:
		print("OMG>.< I don't know!")


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


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


n1 = int(input())
for i in range(n1):
	s = input()
	n = len(s)
	if n < 5:
		print("OMG>.< I don't know!")
	else:
		p = 0
		q = 0
		if s[0] == 'm' and s[1] == 'i' and (s[2] == 'a') and (s[3] == 'o') and (s[4] == '.'):
			p = 1
		if s[n - 1] == '.' and s[n - 2] == 'a' and (s[n - 3] == 'l') and (s[n - 4] == 'a') and (s[n - 5] == 'l'):
			q = 1
		if p == q:
			print("OMG>.< I don't know!")
		if p == 0 and q == 1:
			print("Freda's")
		if p == 1 and q == 0:
			print("Rainbow's")


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()


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())
	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")


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


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):
	s = input()
	x = s[-5:] == 'lala.'
	y = s[:5] == 'miao.'
	if y and x or not (x or y):
		print("OMG>.< I don't know!")
	elif x:
		print("Freda's")
	elif y:
		print("Rainbow's")


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


I = input
for _ in '0' * int(I()):
	s = I()
	a = s[-5:] == 'lala.'
	b = s[:5] == 'miao.'
	print(["Freda's", "Rainbow's"][b] if a ^ b else "OMG>.< I don't know!")


for s in [*open(0)][1:]:
	a = s[:5] == 'miao.'
	b = s[-6:-1] == 'lala.'
	print([["Freda's", "Rainbow's"][a], "OMG>.< I don't know!"][a == b])


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


import sys
import math
n = int(sys.stdin.readline())
for i in range(n):
	st = sys.stdin.readline()
	l = len(st)
	if l >= 6:
		k = ''.join(st[l - 6:l - 1])
		h = ''.join(st[:5])
		r = 0
		if k == 'lala.' and h == 'miao.':
			print("OMG>.< I don't know!")
		elif k == 'lala.':
			print("Freda's")
		elif h == 'miao.':
			print("Rainbow's")
		else:
			print("OMG>.< I don't know!")
	else:
		print("OMG>.< I don't know!")


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


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


import re
n = int(input())
for i in range(n):
	s = input()
	rainbow = re.search('\\Amiao\\.', s)
	freda = re.search('lala\\.\\Z', s)
	if rainbow and (not freda):
		print("Rainbow's")
	elif freda and (not rainbow):
		print("Freda's")
	else:
		print("OMG>.< I don't know!")


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


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


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()


import sys
import math

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

def main():
	n = int(sys.stdin.readline().strip())
	for _ in range(n):
		s = sys.stdin.readline().strip('\n')
		print(sentence(s))
		print(s, file=sys.stderr)
main()


__author__ = 'asmn'
n = int(input())
for i in range(n):
	s = input()
	if s[0:5] == 'miao.' and s[-5:] == 'lala.':
		print("OMG>.< I don't know!")
	elif s[0:5] == 'miao.':
		print("Rainbow's")
	elif s[-5:] == 'lala.':
		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")


sentenceCount = int(input())
display = {0: "Rainbow's", 1: "Freda's", 2: "OMG>.< I don't know!"}

def showVerdict(verdict):
	if verdict[0] ^ verdict[1]:
		print(display[0]) if verdict[0] else print(display[1])
	else:
		print(display[2])
status = [False, False]
for i in range(sentenceCount):
	newSentence = input()
	status[1] = newSentence[-5:-1] + newSentence[-1] == 'lala.'
	status[0] = newSentence[0:5] == 'miao.'
	showVerdict(status)


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


def main():
	n = int(input())
	ans = []
	for _ in range(0, n):
		ans.append(solve(input()))
	for a in ans:
		print(a)

def solve(s):
	if len(s) >= 5:
		start = s[0:5]
		end = s[len(s) - 5:len(s)]
		if start == 'miao.' and end == 'lala.':
			return "OMG>.< I don't know!"
		elif start == 'miao.':
			return "Rainbow's"
		elif end == 'lala.':
			return "Freda's"
	return "OMG>.< I don't know!"
main()


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


freda = 'lala.'
rainbow = 'miao.'
idk = "OMG>.< I don't know!"
for i in range(int(input())):
	x = input()
	if len(x) < 5:
		print(idk)
		continue
	start = x[:5]
	end = x[-5:]
	if end == freda and start == rainbow:
		print(idk)
		continue
	if end == freda:
		print("Freda's")
		continue
	if start == rainbow:
		print("Rainbow's")
		continue
	print(idk)


idk = "OMG>.< I don't know!"
for _ in range(int(input())):
	ln = input()
	a = ln.startswith('miao.')
	b = ln.endswith('lala.')
	if a != b:
		if a:
			print("Rainbow's")
		else:
			print("Freda's")
	else:
		print(idk)


n = eval(input())
i = 0
while i < n:
	w = input()
	if len(w) > 4:
		f = w[len(w) - 5] + w[len(w) - 4] + w[len(w) - 3] + w[len(w) - 2] + w[len(w) - 1]
		l = w[0] + w[1] + w[2] + w[3] + w[4]
		if f == 'lala.' and l != 'miao.':
			print("Freda's")
		elif l == 'miao.' and f != 'lala.':
			print("Rainbow's")
		else:
			print("OMG>.< I don't know!")
	else:
		print("OMG>.< I don't know!")
	i += 1


def main():
	res = []
	for _ in range(int(input())):
		(x, s) = (-1, input())
		if s.endswith('lala.'):
			x += 1
		if s.startswith('miao.'):
			x += 2
		res.append(("Freda's", "Rainbow's", "OMG>.< I don't know!")[x])
	print('\n'.join(res))
main()


(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)


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