#include <bits/stdc++.h>
using namespace std;
int t, n, x, u, v;
int deg;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> t;
  while (t--) {
    cin >> n >> x;
    deg = 0;
    for (int i = 1; i <= n - 1; i++) {
      cin >> u >> v;
      if (u == x || v == x) deg++;
    }
    if (n == 1 || deg == 1) {
      cout << "Ayush" << '\n';
      continue;
    }
    if ((n - 1) & 1)
      cout << "Ayush" << '\n';
    else
      cout << "Ashish" << '\n';
  }
  return 0;
}
