
#include<bits/stdc++.h>
using namespace std;
typedef  long long int ll;
#define fastttt std::ios::sync_with_stdio(false);std::cin.tie(NULL);std::cout.tie(NULL);

class solver{
	public:
		
	void solve()
	{
		ll n,k;cin>>n>>k;
		
		ll g = k*(n/k);
		ll m=0;
		ll y;
		ll x;
		while(g>0){
			y = sqrt((n*n)-(g*g));
			x = y/k;
			m = max( m , x+(g/k));
			g-=k;
		}
		if(m%2==0)cout<<"Utkarsh\n";else cout<<"Ashish\n";
	}
	
};
 
int main(){
	fastttt
	//	cout<<fixed<<setprecision(10);
	
	int test=1,c=1;
	cin>>test;
	while(test--){
		//cout<<"Case #"<<c<<": ";c++;
		solver o;
		o.solve();
	}
}