#include <bits/stdc++.h>
#ifdef LOCAL
#include "debuger.hpp"
#else
#define DUMP(...) 1145141919810
#define CHECK(...) (__VA_ARGS__)
#endif

int main() {
  int cas;
  scanf("%d", &cas);
  while (cas--) {
    int n, m;
    scanf("%d%d", &n, &m);
    std::vector<int> a(n + m - 1);
    for (int i = 0; i < n; ++i) {
      for (int j = 0; j < m; ++j) {
        int x;
        scanf("%d", &x);
        a[i + j] ^= x;
      }
    }
    bool first = false;
    for (int x : a) first |= x > 0;
    puts(first ? "Ashish" : "Jeel");
  }
}
