#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef pair<ll,ll> ii;
typedef vector<int> vi;

#define fi first
#define se second
#define mp make_pair
#define pb push_back

#define unrequited_love ios_base::sync_with_stdio(0);cin.tie(0);

int a[111][111];
int b[555];

int main()
{
	unrequited_love
	int t; cin>>t;
	while(t--)
	{
		int n,m; cin>>n>>m;
		memset(b,0,sizeof(b));
		for(int i=0;i<n;i++)
		{
			for(int j=0;j<m;j++)
			{
				cin>>a[i][j];
				b[i+j]^=a[i][j];
			}
		}
		ll sum=0;
		for(int i=0;i<=n+m;i++) sum+=b[i];
		cout<<(sum==0?"Jeel":"Ashish")<<'\n';
	}
}
