#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int t, n, x, i;
  cin >> t;
  while (t--) {
    cin >> n >> x;
    int ct = 0, a, b;
    for (i = 0; i < n - 1; i++) {
      cin >> a >> b;
      if (a == x || b == x) ct++;
    }
    if (n % 2 == 0 || ct == 1 || n == 1)
      cout << "Ayush\n";
    else
      cout << "Ashish\n";
  }
}
