#include <bits/stdc++.h>
using namespace std;
vector<long long> v;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long a = 0, b = 0, c, d, e, f = 0, l, g, m, n, k, i, j, t, p, q, l0, l1,
            r0, x, r1;
  cin >> t;
  string s;
  while (t--) {
    int in[2000] = {0};
    cin >> n >> x;
    for (i = 0; i < n - 1; i++) {
      cin >> a >> b;
      in[a]++;
      in[b]++;
    }
    if (n == 1 || in[x] == 1) {
      cout << "Ayush\n";
    } else if (n % 2) {
      cout << "Ashish\n";
    } else
      cout << "Ayush\n";
  }
  return 0;
}
