#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
using namespace std;
int main() {
  long long i, t, z, j, ans, n, m, temp, l, r, flag, k, co, t1, t2;
  cin >> t;
  for (z = 0; z < t; z++) {
    cin >> n >> m;
    ans = co = 0;
    long long a1[n], a2[m], mat[n][m];
    memset(a1, 0, sizeof(a1));
    memset(a2, 0, sizeof(a2));
    for (i = 0; i < n; i++) {
      for (j = 0; j < m; j++) cin >> mat[i][j];
    }
    for (i = 0; i < n; i++) {
      co = 0;
      for (j = 0; j < m; j++) {
        co += mat[i][j];
      }
      a1[i] = co;
    }
    for (i = 0; i < m; i++) {
      co = 0;
      for (j = 0; j < n; j++) {
        co += mat[j][i];
      }
      a2[i] = co;
    }
    t1 = t2 = 0;
    for (i = 0; i < n; i++) {
      if (a1[i] == 0) t1++;
    }
    for (i = 0; i < m; i++) {
      if (a2[i] == 0) t2++;
    }
    ans = min(t1, t2);
    if (ans % 2 == 0)
      cout << "Vivek"
           << "\n";
    else
      cout << "Ashish"
           << "\n";
  }
  return 0;
}
