Bears love candies and games involving eating them. Limak and Bob play the following game. Limak eats 1 candy, then Bob eats 2 candies, then Limak eats 3 candies, then Bob eats 4 candies, and so on. Once someone can't eat what he is supposed to eat, he loses.
Limak can eat at most A candies in total (otherwise he would become sick), while Bob can eat at most B candies in total.
Who will win the game?
Print "Limak" or "Bob" accordingly.

-----Input-----
The first line of the input contains an integer T denoting the number of test cases. The description of T test cases follows.
The only line of each test case contains two integers A and B denoting the maximum possible number of candies Limak can eat and the maximum possible number of candies Bob can eat respectively.

-----Output-----
For each test case, output a single line containing one string — the name of the winner ("Limak" or "Bob" without the quotes).

-----Constraints-----
- 1 ≤ T ≤ 1000
- 1 ≤ A, B ≤ 1000

-----Example-----
Input:
10
3 2
4 2
1 1
1 2
1 3
9 3
9 11
9 12
9 1000
8 11

Output:
Bob
Limak
Limak
Bob
Bob
Limak
Limak
Bob
Bob
Bob

-----Explanation-----
Test case 1. We have A = 3 and B = 2. Limak eats 1 candy first, and then Bob eats 2 candies. Then Limak is supposed to eat 3 candies but that would mean 1 + 3 = 4 candies in total. It's impossible because he can eat at most A candies, so he loses. Bob wins, and so we print "Bob".
Test case 2. Now we have A = 4 and B = 2. Limak eats 1 candy first, and then Bob eats 2 candies, then Limak eats 3 candies (he has 1 + 3 = 4 candies in total, which is allowed because it doesn't exceed A). Now Bob should eat 4 candies but he can't eat even a single one (he already ate 2 candies). Bob loses and Limak is the winner.
Test case 8. We have A = 9 and B = 12. The game looks as follows:
- Limak eats 1 candy.
- Bob eats 2 candies.
- Limak eats 3 candies (4 in total).
- Bob eats 4 candies (6 in total).
- Limak eats 5 candies (9 in total).
- Bob eats 6 candies (12 in total).
- Limak is supposed to eat 7 candies but he can't — that would exceed A. Bob wins.

Starter code:

Solutions:
for t in range(int(input())):
 limakMax, bobMax = list(map(int, input().split()))
 limakEat = 0; bobEat = 0
 eating = 1
 while limakEat <= limakMax or bobEat <= bobMax:

  if eating % 2 != 0 and limakEat <= limakMax:
   limakEat += eating
   eating += 1
   if limakEat > limakMax:
    print("Bob")
    break
  elif eating % 2 == 0 and bobEat <= bobMax:
   bobEat += eating
   eating += 1
   if bobEat > bobMax:
    print("Limak")
    break



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

for t in range(T):
 n = 1
 b = 0
 l = 0
 llimit, blimit = input().split()
 blimit = int(blimit)
 llimit = int(llimit)
 
 while True:
  if n % 2 == 0:
   if b + n <= blimit:
    b += n
    n += 1
   else:
    print("Limak")
    break
  else:
   if l + n <= llimit:
    l += n
    n += 1
   else:
    print("Bob")
    break


# cook your dish here
for i in range(int(input())):
 a,b=list(map(int,input().split()))
 limak,bob=0,0
 winner=''
 i=1
 while(i<10000):
  if i%2!=0:
   limak+=i
   if limak>a:
    winner='Bob'
    break
  else:
   bob+=i
   if bob>b:
    winner='Limak'
    break
  i+=1
 print(winner)


t=int(input())
for i in range(t):
 a,b=list(map(int,input().split()))
 n=1
 m=2
 k=0
 l=0
 while n<=a:
  k+=1
  a-=n
  n+=2
 while m<=b:
  l+=1
  b-=m
  m+=2
 if k==l:
  print("Bob")
 elif k<l:
  print("Bob")
 elif k>l:
  print("Limak")


# cook your dish here
x = int(input())
for i in range(x):
 a, b = map(int, input().split())
 n = 1
 m = 2
 k = 0
 l = 0
 while n<=a:
  k += 1
  a -= n
  n += 2
 while m<=b:
  l += 1
  b -= m
  m += 2
 if k==l:
  print("Bob")
 elif k<l:
  print("Bob")
 elif k>l:
  print("Limak")

# cook your dish here
t=int(input())
for i in range(t):
 a,b=map(int,input().split())
 l=1
 m=2
 flag=0
 n=3
 while l<=a and m<=b:
  if flag==0:
   l=l+n
   flag=1
   n=n+1
  else:
   m=m+n
   flag=0
   n=n+1
 if l>a:
  print("Bob")
 else:
  print("Limak")

# Program to print the winner of the candy party among limak and Bob


def winner(a, b):
 sumodd, sumeven = 0, 0
 even = 0
 if (a >= 1) and (a <= 1000) and (b <= 1000) and (b >= 1):
  for i in range(500):
   if sumodd > a:
    return 'Bob'
   if sumeven > b:
    return 'Limak'
   even += 2
   sumeven += even
   sumodd += even-1
 else:
  print("Enter a valid value of a and b.")


T = int(input())
mylist = []
if (T >= 1) and (T <= 1000):
 for i in range(T):
  a, b = input().split(' ')
  mylist.append([int(a), int(b)])
else:
 print("Enter a valid limit")

for i in range(T):
 print(winner(mylist[i][0], mylist[i][1]))




# cook your dish here
def gcd(x, y):
 while y:
  x, y = y, x % y
 return x

def lcm(x, y):
 return (x*y)//(gcd(x,y))

def isPrime(n) : 
 if (n <= 1) : 
  return False
 if (n <= 3) : 
  return True
 if (n % 2 == 0 or n % 3 == 0) : 
  return False
 i = 5
 while(i * i <= n) : 
  if (n % i == 0 or n % (i + 2) == 0) : 
   return False
  i = i + 6
 return True

abc="abcdefghijklmnopqrstuvwxyz"

pi=3.141592653589793238

#n = int(input())
#arr = list(map(int,input().split()))

t = int(input())
for _ in range(t):
 a,b = list(map(int,input().split()))
 i = 1
 while(1):
  a=a-i
  if(a<0):
   flag = False
   break
  i = i+1
  b=b-i
  if(b<0):
   flag = True
   break
  i = i+1
 
 if(not flag):
  print('Bob')
 else:
  print('Limak')
 
 
 
#Output:
# Bob
# Limak
# Limak
# Bob
# Bob
# Limak
# Limak
# Bob
# Bob
# Bob



# cook your dish here
for _ in range(int(input())):
 a,b=map(int,input().split())
 i=1
 limak=bob=0
 while True:
  limak+=i
  bob+=i+1
  i+=2
  if limak>a:
   print('Bob')
   break
  elif bob>b:
   print('Limak')
   break

# cook your dish here
t = int(input())
for i in range(t):
 a,b = map(int,input().split())
 li=bo=0
 c=1
 while True:
  #print(li,bo)
  li=li+c 
  bo=bo+c+1 
  c+=2
  if li>a:
   print("Bob") 
   break
  elif bo>b:
   print("Limak")
   break

for t in range(int(input())):
 a,b=map(int, input().split())
 for i in range(1,501,2):
  a-=i
  if a<0:
   print("Bob")
   break
  b-=(i+1)
  if b<0:
   print("Limak")
   break

t=int(input())
while t>0:
 l,b=map(int,input().split(" ")) 
 li=bo=0
 c=1
 while True:
  #print(li,bo)
  li=li+c 
  bo=bo+c+1 
  c+=2
  if li>l:
   print("Bob") 
   break
  elif bo>b:
   print("Limak")
   break
 t-=1

t=int(input())

while(t):
 ll=[]
 lb=[]
 cl=0
 cb=0
 a,b=input().split()
 a=int(a)
 b=int(b)

 for i in range(1,a+1,2):
   ll.append(i)
   if sum(ll)>a:
    ll.remove(i)
    break
 for i in range(2,b+1,2):
   lb.append(i)
   if sum(lb)>b:
    lb.remove(i)
    break
 #print(ll,"\n",lb)
 if len(ll)>len(lb):
  print("Limak")
 else:
  print("Bob")
 t=t-1



t=int(input())
i=0
while i<t:
 a,b=input().split()
 a=int(a)
 b=int(b)
 ai=1
 ae=1
 bi=2
 be=2
 while True:
  if ae<=a:
   ai+=2
   ae+=ai
  else:
   print("Bob")
   break
  if be<=b:
   bi+=2
   be+=bi
  else:
   print("Limak")
   break
 i+=1

for O in range(int(input())):
 LA,BA=map(int,input().split())
 A,C=1,0
 while(True):
  if(LA>=A):
   LA-=A
   A+=1
   C+=1
  else:
   break
  if(BA>=A):
   BA-=A
   A+=1
   C+=1
  else:
   break
 if(C%2!=0):
  print("Limak")
 else:
  print("Bob")

a=int(input())
while a:
 a=a-1
 b,c=list(map(int,input().split()))
 l=0
 t=0
 k=1
 h=2
 while 1:
  if l+k>b:
   print("Bob")
   break
  elif t+h>c:
   print("Limak")
   break
  else:
   l=l+k 
   t=t+h
   k=k+2
   h=h+2
   
   


# cook your dish here
t=int(input())
for i in range(t):
 n1,n2=map(int,input().split())
 b=0
 l=0
 c=1
 while 1:
  if c%2==0:
   l=l+c
  else:
   b=b+c
  if b>n1:
   print("Bob")
   break
  else:
   if l>n2:
    print("Limak")
    break
  c=c+1

import math
for _ in range(int(input())):
 A,B = map(int,input().split(" "))
 c = 0
 d = 0
 sum = 0
 sum1 = 0
 for n in range(1,A+1,2):
  sum+=n
  if(sum<=A):
   c+=1
 for m in range(2,B+1,2):
  sum1+=m
  if(sum1<=B):
   d+=1
 #print(c,d)
 if(c>d):
  print("Limak")
 else:
  print("Bob")

# cook your dish here
for _ in range(int(input())):
 a,b=list(map(int,input().split()))
 l=b1=0
 for i in range(1,1000,2):
  l+=i
  if(l>a):
   print("Bob")
   break
  b1=b1+i+1
  if(b1>b):
   print("Limak")
   break
  


# cook your dish here
for j in range(int(input())):
 l,b=map(int,input().split())
 c=0
 i=1
 while l>-1 and b>-1:
  if c==0:
   l=l-i
   i=i+1 
   c=1
  else:
   b=b-i
   i=i+1
   c=0
 if l<0:
  print("Bob")
 else:
  print("Limak")

t=int(input())
for i in range (t):
 a, b=list(map(int,input().split()))
 m=1
 n=2
 while(1):
  if(a<m):
   print('Bob')
   break
  elif(b<n):
   print('Limak')
   break
  a=a-m
  b=b-n
  m=m+2
  n=n+2


# cook your dish here
t=int(input())
for j in range(t):
 l,b=list(map(int,input().split()))
 c=0
 i=1
 while l>-1 and b>-1:
  if c==0:
   l=l-i
   i=i+1 
   c=1
  else:
   b=b-i
   i=i+1
   c=0
 if l<0:
  print("Bob")
 else:
  print("Limak")
   
  


# cook your dish here
n=int(input())
for i in range(0,n):
 (l,b)=map(int,input().split(" "))
 lcandie=0
 bcandie=0
 for a in range(1,1000):
  if(a%2==1):
   lcandie+=a
   if(lcandie>l):
    print("Bob")
    break
  else:
   bcandie+=a
   if(bcandie>b):
    print("Limak")
    break

# cook your dish here
t=int(input())
for ts in range(t):
 x,y=list(map(int,input().split()))
 a=1
 b=2
 while(1):
  if(x<a):
   print('Bob')
   break
  elif(y<b):
   print('Limak')
   break
  x-=a
  y-=b
  a+=2
  b+=2


# cook your dish here
t=int(input())
for ts in range(t):
 x,y=map(int,input().split())
 a=1
 b=2
 while(1):
  if(x<a):
   print('Bob')
   break
  elif(y<b):
   print('Limak')
   break
  x-=a
  y-=b
  a+=2
  b+=2