#include <bits/stdc++.h>
using namespace std;
int in[1010];
int main() {
  int T;
  cin >> T;
  while (T--) {
    int n, x;
    cin >> n >> x;
    for (int i = 1; i <= n; i++) in[i] = 0;
    for (int i = 0; i < n - 1; i++) {
      int xx, yy;
      cin >> xx >> yy;
      in[xx]++;
      in[yy]++;
    }
    if (in[x] == 1 || n == 1)
      cout << "Ayush" << endl;
    else {
      if (n % 2 == 1)
        cout << "Ashish" << endl;
      else
        cout << "Ayush" << endl;
    }
  }
  return 0;
}
