#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long int p;
  cin >> p;
  while (p--) {
    long long int a, b, c, d, e, count = 0, ans = 100000;
    cin >> a >> b;
    long long int A[2 * a];
    vector<long long int> node[a];
    for (c = 0; c < a - 1; c++) {
      cin >> A[2 * c] >> A[(2 * c) + 1];
      if (A[2 * c] == b || A[(2 * c) + 1] == b) count++;
    }
    if (count == 1 || count == 0)
      cout << "Ayush" << endl;
    else {
      if (a % 2 != 0)
        cout << "Ashish" << endl;
      else
        cout << "Ayush" << endl;
    }
  }
}
