#C5571. Coin Collection Comparison

    ID: 49235 Type: Default 1000ms 256MiB

Coin Collection Comparison

Coin Collection Comparison

You are given two integers for each test case representing the number of coins that Adam and Ben possess. For a given test case with integers \(A\) and \(B\), your task is to determine who has more coins. Specifically, if \(A > B\) then the output should be "Adam", otherwise the output should be "Ben". Note that in the case where \(A = B\), the answer is "Ben".

Input Format: The first line contains the number of test cases \(T\). Each of the following \(T\) lines contains two space-separated integers \(A\) and \(B\) representing the coin counts.

Output Format: For each test case, output a single line with the result: either "Adam" if \(A > B\) or "Ben" otherwise.

inputFormat

The first line contains an integer \(T\), the number of test cases. Each of the next \(T\) lines contains two integers \(A\) and \(B\) separated by a space.

outputFormat

For each test case, output a single line with either "Adam" if \(A > B\), or "Ben" otherwise.

## sample
3
100 150
200 100
300 250
Ben

Adam Adam

</p>