#include <bits/stdc++.h>
using namespace std;
int main() {
  int tc;
  cin >> tc;
  while (tc--) {
    int n, x;
    cin >> n >> x;
    vector<int> vect[n + 1];
    for (int i = 1; i <= n - 1; i++) {
      int u, v;
      cin >> u >> v;
      vect[u].push_back(v);
      vect[v].push_back(u);
    }
    if (n == 1 || vect[x].size() == 1)
      cout << "Ayush" << endl;
    else {
      if (n % 2 == 0)
        cout << "Ayush" << endl;
      else
        cout << "Ashish" << endl;
    }
  }
}
