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