#include<bits/stdc++.h>
using namespace std;
#define Ri register
template<typename T>inline T read(Ri T&t)
{Ri T f=1;Ri char ch=getchar();t=0;
while(ch<'0'||ch>'9'){if(ch=='-')f=-f;ch=getchar();}
while(ch>='0'&&ch<='9')t=t*10+ch-'0',ch=getchar();t*=f;return t;}
template<typename T,typename...Args>
inline void read(T&t,Args&...args)
{read(t);read(args...);}
const long long p=998244353;
inline long long power(Ri long long x,Ri long long k=p-2)
{Ri long long re=1;for(;k;k>>=1,x=x*x%p)if(k&1)re=re*x%p;return re;}
int n,m;
int sum[205];
int main()
{
	int T;read(T);while(T--)
	{
		read(n,m);
		memset(sum,0,sizeof(sum));
		for(int i=1;i<=n;i++)
			for(int j=1,x;j<=m;j++)
				read(x),
				sum[i+j]^=x;
		bool flag=0;
		for(int i=1;i<=n+m;i++)
			if(sum[i])
				flag=1;
		if(flag)printf("Ashish\n");
		else printf("Jeel\n");
	}
	return 0;
}
