#include <bits/stdc++.h>
using namespace std;
const int N = 3e5, Mod = 998244353, INF = 1e9;
int n, x, in[N], out[N], t, a, b, sum;
vector<int> g[N];
void GetAns() {
  for (int i = 1; i <= 1001; i++) {
    g[i].clear();
  }
  cin >> n >> x;
  for (int i = 1; i < n; i++) {
    cin >> a >> b;
    g[a].push_back(b);
    g[b].push_back(a);
  }
  if (g[x].size() <= 1) {
    cout << "Ayush" << endl;
    return;
  }
  if ((n - 2) % 2 == 0) {
    cout << "Ayush" << endl;
  } else {
    cout << "Ashish" << endl;
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  cin >> t;
  while (t--) {
    GetAns();
  }
}
