#include <bits/stdc++.h>
#define ll long long int
#define fastio ios_base::sync_with_stdio(false); cin.tie(NULL);
#define pb push_back 
#define mp make_pair
#define ff first
#define ss second
#define pii pair<int,int> 
#define pll pair<ll,ll> 
#define vi vector<int> 
#define endl '\n'
#define vll vector<ll> 
#define MAX 1000000

using namespace std;

int main() 
{
	// your code goes here
	fastio ;
	int t ; 
	cin>>t ; 
	while(t--)
	{
	    ll d,k ; 
	    cin>>d>>k ; 
	    ll state =1  ; 
	    ll x = 0 ; 
	    ll y = 0  ; 
	    while(x*x + y*y <= d*d)
	    {
	        if(x<y)
	        {
	            x = x + k  ; 
	        }
	        else
	        {
	            y = y + k ; 
	        }
	        state = 1-state ; 
	    }
	    if(state == 0)
	    {
	        cout<<"Utkarsh"<<endl; 
	    }
	    else
	    {
	        cout<<"Ashish"<<endl;
	    }
	    
	}
	
	
	return 0;
}