#include <bits/stdc++.h>
using namespace std;
int vis[1005];
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    int n, x;
    memset(vis, 0, sizeof(vis));
    scanf("%d%d", &n, &x);
    int u, v;
    for (int i = 1; i < n; i++) {
      scanf("%d%d", &u, &v);
      vis[u]++;
      vis[v]++;
    }
    if (n == 1 || vis[x] == 1 || n % 2 == 0) {
      cout << "Ayush" << endl;
    } else
      cout << "Ashish" << endl;
  }
  return 0;
}
