#include <bits/stdc++.h>
using namespace std;
int T;
int n, x, a;
int main() {
  cin >> T;
  for (int t = 0; t < T; t++) {
    cin >> n >> x;
    a = 0;
    int b, c;
    for (int i = 0; i < n - 1; i++) {
      cin >> b >> c;
      if (b == x || c == x) a++;
    }
    if (n == 1 || a == 1)
      cout << "Ayush\n";
    else {
      if (n % 2 == 1)
        cout << "Ashish\n";
      else
        cout << "Ayush\n";
    }
  }
  return 0;
}
