#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
const double eps = 1e-9;
const int inf = 1e9;
int deg[N];
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    int n, x;
    scanf("%d%d", &n, &x);
    for (int i = 0; i < n + 10; i++) deg[i] = 0;
    for (int i = 1; i < n; i++) {
      int u, v;
      scanf("%d%d", &u, &v);
      deg[u]++;
      deg[v]++;
    }
    if (deg[x] < 2)
      printf("Ayush\n");
    else {
      if (n & 1)
        printf("Ashish\n");
      else
        printf("Ayush\n");
    }
  }
}
