#include <bits/stdc++.h>
using namespace std;
int main(){
	ios::sync_with_stdio(0);
	cin.tie(0); cout.tie(0);
	int T; cin >> T; 
	while(T--){
		int X[210] = {}; 
		int N, M; cin >> N >> M; 
		for(int i = 0; i < N; i++){
			for(int j = 0; j < M; j++){
				int a; cin >> a; 
				X[i+j] ^= a; 
			}
		}
		bool ok = true; 
		for(int i = 0; i < N+M-1; i++){
			if(X[i]) ok = false; 
		}
		cout << (ok ? "Jeel\n" : "Ashish\n"); 
	}
}