#include <bits/stdc++.h>
using namespace std;
long long mod = 1000000007;
long long mod2 = 998244353;
long long binomialCoeff(long long n, long long k) {
  long long res = 1;
  if (n < k) {
    return 0;
  }
  if (k > n - k) k = n - k;
  for (long long i = 0; i < k; ++i) {
    res *= (n - i);
    res /= (i + 1);
  }
  res %= mod2;
  return res;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(0);
  ;
  long long t = 1;
  cin >> t;
  while (t--) {
    long long n, x;
    cin >> n >> x;
    long long degree_x = 0, u, v;
    for (long long i = 1; i < n; i++) {
      cin >> u >> v;
      if (u == x || v == x) degree_x++;
    }
    if (degree_x <= 1)
      cout << "Ayush\n";
    else {
      if (n % 2)
        cout << "Ashish\n";
      else
        cout << "Ayush\n";
    }
  }
  cerr << "\nTime elapsed : " << 1.0 * clock() / CLOCKS_PER_SEC << " sec \n";
}
