#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    int n, x;
    cin >> n >> x;
    int deg = 0;
    for (int i = 1; i < n; i++) {
      int a, b;
      cin >> a >> b;
      if (a == x || b == x) deg++;
    }
    if (deg <= 1)
      cout << "Ayush" << endl;
    else {
      if (n % 2)
        cout << "Ashish" << endl;
      else
        cout << "Ayush" << endl;
    }
  }
}
