#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t;
  cin >> t;
  while (t--) {
    long long int n, k;
    cin >> n >> k;
    long long int temp = n - 1;
    vector<long long int> adj[n + 1];
    while (temp--) {
      long long int a, b;
      cin >> a >> b;
      adj[a].push_back(b);
      adj[b].push_back(a);
    }
    if (adj[k].size() == 1 || n == 1 || adj[k].size() == 0)
      cout << "Ayush" << endl;
    else {
      if (n % 2 == 0)
        cout << "Ayush" << endl;
      else
        cout << "Ashish" << endl;
    }
  }
  return 0;
}
