/*
after dusk passed,
there is a starry sky.
*/
#include <bits/stdc++.h>
#define inf 0x3f3f3f3f
#define m_k make_pair
using namespace std;
const int N=210;
int t,n,m,a[N][N],sum[N];
inline int read()
{
	int f=1,x=0;char s=getchar();
	while(s<'0'||s>'9'){if(s=='-')f=-1;s=getchar();}
	while(s>='0'&&s<='9'){x=x*10+s-'0';s=getchar();}
	return x*f;
}
signed main()
{
	t=read();
	while (t--)
	{
		n=read();m=read();
		for (int i=1;i<=n+m;i++) sum[i]=0;
		for (int i=1;i<=n;i++) for (int j=1;j<=m;j++) sum[i+j]^=read();
		bool bl=1;
		for (int i=1;i<=n+m;i++) if (sum[i]) bl=0;
		if (!bl) printf("Ashish\n");
		else printf("Jeel\n");
	}
}
		  			 	 		 	 	 	 	  	   	  		