#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n, x;
    cin >> n >> x;
    vector<vector<int>> graph(n + 1, vector<int>());
    for (int i = 0; i < n - 1; i++) {
      int u, v;
      cin >> u >> v;
      graph[u].push_back(v);
      graph[v].push_back(u);
    }
    cout << (graph[x].size() <= 1 || n % 2 == 0 ? "Ayush" : "Ashish") << "\n";
  }
  return 0;
}
