#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t;
  cin >> t;
  while (t--) {
    long long n, m;
    cin >> n >> m;
    vector<vector<long long>> a(n, vector<long long>(m));
    set<long long> r, c;
    for (long long i = 0; i < n; i++) {
      for (long long j = 0; j < m; j++) {
        cin >> a[i][j];
        if (a[i][j] == 1) {
          r.insert(i);
          c.insert(j);
        }
      }
    }
    long long x = n - r.size(), y = m - c.size();
    long long k = min(x, y);
    if (k % 2 == 0) {
      cout << "Vivek\n";
    } else
      cout << "Ashish\n";
  }
  return 0;
}
