#include <bits/stdc++.h>
using namespace std;

const int N = 100 + 5;

int n, m, xorsum[N << 1];

signed main() {
    int T;
    cin >> T;
    while (T--) {
        cin >> n >> m;
        memset(xorsum, 0, sizeof(xorsum));
        for (int i = 1, x; i <= n; ++i)
            for (int j = 1; j <= m; ++j)
                cin >> x, xorsum[i + j] ^= x;
            bool flag = 1;
            for (int i = 2; i <= n + m; ++i) flag &= (xorsum[i] == 0);
            puts(flag ? "Jeel" : "Ashish");
    }
    return 0;
}