Pawners

Two pawners, Alice and Bob, are struggling for the same piece of the market. Each pawner has some money to survive, but both are losing part of their money every day. If one of them loses all their money, they will be considered out of the market.

Input

The input starts with the number of test cases T1000T \leq 1000. For each test case, there are four integers AA, BB, CaC_a and CbC_b that correspond to the money of Alice and Bob, and the daily cost for Alice and Bob, respectively.

Constraints

Output

For each test case, output in a new line the survivor (Alice or Bob), Both or None.

In the first example, they start with 5, the first day Alice has 4 while Bob has 3, the second day they have 3 and 1, and the last day Alice has 2 while Bob loses all his money.

In the second example, Alice and Bob lose all their money on the second day, so the answer is None.

In the third example, nobody is losing money so Both are survivors.

Problem information

Author: Javier Segovia

Generation: 2026-01-25T22:49:15.114Z

© Jutge.org, 2006–2026.
https://jutge.org