"I don't have any fancy quotes." - vijju123
Chef was reading some quotes by great people. Now, he is interested in classifying all the fancy quotes he knows. He thinks that all fancy quotes which contain the word "not" are Real Fancy; quotes that do not contain it are regularly fancy.
You are given some quotes. For each quote, you need to tell Chef if it is Real Fancy or just regularly fancy.

-----Input-----
- The first line of the input contains a single integer $T$ denoting the number of test cases. The description of $T$ test cases follows.
- The first and only line of each test case contains a single string $S$ denoting a quote.

-----Output-----
For each test case, print a single line containing the string "Real Fancy" or "regularly fancy" (without quotes).

-----Constraints-----
- $1 \le T \le 50$
- $1 \le |S| \le 100$
- each character of $S$ is either a lowercase English letter or a space

-----Subtasks-----
Subtask #1 (100 points): original constraints

-----Example Input-----
2
i do not have any fancy quotes
when nothing goes right go left

-----Example Output-----
Real Fancy
regularly fancy

-----Explanation-----
Example case 1: "i do not have any fancy quotes"
Example case 2: The word "not" does not appear in the given quote.

Starter code:

Solutions:
# cook your dish here
import re
t=int(input())
while(t>0):
 s=list(input().split(' '))
 if("not" in s):
  print("Real Fancy")
 else:
  print("regularly fancy")
 t=t-1

for _ in range(int(input())):
 s = input()
 l = s.split()
 if "not" in l:
  print("Real Fancy")
 else:
  print("regularly fancy")

# cook your dish here

for _ in range(int(input())):
 s=input()
 t=s.split(" ")
 if "not" in t:
  print("Real Fancy")
 else:
  print("regularly fancy")


t=int(input())
for i in range(t):
 n=input()
 a=n.split(' ')
 if 'not' in a:
  print('Real Fancy')
 else:
  print('regularly fancy')


for i in range(int(input())):
 n=input()
 tmp=n.split(' ')
 if 'not' in tmp:
  print('Real Fancy')
 else:
  print('regularly fancy')

# cook your dish here
t=int(input())
for i in range(t):
 s=input()
 tmp=s.split(" ")
 if "not" in tmp:
  print("Real Fancy")
 else:
  print("regularly fancy")

t=int(input())
for i in range(t):
 s=input().split()
 if('not' in s):
  print("Real Fancy")
 else:
  print("regularly fancy")

# cook your dish here
t=int(input())
def do():
 s=input()
 if 'not' in s.split():
  print('Real Fancy')
 else:
  print('regularly fancy')
 return
for i in range(t):
 do()


# cook your dish here
for _ in range(int(input())):
 s = input()
 if 'not' in s.split():
  print('Real Fancy')
 else:
  print('regularly fancy')


# cook your dish here
for _ in range(int(input())):
 a=[i for i in input().split()]
 if 'not' in a:
  print("Real Fancy")
 else:
  print("regularly fancy")

# cook your dish here
t=int(input())
for _ in range(t):
 s=input()[:100]
 s.lower()
 k=s.split()
 if('not' in k):
  print("Real Fancy")
 else:
  print("regularly fancy")


n=int(input())
while n>0:
 s1=list(input().split())
 flag=0
 for i in range(0,len(s1)):
  if str(s1[i])=="not":
   #print(s1[i])
   flag=1
 if flag==1:
  print("Real Fancy")
 else:
  print("regularly fancy")
 n=n-1

# cook your dish here
for i in range(int(input())):
 x=input()
 w="not"
 s=x.split()
 if w in s:
  print("Real Fancy")
 else:
  print("regularly fancy")
 print()

# cook your dish here
for i in range(int(input())):
 x=input()
 w="not"
 s=x.split()
 if w in s:
  print("Real Fancy")
 else:
  print("regularly fancy")
 print()

T=int(input())
for i in range(T):
 S=str(input())
 S=S.split()
 for j in S:
  if j=="not":
   print("Real Fancy")
   break
 else:
  print("regularly fancy")

T=int(input())
for i in range(T):
 S=str(input())
 S=S.split()
 for j in S:
  if j=="not":
   print("Real Fancy")
   break
 else:
  print("regularly fancy")


# cook your dish here
t=int(input())
for i in range(t):
 s=input()
 word="not"
 sp = s.split()
 if word in sp:
  print("Real Fancy")
 else:
  print("regularly fancy")
 print()

t = int(input())
while t:
 s = input()
 word = "not"
 wordlist= s.split()
 
 if word in wordlist :
  print("Real Fancy")
 else :
  print("regularly fancy")
 t = t-1

t = int(input())
while t:
 s = input()
 word = "not"
 wordlist= s.split()
 
 if word in wordlist :
  print("Real Fancy")
 else :
  print("regularly fancy")
 t = t-1

for t in range(int(input())):
 x=input() 
 x=x.split()
 for i in x:
  if i=='not':
   print('Real Fancy')
   break 
 else:
  print('regularly fancy') 


for i in range(int(input())):
 x=input() 
 x=x.split()
 for j in x:
  if j=='not':
   print('Real Fancy')
   break 
 else:
  print('regularly fancy') 


a=int(input())
k=a
while(k!=0):
 x=input().split()
 if 'not' in x:
  print('Real Fancy')
 else:
  print('regularly fancy')
 k=k-1

for i in range(int(input())):
 a = input().split()
 if 'not' in a:
  print('Real Fancy')
 else:
  print('regularly fancy')# cook your dish here


for _ in range(int(input())):
 S = input()
 if "not" in S.split():
  print("Real Fancy")
 else:
  print("regularly fancy")

t = int(input())
while(t):
 s = input()
 l = s.split()
 found = 0
 for x in l:
  if(x == "not"):
   found = 1
 if(found):
  print("Real Fancy")
 else :
  print("regularly fancy")

 t -= 1