#include <bits/stdc++.h>
using namespace std;
const long long N = 2e5 + 5;
long long n, x;
long long deg[N];
vector<long long> g[N];
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long t;
  cin >> t;
  while (t--) {
    memset(deg, 0, sizeof(deg));
    cin >> n >> x;
    for (long long i = 1; i <= n - 1; i++) {
      long long u, v;
      cin >> u >> v;
      deg[u]++, deg[v]++;
    }
    if (deg[x] <= 1)
      cout << "Ayush"
           << "\n";
    else {
      if (n % 2)
        cout << "Ashish"
             << "\n";
      else
        cout << "Ayush"
             << "\n";
    }
  }
  return 0;
}
