#include<bits/stdc++.h>
typedef long long ll;
using namespace std;
const int maxn = 2e5+10;
const int mod = 1e9+7;
typedef pair<int,int> pii;
void solve()
{
    ll d,k;
    cin >> d >> k;
    d*=d;k*=k;d/=k;
    ll now = 1;
    d--;
    if(d<=0)cout <<"Ashish" << endl;     
    while(d>0){
        now++;
        ll pre = now-1;
        ll o = now*now - pre*pre;
        d-=o;
        if(d<=0)cout << "Utkarsh" << endl;
        else {
            d-=o;
            if(d<=0)cout <<"Ashish" << endl;  
        } 
    }
    return ;
}
int main(){
    int T;
    for(cin >> T;T;T--){
        solve();
    }
    // system("pause");
}