Ashish and Jeel are playing a game. They are given two piles of coins with
You are given
Input format
- First line: An integer
denoting the number of test cases - Next
lines: Two integers and
Output format
For each test case, print the winner of the game "Ashish" or "Jeel" (without quotes).
Answer for each test case should come in a new line.
Input Constraints
3 1 1 1 2 2 2
Jeel Ashish Ashish
In the first case, Ashish has no possible moves because both the piles are of size 1, hence Jeel wins.
In the other 2 cases, Ashish can take the pile of size 2 and split it into (1, 1) and discard the other pile. Jeel cannot make any move on (1, 1) piles, so Ashish wins.
Please login to use the editor
You need to be logged in to access the code editor
Login to unlock the editorial
Please login to use the editor
You need to be logged in to access the code editor