#include <bits/stdc++.h>
using namespace std;
const int N = 1010, M = 2 * N;
int n, m;
int d[N];
int main() {
  int t;
  cin >> t;
  while (t--) {
    memset(d, 0, sizeof d);
    cin >> n >> m;
    for (int i = 1; i < n; i++) {
      int a, b;
      cin >> a >> b;
      d[a]++, d[b]++;
    }
    int res = n - 2;
    if (d[m] <= 1)
      cout << "Ayush" << endl;
    else if (res % 2)
      cout << "Ashish" << endl;
    else
      cout << "Ayush" << endl;
  }
}
