#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, x, i, j, k;
    cin >> n >> x;
    if (n == 1) {
      cout << "Ayush"
           << "\n";
      continue;
    }
    vector<vector<int>> v(n + 1);
    for (i = 0; i < n - 1; i++) {
      cin >> j >> k;
      v[j].push_back(k);
      v[k].push_back(j);
    }
    if (v[x].size() != 1) {
      if (n % 2 == 0)
        cout << "Ayush";
      else
        cout << "Ashish";
    } else
      cout << "Ayush";
    cout << "\n";
  }
}
