#include <bits/stdc++.h>
using namespace std;
vector<vector<long long> > adj;
vector<long long> vis;
void dfs(long long src) {
  vis[src]++;
  for (auto i : adj[src]) {
    if (vis[i] == 0) {
      dfs(i);
      vis[src] += vis[i];
    }
  }
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t;
  cin >> t;
  while (t--) {
    long long n, x;
    cin >> n >> x;
    long long u, v;
    adj = vector<vector<long long> >(n + 1);
    vis = vector<long long>(n + 1);
    for (long long i = 0; i < n - 1; i++) {
      cin >> u >> v;
      adj[u].push_back(v);
      adj[v].push_back(u);
    }
    if (adj[x].size() <= 1) {
      cout << "Ayush\n";
      continue;
    }
    long long tmp = n - 1;
    if (tmp & 1)
      cout << "Ayush\n";
    else
      cout << "Ashish\n";
  }
}
