#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long long INF = 1000000001;
const long long N = 1000001;
long long powm(long long base, long long exp) {
  long long ans = 1;
  while (exp) {
    if (exp & 1) ans = (ans * base) % mod;
    exp >>= 1, base = (base * base) % mod;
  }
  return ans;
}
long long A[N], B[N];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t;
  cin >> t;
  while (t--) {
    vector<vector<long long>> adj(1001);
    long long n, x;
    cin >> n >> x;
    long long p, q;
    for (int i = 0; i < n - 1; i++) {
      cin >> p >> q;
      adj[p].push_back(q);
      adj[q].push_back(p);
    }
    if ((long long)adj[x].size() <= 1) {
      cout << "Ayush" << endl;
    } else {
      if (n % 2 == 0) {
        cout << "Ayush" << endl;
      } else
        cout << "Ashish" << endl;
    }
  }
}
