#include <iostream>
#include <vector>
#include <string>
#include <set>
#include <algorithm>
#include <map>

using namespace std;

int main() {
    int t;
    cin>>t;
    for (int re=0; re<t; re++) {
        long long d, k;
         cin>>d>>k;
         long long A=0;
         for (long long a=0; a<=d+1; a++) {
             if (2*a*a*k*k>d*d) {
                 A=a-1;
                 break;
             }
         }
         long long nline=2*A;
         if (A*A*k*k+(A+1)*(A+1)*k*k<=d*d) {
             nline++;
         }
         if (nline%2==0) {
             cout<<"Utkarsh"<<endl;
         } else cout<<"Ashish"<<endl;

    }
    return 0;
}
