#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cout.setf(ios::fixed);
  cout.precision(20);
  int T;
  cin >> T;
  while (T--) {
    int n, x;
    cin >> n >> x;
    vector<int> deg(n + 10, 0);
    for (int i = 1; i < n; i++) {
      int u, v;
      cin >> u >> v;
      deg[u]++, deg[v]++;
    }
    if (deg[x] <= 1) {
      cout << "Ayush\n";
      continue;
    }
    cout << (n & 1 ? "Ashish" : "Ayush") << "\n";
  }
}
