#include <bits/stdc++.h>
using namespace std;
int n, m, t, x, ans, l[55], r[55];
int main() {
  cin >> t;
  while (t--) {
    cin >> n >> m;
    memset(l, 0, sizeof(l));
    memset(r, 0, sizeof(r));
    for (int i = 1; i <= n; i++)
      for (int j = 1; j <= m; j++) {
        scanf("%d", &x);
        if (x) {
          l[i] = 1;
          r[j] = 1;
        }
      }
    l[0] = n;
    r[0] = m;
    for (int i = 1; i <= n; i++) l[0] -= l[i];
    for (int j = 1; j <= m; j++) r[0] -= r[j];
    ans = min(l[0], r[0]);
    if (ans % 2)
      cout << "Ashish" << endl;
    else
      cout << "Vivek" << endl;
  }
}
