#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  int64_t tt = 1, m, n, x, y, q, sum = 0, ans = 0, i, j, k, temp, t;
  cin >> tt;
  while (tt--) {
    cin >> n >> m;
    int64_t arr[n + 1][m + 1];
    set<int64_t> row, col;
    for (int64_t i = 1; i <= n; i++) row.insert(i);
    for (int64_t i = 1; i <= m; i++) col.insert(i);
    for (int64_t i = 1; i <= n; i++) {
      for (int64_t j = 1; j <= m; j++) {
        cin >> arr[i][j];
        if (arr[i][j] == 1) {
          if (row.count(i)) row.erase(i);
          if (col.count(j)) col.erase(j);
        }
      }
    }
    int64_t sz = min(row.size(), col.size());
    if (sz % 2 == 0) {
      cout << "Vivek";
    } else
      cout << "Ashish";
    cout << '\n';
  }
  return 0;
}
