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