Sebi goes to school daily with his father. They cross a big highway in the car to reach to the school. Sebi sits in front seat beside his father at driving seat. To kill boredom, they play a game of guessing speed of other cars on the highway. Sebi makes a guess of other car's speed being SG kph, his father FG kph. 

The highway is usually empty, so the drivers use cruise control, i.e. vehicles run at a constant speed. There are markers on the highway at a gap of 50 meters. Both father-son duo wants to check the accuracy of their guesses. For that, they start a timer at the instant at which their car and the other car (which speed they are guessing) are parallel to each other (they need not to be against some marker, they can be in between the markers too). After some T seconds, they observe that both the cars are next to some markers and the number of markers in between the markers of their car and the other car is D - 1 (excluding the markers next to both the cars). Also, they can observe these markers easily because the other car is faster than their. Speed of Sebi's father's car is S. Using this information, one can find the speed of the other car accurately.

An example situation when Sebi's father starts the timer. Notice that both the car's are parallel to each other.

Example situation after T seconds. The cars are next to the markers. Here the value of D is 1. The green car is Sebi's and the other car is of blue color.

Sebi's a child, he does not know how to find the check whose guess is close to the real speed of the car. He does not trust his father as he thinks that he might cheat. Can you help to resolve this issue between them by telling whose guess is closer. If Sebi's guess is better, output "SEBI". If his father's guess is better, output "FATHER". If both the guess are equally close, then output "DRAW".

-----Input-----
The first line of the input contains an integer T denoting the number of test cases. 
Each of the next T lines contain five space separated integers S, SG, FG, D, T corresponding to the Sebi's car speed, Sebi's guess, his father's guess, D as defined in the statement and the time at which both the cars at against the markers (in seconds), respectively.

-----Output-----
Output description.
For each test case, output a single line containing "SEBI", "FATHER" or "DRAW" (without quotes) denoting whose guess is better.

-----Constraints-----
- 1 ≤ T ≤ 10000
- 0 ≤ S ≤ 130
- 0 ≤ SG, FG ≤ 300
- 1 ≤ D ≤ 30
- 1 ≤ T ≤ 300
-  The other car speed doesn't exceed 300 kph.

-----Example-----
Input:
2
100 180 200 20 60
130 131 132 1 72

Output:
SEBI
FATHER

-----Explanation-----
Example case 1.
There are total 20 - 1 = 19 markers in between the Sebi's car and the other car. So, the distance between those cars at time T is 20 * 50 = 1000 meters = 1 km.
As T = 60 seconds, i.e. 1 minutes. So, the other car goes 1 km more than Sebi's car in 1 minute. So, the other car will go 60 km more than Sebi's car in 1 hour. So, its speed is 60 kmph more than Sebi's car, i.e. 160 kmph.
Sebi had made a guess of 180 kmph, while his father of 200 kmph. Other car's real speed is 160 kmph. So, Sebi's guess is better than his father. Hence he wins the game.
Example case 2.

The situation of this example is depicted in the image provided in the statement. You can find the speed of other car and see that Father's guess is more accurate.

Difficulty: interview

Starter code:

Solutions:
# cook your dish here
n=int(input())
for i in range(n):
    S, SG, FG, D, T = map(int, input().split())
    speed = (D*180)/T + S
    if abs(SG-speed) == abs(FG-speed):
        print('DRAW')
    elif abs(SG-speed) > abs(FG-speed):
        print('FATHER')
    else:
        print('SEBI')

# cook your dish here
n=int(input())
for i in range(n):
    S, SG, FG, D, T = map(int, input().split())
    speed = (D*180)/T + S
    if abs(SG-speed) == abs(FG-speed):
        print('DRAW')
    elif abs(SG-speed) > abs(FG-speed):
        print('FATHER')
    else:
        print('SEBI')

for i in range(int(input())):
    s,sg,fg,d,t = [int(i) for i in input().split()]
    dis = (d*50)
    speed = dis/t 
    exs = (speed*18)/5
    ts = s + exs
    ss = abs(sg-ts)
    sf = abs(fg-ts)
    if ss>sf:
        print('FATHER')
    elif ss<sf:
        print('SEBI')
    elif ss==sf:
        print('DRAW')
        

for _ in range(int(input())):
    S, SG, FG, D, T = map(int, input().split())
    speed = (D*180)/T + S
    if abs(SG-speed) == abs(FG-speed):
        print('DRAW')
    elif abs(SG-speed) > abs(FG-speed):
        print('FATHER')
    else:
        print('SEBI')

# cook your dish here
for _ in range(int(input())):
    S, SG, FG, D, T = map(int, input().split())
    speed = (D*180)/T + S
    if abs(SG-speed) == abs(FG-speed):
        print('DRAW')
    elif abs(SG-speed) > abs(FG-speed):
        print('FATHER')
    else:
        print('SEBI')

for _ in range(int(input())):
    S, SG, FG, D, T = map(int, input().split())
    speed = (D*180)/T + S
    if abs(SG-speed) == abs(FG-speed):
        print('DRAW')
    elif abs(SG-speed) > abs(FG-speed):
        print('FATHER')
    else:
        print('SEBI')

for i in range(int(input())):
    s,sg,fg,d,t=list(map(int,input().split()))
    speed=((d*180)/t+s)
    sa=abs(sg-speed)
    fa=abs(fg-speed)
    if fa<sa:
        print('FATHER')
    elif fa>sa:
        print('SEBI')
    else:
        print('DRAW')



