Back in 2015, Usain Bolt announced that he'll be retiring after the 2017 World Championship. Though his final season did not end gloriously, we all know that he is a true legend and we witnessed his peak during 2008 - 2013. 
Post retirement, Usain Bolt is still leading an adventurous life. He's exploring the unexplored parts of the globe. But sometimes he gets bored, and reads questions asked about him on Quora. One such question he read was, "Who would win a race between Usain Bolt and a tiger if the race is on a straight line track and the tiger is $distancetoBolt$ meters behind Bolt? The finishing point is $finish$ meters away from Bolt's starting position. The tiger starts with an initial speed of $0$ $meter/second$, and will accelerate itself with $tigerAccelaration$ $m/s^2$. Bolt can run with a constant speed of $boltSpeed$ $m/s$ from start to finish. Given these values, find out who will win the race - Bolt or the tiger? "
Note that Bolt will win the race if and only if he touches the finishing line before the tiger touches it. If both of them finish together, the tiger is announced as the winner since Bolt was given an initial advantage. See the figure below for more clarity.

Since Bolt was busy practicing in the tracks during his Physics school classes, he is asking for your help to solve the question. Can you please help him?
He just remembers two formulae from the class, and thinks that they will be useful to you:
$Displacement (S) $ = $ut$ +$ (1/2)at^2$ where $u$ is the initial velocity , #$ $is the acceleration and $t$ is the time taken.
$Velocity$ = $Displacement /Time$

-----Input:-----
- The first line will contain $T$, the number of testcases. Then the description of each test case follow. 
- Each test case contains 4 integers $finish, distancetoBolt, tigerAccelaration, boltSpeed$. 

-----Output:-----
For each testcase, output in a single line, the word "Bolt" or "Tiger" without quotes, depending on whether Bolt wins or the tiger wins.

-----Constraints-----
- $1 \leq T \leq 100000$
- $1 \leq finish\leq 10^5$
- $1 \leq distancetoBolt\leq 10^5$
- $1 \leq tigerAccelaration\leq 10^5$
- $1 \leq boltSpeed\leq 10^5$

-----Sample Input:-----
2
10 100 10 10
100 10 5 10

-----Sample Output:-----
Bolt
Tiger

Difficulty: interview

Starter code:

Solutions:
for i in range(int(input())):
 finish,distanetobolt,tigerAcceleration,boltspeed=map(int,input().split())
 t1=((2*(finish+distanetobolt)/(tigerAcceleration))**0.5)
 t2=(finish/boltspeed)
 if t1>t2:
  print("Bolt")
 elif t1<t2:
  print("Tiger")
 else:
  print("Tiger")

for i in range(int(input())):
 finish,distanetobolt,tigerAcceleration,boltspeed=list(map(int,input().split()))
 t1=((2*(finish+distanetobolt)/(tigerAcceleration))**0.5)
 t2=(finish/boltspeed)
 if t1>t2:
  print("Bolt")
 elif t1<t2:
  print("Tiger")
 else:
  print("Tiger")


for i in range(int(input())):
 finish,distanetobolt,tigerAcceleration,boltspeed=map(int,input().split())
 t1=((2*(finish+distanetobolt)/(tigerAcceleration))**0.5)
 t2=(finish/boltspeed)
 if t1>t2:
  print("Bolt")
 elif t1<t2:
  print("Tiger")
 else:
  print("Tiger")

for i in range(int(input())):
 finish,distanetobolt,tigerAcceleration,boltspeed=map(int,input().split())
 t1=((2*(finish+distanetobolt)/(tigerAcceleration))**0.5)
 t2=(finish/boltspeed)
 if t1>t2:
  print("Bolt")
 elif t1<t2:
  print("Tiger")
 else:
  print("Tiger")

import math
for i in range(int(input())):
 (f,db,ta,bs)=map(int,input().split())
 if f/bs<math.sqrt((f+db)*2/ta):
  print("Bolt")
 else:
  print("Tiger")

# cook your dish here
t=int(input())
for i in range(t):
 fin,disttobol,tigacc,bolspeed=list(map(int,input().split()))
 boltime=fin/bolspeed
 tigtime=(((fin+disttobol)*2)/tigacc)**(1/2)
 if(boltime<tigtime):
  print("Bolt")
 else:
  print("Tiger")


