#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
const int maxn = 1005;
vector<int> v[maxn];
void test() {
  int n, x;
  cin >> n >> x;
  for (int i = 1; i <= n; i++) v[i].clear();
  for (int i = 1; i < n; i++) {
    int a, b;
    cin >> a >> b;
    v[a].push_back(b);
    v[b].push_back(a);
  }
  int cnt = v[x].size();
  if (v[x].size() == 1 || n == 1) {
    cout << "Ayush\n";
    return;
  }
  if (n % 2 == 0) {
    cout << "Ayush\n";
  } else
    cout << "Ashish\n";
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int q;
  cin >> q;
  while (q--) test();
  return 0;
}
