#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long long inf = 0x3f3f3f3f;
const long long nax = 0;
void solve() {
  long long n, x;
  vector<long long> cnt(1005, 0);
  cin >> n >> x;
  for (int i = 1; i < n; ++i) {
    long long a, b;
    cin >> a >> b;
    cnt[a]++, cnt[b]++;
  }
  if (cnt[x] <= 1) {
    cout << "Ayush" << '\n';
    return;
  }
  if (n & 1) {
    cout << "Ashish" << '\n';
  } else {
    cout << "Ayush" << '\n';
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie();
  cout.tie();
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
}
