#include <bits/stdc++.h>
using namespace std;
void solve() {
  int i, j, n, x, u, v, k;
  cin >> n >> x;
  vector<int> adj[n + 1];
  for (i = 0; i < n - 1; i++) {
    cin >> u >> v;
    adj[u].push_back(v);
    adj[v].push_back(u);
  }
  k = adj[x].size();
  if (k <= 1) {
    cout << "Ayush\n";
    return;
  }
  if ((n - 1) % 2 == 0)
    cout << "Ashish\n";
  else
    cout << "Ayush\n";
}
int main() {
  int t;
  cin >> t;
  while (t--) solve();
  return 0;
}
