#include <bits/stdc++.h>
using namespace std;
template <class T>
bool ckmin(T& a, const T& b) {
  return b < a ? a = b, 1 : 0;
}
template <class T>
bool ckmax(T& a, const T& b) {
  return a < b ? a = b, 1 : 0;
}
long long dp[200005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t;
  cin >> t;
  string s1 = "Ashish";
  string s2 = "Vivek";
  while (t--) {
    long long n, m;
    cin >> n >> m;
    long long arr[n][m];
    long long row[n], col[m];
    memset(row, 0, sizeof(row));
    memset(col, 0, sizeof(col));
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        cin >> arr[i][j];
        if (arr[i][j] == 1) {
          row[i] = 1;
          col[j] = 1;
        }
      }
    }
    long long cnt1 = 0, cnt2 = 0;
    for (int i = 0; i < n; i++) {
      if (row[i] == 0) {
        cnt1++;
      }
    }
    for (int j = 0; j < m; j++) {
      if (col[j] == 0) {
        cnt2++;
      }
    }
    long long val = min(cnt1, cnt2);
    cout << ((val) % 2 == 0 ? s2 : s1) << "\n";
  }
  return 0;
}
