#include <bits/stdc++.h>

using namespace std;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int tt;
  cin >> tt;
  while (tt--) {
    int n, m;
    cin >> n >> m;
    vector<int> x(n + m);
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        int r;
        cin >> r;
        x[i + j] ^= r;
      }
    }
    int mx = *max_element(x.begin(), x.end());
    cout << (mx == 0 ? "Jeel" : "Ashish") << '\n';
  }
  return 0;
}
