#include <bits/stdc++.h>
using namespace std;
const int N = 1005;
int l[N], r[N];
void solve() {
  int n, x;
  cin >> n >> x;
  if (n == 1 && x == 1) {
    cout << "Ayush\n";
    return;
  }
  map<int, int> c;
  for (int i = 1; i < n; i++) {
    int u, v;
    cin >> u >> v;
    c[u]++;
    c[v]++;
  }
  if (c[x] == 1) {
    cout << "Ayush\n";
    return;
  }
  if (n % 2 == 1) {
    cout << "Ashish\n";
    return;
  } else {
    cout << "Ayush\n";
    return;
  }
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
