harbor run -t openthoughts/tasktrove-nemotron-gym-competitive-coding-comp-coding-cabd7f46a470.tar.gzharbor download openthoughts/tasktrove-nemotron-gym-competitive-coding-comp-coding-cabd7f46a470.tar.gzYou are solving a competitive programming problem. Read the problem below and write a Python 3 solution at /app/solution.py.
The verifier will run python3 /app/solution.py once per test case, feeding each test's input on stdin and comparing your stdout against the expected output (trailing whitespace ignored). All test cases must match.
You are a helpful and harmless assistant. You should think step-by-step before responding to the instruction below.
Please use python programming language only.
You must use ```python for just the final solution code block with the following format:
# Your code here
Jeel and Ashish play a game on an n × m matrix. The rows are numbered 1 to n from top to bottom and the columns are numbered 1 to m from left to right. They play turn by turn. Ashish goes first.
Initially, each cell of the matrix contains a non-negative integer. Each turn, a player must perform all of the following actions in order.
If the starting and ending cells are the same, then as per the rules, the value of the cell is decreased. No other operations are performed.
The game ends when all the values become zero. The player who is unable to make a move loses. It can be shown that the game will end in a finite number of moves if both players play optimally.
Given the initial matrix, if both players play optimally, can you predict who will win?
Input
The first line contains a single integer t (1 ≤ t ≤ 10) — the number of test cases. The description of each test case is as follows.
The first line of each test case contains two integers n and m (1 ≤ n, m ≤ 100) — the dimensions of the matrix.
The next n lines contain m space separated integers a_{i,j} (0 ≤ a_{i,j} ≤ 10^6) — the values of each cell of the matrix.
Output
For each test case, if Ashish wins the game, print "Ashish", otherwise print "Jeel" (without the quotes).
Example
Input
4 1 1 0 1 3 0 0 5 2 2 0 1 1 0 3 3 1 2 3 4 5 6 7 8 9
Output
Jeel Ashish Jeel Ashish
Note
In the first test case, the only cell of the matrix is 0. There are no moves Ashish can make. Jeel is the winner.
In the second test case, Ashish can choose (r_1, c_1) = (r_2, c_2) = (1,3) and reduce the cell to 0, leaving [0, 0, 0]. Jeel cannot perform any moves. Ashish wins.