#include <bits/stdc++.h>
using namespace std;
const long long XN = 1e5 + 7, Md = 1e9 + 7;
long long q, n, m, R[60], L[60], flg1, flg2, x;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  cin >> q;
  while (q--) {
    cin >> n >> m;
    fill(R, R + 60, 0);
    fill(L, L + 60, 0);
    flg1 = 0;
    flg2 = 0;
    for (int i = 0; i < n; ++i) {
      for (int j = 0; j < m; ++j) {
        cin >> x;
        if (x) R[i] = 1, L[j] = 1;
      }
    }
    for (int i = 0; i < n; ++i) {
      if (!R[i]) ++flg1;
    }
    for (int i = 0; i < m; ++i) {
      if (!L[i]) ++flg2;
    }
    if (min(flg1, flg2) % 2 == 0)
      cout << "Vivek\n";
    else
      cout << "Ashish\n";
  }
  return 0;
}
