#include <bits/stdc++.h>
using namespace std;
vector<int> g[1001];
void solve() {
  int t;
  int n, x;
  cin >> n >> x;
  for (int i = 0; i < n - 1; i++) {
    int u, v;
    cin >> u >> v;
    g[u].emplace_back(v);
    g[v].emplace_back(u);
  }
  if (g[x].size() <= 1)
    cout << "Ayush\n";
  else if (n == 3)
    cout << "Ashish\n";
  else if ((n - 3) % 2 == 0)
    cout << "Ashish\n";
  else
    cout << "Ayush\n" << '\n';
  for (int i = 0; i <= n; i++) g[i].clear();
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int q = 1;
  cin >> q;
  for (int kase = 1; kase <= q; kase++) {
    solve();
  }
  return 0;
}
