#include<bits/stdc++.h>
using namespace std;
const int maxn=1e2+5;
int t,n,m;
int f[maxn<<1];
int main()
{
    cin.tie(0); cout.tie(0);
    ios::sync_with_stdio(0);
    cin>>t;
    while(t--){
        memset(f,0,sizeof(f));
        cin>>n>>m;
        for(int i=1;i<=n;++i){
            for(int j=1;j<=m;++j){
                int x;
                cin>>x;
                f[i+j]^=x;
            }
        }
        int ans=0;
        for(int i=2;i<=n+m;++i){
            ans|=f[i];
        }
        if(ans) cout<<"Ashish"<<endl;
        else cout<<"Jeel"<<endl;
    }
    return 0;
}
