Alice is driving from her home to her office which is A kilometers away and will take her X hours to reach.  
Bob is driving from his home to his office which is B kilometers away and will take him Y hours to reach.

Determine who is driving faster, else, if they are both driving at the same speed print EQUAL.

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

- The first line will contain T, the number of test cases. Then the test cases follow.
- Each test case consists of a single line of input, containing four integers A,X,B, and Y, the distances and and the times taken by Alice and Bob respectively.

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

For each test case, if Alice is faster, print ALICE. Else if Bob is faster, print BOB. If both are equal, print EQUAL.

You may print each character of the string in uppercase or lowercase (for example, the strings equal, equAL, EquAl, and EQUAL will all be treated as identical).

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

$1 ≤ T ≤ 1000$
$1 ≤ A,X,B,Y ≤ 1000$

----- Sample Input 1 ------ 
3
20 6 20 5
10 3 20 6
9 1 1 1

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

----- explanation 1 ------ 
Test case $1$: Since Bob travels the distance between his office and house in $5$ hours, whereas Alice travels the same distance of $20$ kms in $6$ hours, BOB is faster.

Test case $2$: Since Alice travels the distance of $10$ km between her office and house in $3$ hours and Bob travels a distance of $20$ km in $6$ hours, they have equal speeds.

Test case $3$: Since Alice travels the distance of $9$ km between her office and house in $1$ hour and Bob travels only a distance of $1$ km in the same time, ALICE is faster.

Difficulty: EASY
Tags: Mathematics

Starter code:

Solutions:
n = int(input())
for i in range(0, n):
	(a, b, c, d) = list(map(int, input().split()))
	x = a / b
	y = c / d
	if x == y:
		print('Equal')
	elif x > y:
		print('Alice')
	else:
		print('Bob')


t = int(input())
for i in range(t):
	(a, x, b, y) = map(int, input().split())
	sa = a / x
	sb = b / y
	if sa > sb:
		print('Alice')
	elif sa < sb:
		print('Bob')
	else:
		print('Equal')


t = int(input())
for i in range(t):
	(A, X, B, Y) = map(int, input().split())
	a = A / X
	b = B / Y
	if a > b:
		print('Alice')
	elif b > a:
		print('Bob')
	else:
		print('Equal')


t = int(input())
for i in range(t):
	(w, x, y, z) = map(int, input().split())
	a = w / x
	b = y / z
	if a == b:
		print('Equal')
	elif a > b:
		print('Alice')
	else:
		print('Bob')


T = int(input())
for z in range(T):
	H = input().split()
	A = int(H[0])
	X = int(H[1])
	B = int(H[2])
	Y = int(H[3])
	if A / X > B / Y:
		print('Alice')
	elif A / X < B / Y:
		print('Bob')
	else:
		print('Equal')


t = int(input())
for _ in range(t):
	(a, x, b, y) = map(int, input().split(' '))
	speed = lambda a, x, b, y: 'Alice' if a / x > b / y else 'Bob' if a / x < b / y else 'Equal'
	print(speed(a, x, b, y))


t = int(input())
for i in range(t):
	(a, x, b, y) = map(int, input().split())
	c = a / x
	d = b / y
	if c > d:
		print('Alice')
	elif c == d:
		print('Equal')
	else:
		print('Bob')


test_case = int(input())
for i in range(0, test_case):
	(a, x, b, y) = map(int, input().split())
	if a / x > b / y:
		print('Alice')
	elif b / y > a / x:
		print('Bob')
	else:
		print('Equal')


t = int(input())
for i in range(t):
	(a, x, b, y) = map(int, input().split())
	n = a / x
	m = b / y
	if n > m:
		print('Alice')
	elif n == m:
		print('Equal')
	else:
		print('Bob')


for _ in range(int(input())):
	(a, x, b, y) = map(int, input().split())
	if a / x > b / y:
		print('Alice')
	elif a / x < b / y:
		print('Bob')
	else:
		print('Equal')


import math
for _ in range(int(input())):
	(a, x, b, y) = map(int, input().split())
	p = a / x
	q = b / y
	if p > q:
		print('Alice')
	elif p < q:
		print('Bob')
	else:
		print('Equal')


t = int(input())
for i in range(0, t):
	(a, x, b, y) = map(int, input().split())
	alice = a / x
	bob = b / y
	if alice > bob:
		print('Alice')
	elif bob > alice:
		print('Bob')
	else:
		print('Equal')


def speed(a, x, b, y):
	p = a / x
	q = b / y
	if p > q:
		return 'Alice'
	elif p == q:
		return 'Equal'
	else:
		return 'Bob'
t = int(input())
for i in range(t):
	(a, x, b, y) = map(int, input().split())
	v = speed(a, x, b, y)
	print(v)


import math
for t in range(int(input())):
	(a, x, b, y) = map(int, input().split())
	s = a / x
	t = b / y
	if s < t:
		print('Bob')
	elif s > t:
		print('Alice')
	else:
		print('Equal')


T = int(input())
for i in range(0, T):
	(A, X, B, Y) = map(int, input().split())
	if A / X > B / Y:
		print('Alice')
	elif A / X < B / Y:
		print('Bob')
	else:
		print('Equal')


t = int(input())
for i in range(0, t):
	(a, x, b, y) = map(int, input().split())
	A = a / x
	B = b / y
	if A > B:
		print('Alice')
	elif B > A:
		print('Bob')
	else:
		print('Equal')


for i in range(int(input())):
	(a, x, b, y) = map(int, input().split())
	alice_Speed = a / x
	bob_Speed = b / y
	if alice_Speed < bob_Speed:
		print('Bob')
	elif alice_Speed > bob_Speed:
		print('Alice')
	else:
		print('Equal')


t = int(input())
for i in range(t):
	(a, x, b, y) = map(int, input().split())
	a1 = a / x
	b1 = b / y
	if a1 > b1:
		print('Alice')
	elif b1 > a1:
		print('Bob')
	else:
		print('Equal')


T = int(input())
for i in range(T):
	(X, Y, Z, A) = map(int, input().split())
	a = X / Y
	b = Z / A
	if a < b:
		print('Bob')
	elif b < a:
		print('Alice')
	else:
		print('Equal')