#include <bits/stdc++.h>
using namespace std;
void process() {
  long n, i, p, q, x, degx;
  cin >> n >> x;
  degx = 0;
  for (i = 1; i < n; i++) {
    cin >> p >> q;
    if (p == x || q == x) degx++;
  }
  if (degx <= 1)
    cout << "Ayush" << endl;
  else {
    if ((n - 2) % 2 == 0)
      cout << "Ayush" << endl;
    else
      cout << "Ashish" << endl;
  }
}
int main(int argc, char const *argv[]) {
  long i, t;
  cin >> t;
  for (i = 1; i <= t; i++) process();
  return 0;
}
