#include <bits/stdc++.h>
using namespace std;
int arr[55][55];
int n, m;
int main() {
  int t;
  cin >> t;
  while (t--) {
    cin >> n >> m;
    for (int i = 0; i < n; i++)
      for (int j = 0; j < m; j++) cin >> arr[i][j];
    int r = 0, c = 0;
    for (int i = 0; i < n; i++) {
      int ok = 1;
      for (int j = 0; j < m; j++) ok &= (arr[i][j] == 0);
      r += ok;
    }
    for (int i = 0; i < m; i++) {
      int ok = 1;
      for (int j = 0; j < n; j++) ok &= (arr[j][i] == 0);
      c += ok;
    }
    cout << (min(r, c) % 2 ? "Ashish" : "Vivek") << endl;
  }
}