import math
t=int(input())
for i in range(t):
    #n=int(input())
    s,sg,fg,d,t=map(int,input().split())
    #l=list(map(int,input().split()))
    #s=input()
    tot=(d*50*3.6)/t
    final=s+tot
    a=abs(final-sg)
    b=abs(final-fg)
    #print(tot,final,a,b)
    if(a<b):
        print("SEBI")
    elif(b<a):
        print("FATHER")
    else:
        print("DRAW")

# cook your dish here


for i in range(int(input())):
    s,sg,fg,d,t=list(map(int,input().split()))
    speed=((d*180)/t+s)
    sa=abs(sg-speed)
    fa=abs(fg-speed)
    if fa<sa:
        print('FATHER')
    elif fa>sa:
        print('SEBI')
    else:
        print('DRAW')


for i in range(int(input())):
    s,sg,fg,d,t = list(map(int,input().split()))
    tot = (50*d*3.6)/t
    final = s + tot
    a = abs(sg-final)
    b = abs(fg-final)
    if a<b:
        print("SEBI")
    elif a>b:
        print("FATHER")
    else:
        print("DRAW")

import math
t=int(input())
#t=1
for i in range(t):
    #n=int(input())
    s,sg,fg,d,t=map(int,input().split())
    #l=list(map(int,input().split()))
    #s=input()
    tot=(d*50*3.6)/t
    final=s+tot
    a=abs(final-sg)
    b=abs(final-fg)
    #print(tot,final,a,b)
    if(a<b):
        print("SEBI")
    elif(b<a):
        print("FATHER")
    else:
        print("DRAW")


    

# cook your dish here
t = int(input())

for _ in range(t):
    s,sg,fg,d,t = map(int , input().split(" "))
    
    # t = t/3600
    # d = (d*50)/1000
    
    car_speed = s + (d*50*3.6)/t
    #print(car_speed)
    sebi = abs(car_speed-sg)
    fat = abs(car_speed-fg)
    #print(sebi,fat)
    if sebi<fat:
        print("SEBI")
    elif fat==sebi:
        print("DRAW")
    else:
        print("FATHER")

for _ in range(int(input())):
    S,SG,FG,D,T=map(int, input().strip().split())
    G=S+((180*D)/T)
    if abs(G-SG)>abs(G-FG):
        print("FATHER")
    elif abs(G-SG)<abs(G-FG):
        print("SEBI") 
    else:
        print("DRAW")

# cook your dish here
from sys import stdin, stdout
ans = []

for _ in range(int(stdin.readline())):
    spd, sg, fg, d, time = map(int, stdin.readline().split())
    ckh = ((d*180)/time) + spd
    dsg = abs(ckh - sg)
    dfg = abs(ckh - fg)
    ans.append('DRAW' if dsg == dfg else 'SEBI' if dsg < dfg else 'FATHER')
stdout.write('\n'.join(ans))


# cook your dish here
from sys import stdin, stdout
ans = []

for _ in range(int(stdin.readline())):
    spd, sg, fg, d, time = map(int, stdin.readline().split())
    ckh = ((d*180)/time) + spd
    dsg = abs(ckh - sg)
    dfg = abs(ckh - fg)
    ans.append('DRAW' if dsg == dfg else 'SEBI' if dsg < dfg else 'FATHER')
stdout.write('\n'.join(ans))


for _ in range(int(input())):
    s,sg,fg,d,t=map(int,input().split())
    dis=(d*50)/1000
    t1=t/60
    speed=d*50*60*60/(t*1000)
    speed+=s
    if(abs(speed-sg)>abs(speed-fg)):
        print('FATHER')
    elif(abs(speed-sg)<abs(speed-fg)):
        print('SEBI')
    else:
        print('DRAW')


for i in range(int(input())):
    s,sg,fg,d,t=map(int,input().split())
    sc=s+(d*180/t)
    if abs(sg-sc)==abs(fg-sc):
        print('DRAW')
    elif abs(sg-sc)<abs(fg-sc):
        print('SEBI')
    elif abs(sg-sc)>abs(fg-sc):
        print('FATHER')

# cook your dish here
for i in range(int(input())):
    s,sg,fg,d,t=map(int,input().split())
    sc=s+(d*180/t)
    if abs(sg-sc)==abs(fg-sc):
        print('DRAW')
    elif abs(sg-sc)<abs(fg-sc):
        print('SEBI')
    elif abs(sg-sc)>abs(fg-sc):
        print('FATHER')
    

# cook your dish here
for _ in range(int(input())):
    s,sg,fg,d,t=map(int,input().split())
    dif=float(d*180/t)
    diff=float(s)+dif
    if abs(float(diff-sg))>abs(float(diff-fg)):
        print("FATHER")
    elif abs(float(diff-sg))<abs(float(diff-fg)):
        print("SEBI")
    else:
        print("DRAW")

# cook your dish here
tests = int(input())
for _ in range(tests):
   s, sg, fg, d, t = [int(j) for j in input().split()]
   speed = s + 180 * d / t
   abs_s = abs(sg-speed)
   abs_f = abs(fg-speed)
   if abs_s < abs_f:
      print("SEBI")
   elif abs_f < abs_s:
      print("FATHER")
   else:
      print("DRAW")