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