#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int T;
  cin >> T;
  while (T--) {
    int N, X;
    cin >> N >> X;
    X--;
    vector<vector<int>> adj(N);
    for (int e = 0; e < N - 1; e++) {
      int u, v;
      cin >> u >> v;
      u--, v--;
      adj[u].push_back(v);
      adj[v].push_back(u);
    }
    if (adj[X].size() <= 1 || (N - 1) % 2 == 1) {
      cout << "Ayush" << '\n';
    } else {
      cout << "Ashish" << '\n';
    }
  }
  return 0;
}