t=int(input())
for i in range(t):
 fin,disttobol,tigacc,bolspeed=list(map(int,input().split()))
 boltime=fin/bolspeed
 tigtime=(((fin+disttobol)*2)/tigacc)**(1/2)
 if(boltime<tigtime):
  print("Bolt")
 else:
  print("Tiger")


for _ in range(int(input())):
    f,dtb,ta,bs=list(map(int,input().split()))
    btime=f/bs
    ttime=((f+dtb)*2)/ta
    ttime=(ttime)**(1/2)
    if(btime<ttime):
     print("Bolt")
    else:
     print("Tiger")


for _ in range(int(input())):
 # n = int(input())
 # arr = list(map(int,input().split()))
 fin,dx,acc,vel = list(map(int,input().split()))
 time = fin/vel
 tiger = 0.5*acc*time*time - dx
 if fin>tiger :
  print('Bolt')
 else :
  print('Tiger')


for _ in range(int(input())):
 # n = int(input())
 # arr = list(map(int,input().split()))
 fin,dx,acc,vel = list(map(int,input().split()))
 time = fin/vel
 tiger = 0.5*acc*time*time - dx
 if fin>tiger :
  print('Bolt')
 else :
  print('Tiger')


import math

t = int(input())

for _ in range(t):
 f, dtb, ta, bs = [int(x) for x in input().split()]
 
 tt = math.sqrt(2*(dtb+f)/ta)
 bt = f/bs
 
 if(bt < tt):
  print("Bolt")
 else:
  print("Tiger")

from math import sqrt
for _ in range(int(input())) :
 s1, s2, a2, v = map(int, input().split())
 t1 = s1 / v
 t2 = sqrt((2 * (s1 + s2)) / a2)
 if t1 < t2 :
  print("Bolt")
 else :
  print("Tiger")

T = int(input())
outputs = []

while(T > 0):
 
 inStr = input()
 inStr = list(map(int,inStr.split(" ")))
 finish = inStr[0]
 distancetoBolt = inStr[1]
 tigerAcceleration = inStr[2]
 boltSpeed = inStr[3]

 boltTime = finish / boltSpeed
 tigerTime = ((2 * (distancetoBolt + finish)) / tigerAcceleration) ** (1/2)
 if(tigerTime <= boltTime):
  outputs.append("Tiger")
 else:
  outputs.append("Bolt")
 
 T -= 1
 
print(*outputs, sep="\n")


import math
def func():
 t=int(input())
 for _ in range(t):
  fn,dst,ta,bs = map(int,input().split(' '))
  t1=fn/bs
  t2=math.sqrt(2*(fn+dst)/ta)
  if t1<t2:
   print("Bolt")
  else:
   print("Tiger")
func()

for _ in range(int(input())):
 finsh,distancetoBolt,tigerAccelaration,boltSpeed =list(map(int,input().split()))
 #s=(a*t*t)*1/2
 t1=(((distancetoBolt+finsh)*2)/(tigerAccelaration))**(1/2)
 t2=finsh/boltSpeed
 if(t1>t2):
  print('Bolt')
 if(t2>t1):
  print('Tiger')
 if(t1==t2):
  print('Tiger')



# cook your dish here
for _ in range(int(input())):
 fin,dis,acc,spe = map(int,input().split())
 tb = fin/spe
 tt = ((2*(fin+dis))/acc)**0.5
 if tt<=tb:
  print('Tiger')
 else:
  print('Bolt')

# cook your dish here
import math
for i in range(int(input())):
 s,d,a,b = map(float,input().split())
 #For Tiger
 distance = s+d
 tiger = math.sqrt(2*distance/a)
 #For Usain Bolt
 bolt = (s/b)
 if tiger<=bolt:
  print("Tiger")
 else:
  print("Bolt")

# cook your dish here
import math
for h in range(int(input())):
 f,d,t,b=map(int,input().split())
 tg=math.sqrt(2*(f+d)/t)
 bl=f/b 
 if tg<=bl:
  print('Tiger')
 else:
  print('Bolt')