#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  cin >> t;
  while (t--) {
    long long n, x;
    cin >> n >> x;
    long long deg[1005] = {};
    for (long long i = 1; i < n; i++) {
      long long u, v;
      cin >> u >> v;
      deg[u]++, deg[v]++;
    }
    if (n == 1 || deg[x] == 1)
      cout << "Ayush\n";
    else {
      if (n % 2)
        cout << "Ashish\n";
      else
        cout << "Ayush\n";
    }
  }
  cerr << "Time elapsed: " << 1.0 * clock() / CLOCKS_PER_SEC << " sec \n";
  return 0;
}
