#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define LB lower_bound
#define UB upper_bound
#define EQ equal_range
#define prako ios::sync_with_stdio(0); cin.tie(0);
#define deb(x) cout<<x<<"\n";
#define all(x) x.begin(), x.end()
#define allr(x) x.rbegin(), x.rend()
typedef long long int ll;
typedef pair<int,int> pi;
#define rep(i,a,b) for(ll i=a; i<=b; i++)

void solve(){
    ll t;cin>>t;
    while(t--){
        ll d,k;cin>>d>>k;
        ll x=0,y=0,count=0,flag=0;
        while(1){
        	if(((x+k)*(x+k))+(y*y) <= (d*d) && flag==0){
        		x+=k;
        		flag=1;
        		count++;
        	}
        	else if(((y+k)*(y+k))+(x*x) <= (d*d) && flag==1){
        		y+=k;
        		flag=0;
        		count++;
        	}
        	else break;
        }
        if(count%2==0) cout<<"Utkarsh\n";
        else cout<<"Ashish\n";
    }
}
int main() {
    //freopen("input.txt","r",stdin);
    //freopen("output.txt","w",stdout);
    prako
    solve();
	return 0;
}
