#include <bits/stdc++.h>
using namespace std;
int tab[55][55];
int main() {
  int t;
  cin >> t;
  set<int> x, y;
  while (t--) {
    x.clear();
    y.clear();
    int n, m;
    cin >> n >> m;
    for (int i = 1; i <= n; i++)
      for (int j = 1; j <= m; j++) {
        cin >> tab[i][j];
        if (tab[i][j]) {
          x.insert(i);
          y.insert(j);
        }
      }
    int mn = min(n - x.size(), m - y.size());
    if (mn % 2)
      cout << "Ashish" << endl;
    else
      cout << "Vivek" << endl;
  }
  return 0;
}
