Alice and Bob are playing a game of table tennis where irrespective of the point scored, every player makes 2 consecutive serves before the service changes. Alice makes the first serve of the match. Therefore the first 2 serves will be made by Alice, then the next 2 serves will be made by Bob and so on.

Let's consider the following example match for more clarity:
Alice makes the 1^{st} serve.
Let us assume, Bob wins this point. (Score is 0 for Alice and 1 for Bob)
Alice makes the 2^{nd} serve.
Let us assume, Alice wins this point. (Score is 1 for Alice and 1 for Bob)
Bob makes the 3^{rd} serve.
Let us assume, Alice wins this point. (Score is 2 for Alice and 1 for Bob)
Bob makes the 4^{th} serve.
Let us assume, Alice wins this point. (Score is 3 for Alice and 1 for Bob)
Alice makes the 5^{th} serve.
And the game continues \ldots

After the score reaches P and Q for Alice and Bob respectively, both the players forgot whose serve it is. Help them determine whose service it is.

------ Input Format ------ 

- The first line contains a single integer T — the number of test cases. Then the test cases follow.
- The first line of each test case contains two integers P and Q — the score of Alice and Bob respectively.

------ Output Format ------ 

For each test case, determine which player's (Alice or Bob) serve it is.

You may print each character of Alice and Bob in uppercase or lowercase (for example, Bob, BOB, boB will be considered identical).

------ Constraints ------ 

$1 ≤ T ≤ 200$
$0 ≤P, Q ≤10$

----- Sample Input 1 ------ 
4
0 0
0 2
2 2
4 7

----- Sample Output 1 ------ 
Alice
Bob
Alice
Bob

----- explanation 1 ------ 
- Test Case 1: Since no points have been scored yet, this is the first serve of the match. Alice makes the $1^{st}$ serve of the match. 
- Test Case 2: Two points have been scored yet. Thus, it is the third serve of the match. Bob makes the $3^{rd}$ serve of the match. 
- Test Case 3: Four points have been scored yet. Thus, it is the fifth serve of the match. Alice makes the $5^{th}$ serve of the match. 
- Test Case 4: Eleven points have been scored yet. Thus, it is the twelfth serve of the match. Bob makes the $12^{th}$ serve of the match.

Difficulty: EASY
Tags: Mathematics

Starter code:

Solutions:
t = int(input())
for _ in range(t):
	(a, b) = map(int, input().split())
	ans = a + b
	if ans % 4 == 0 or ans % 4 == 1:
		print('Alice')
	else:
		print('Bob')


for _ in range(int(input())):
	(P, Q) = map(int, input().split())
	print('Alice' if (P + Q) % 4 == 0 or (P + Q + 3) % 4 == 0 else 'Bob')


t = int(input())
for i in range(t):
	(p, q) = map(int, input().split())
	a = p + q
	if a % 4 == 1 or a % 4 == 0:
		print('Alice')
	else:
		print('Bob')


for _ in range(int(input())):
	(p, q) = map(int, input().split())
	if (p + q) % 4 == 0 or (p + q) % 4 == 1:
		print('Alice')
	else:
		print('Bob')


for i in range(int(input())):
	(m, d) = map(int, input().split())
	if (m + d) % 4 == 0 or (m + d) % 4 == 1:
		print('Alice')
	else:
		print('Bob')


t = int(input())
for i in range(t):
	(P, Q) = map(int, input().split())
	totalServe = P + Q
	if totalServe % 2 == 0 and totalServe % 4 == 0 or (totalServe % 2 != 0 and (totalServe + 1) % 4 != 0):
		print('Alice')
	elif totalServe % 2 == 0 and totalServe % 4 != 0 or ((totalServe + 1) % 2 == 0 and (totalServe + 1) % 4 == 0):
		print('Bob')
	else:
		pass


t = int(input())
while t > 0:
	(p, q) = map(int, input().split())
	if (p + q) // 2 % 2 == 0:
		print('Alice')
	else:
		print('Bob')
	t -= 1


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	a = x + y
	if a % 4 == 0 or a % 4 == 1:
		print('Alice')
	else:
		print('Bob')


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	z = x + y
	if z % 4 == 0 or z % 4 == 1:
		print('Alice')
	elif z % 4:
		print('Bob')


for i in range(int(input())):
	(a, b) = map(int, input().split())
	if (a + b) % 4 == 0 or (a + b) % 4 == 1:
		print('Alice')
	else:
		print('Bob')


for i in range(int(input())):
	(p, q) = map(int, input().split())
	if (p + q) % 4 == 0 or (p + q) % 4 == 1:
		print('Alice')
	elif (p + q) % 4 == 2 or (p + q) % 4 == 3:
		print('Bob')


serves = {0: 'Alice', 1: 'Bob'}
t = int(input())
for _ in range(t):
	(p, q) = map(int, input().split(' '))
	serving = (p + q) // 2 % 2
	print(serves[serving])


t = int(input())
for _ in range(t):
	(alice, bob) = map(int, input().split())
	total = sum([alice, bob])
	if total // 2 % 2 == 0:
		print('Alice')
	else:
		print('Bob')


t = int(input())
for i in range(t):
	(p, q) = map(int, input().split())
	if (p + q) // 2 % 2 == 0:
		print('Alice')
	else:
		print('Bob')


t = int(input())
for _ in range(t):
	(x, y) = map(int, input().split())
	c = x + y
	d = c // 2
	if d % 2 == 0:
		print('Alice')
	else:
		print('Bob')


T = int(input())
for i in range(T):
	(P, Q) = map(int, input().split())
	R = P + Q
	if R % 4 == 0 or R % 4 == 1:
		print('Alice')
	else:
		print('Bob')


T = int(input())
for i in range(T):
	(p, q) = map(int, input().split())
	k = p + q
	if k % 4 == 1 or k % 4 == 0:
		print('Alice')
	else:
		print('Bob')


T = int(input())
for T in range(0, T):
	(P, Q) = input().split()
	P = int(P)
	Q = int(Q)
	total = P + Q
	serve = []
	for X in range(0, total):
		serve.append('Alice')
		serve.append('Alice')
		serve.append('Bob')
		serve.append('Bob')
	if total != 0:
		print(serve[total])
	elif total == 0:
		print('Alice')


def my(x, y):
	if (x + y) % 4 == 0 or (x + y) % 4 == 1:
		return 'Alice'
	else:
		return 'Bob'
t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	v = my(x, y)
	print(v)


for i in range(int(input())):
	(p, q) = map(int, input().split())
	a = []
	for i in range(0, p + q + 1, 4):
		a.append(i)
		a.append(i + 1)
	for i in a:
		if p + q == i:
			print('Alice')
			break
	else:
		print('Bob')


def iseo(n):
	if n % 2 == 0:
		return True
	else:
		return False
nt = int(input())
for i in range(nt):
	(x, y) = map(int, input().split())
	if iseo(x + y + 1):
		if iseo((x + y + 1) / 2):
			print('Bob')
		else:
			print('Alice ')
	elif iseo((x + y + 2) / 2):
		print('Bob')
	else:
		print('Alice ')


bob = [0, 1, 4, 5, 8, 9, 12, 13, 16, 17, 20]
alice = [2, 3, 6, 7, 10, 11, 14, 15, 18, 19]
T = int(input())
for i in range(T):
	(p, q) = map(int, input().split())
	check = p + q
	if check in bob:
		print('Alice')
	else:
		print('Bob')