#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int T;
  cin >> T;
  for (int i = 1; i <= T; i++) {
    long long int n, x;
    cin >> n >> x;
    long long int q = 0;
    for (int i = 1; i < n; i++) {
      long long int z, y;
      cin >> z >> y;
      if (z == x || y == x) {
        q++;
      }
    }
    if (n == 1) {
      cout << "Ayush" << endl;
      continue;
    }
    if (q == 1) {
      cout << "Ayush" << endl;
      continue;
    }
    if (n % 2 == 0) {
      cout << "Ayush" << endl;
      continue;
    }
    cout << "Ashish" << endl;
  }
}
