#include <bits/stdc++.h>
using namespace std;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
const long long base = 998244353;
const long long oo = 1e6 + 10;
const long long gh = 1e3 + 3;
const long long inf = 1e15 + 5;
double pi = 2 * asin(1);
long long n, m, k, q;
long long a[oo];
long long b[oo];
long long sum[oo];
string s;
char c[oo];
long long f[oo][4];
void input() {
  cin >> n >> m;
  long long dx = 0;
  for (long long i = 1; i < n; i++) {
    long long x, y;
    cin >> x >> y;
    if (x == m) dx++;
    if (y == m) dx++;
  }
  cerr << dx << endl;
  long long t = n - 1;
  if (n == 1)
    cout << "Ayush\n";
  else if (dx == 1)
    cout << "Ayush\n";
  else if (t % 2)
    cout << "Ayush\n";
  else
    cout << "Ashish\n";
}
void cre() {}
void solve() { cre(); }
void ouput() {}
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  if (ifstream("test.txt")) {
    freopen("test.txt", "r", stdin);
  } else if (ifstream(""
                      ".inp")) {
    freopen(
        ""
        ".inp",
        "r", stdin);
    freopen(
        ""
        ".out",
        "w", stdout);
  }
  long long t = 1;
  cin >> t;
  while (t--) {
    input();
    solve();
    ouput();
  }
}
