#include
using namespace std;
void Game(int T){
for(int i=1;i<=T;i++){
int M;
cin>>M;
cout<<β ';
int N;
cin>>N;
int m=1;
int n=2;
int summ=1;
int sumn=2;
Mβ;
N-=2;
while(summ<=M||sumn<=N){
m+=2;
n+=2;
M-=m;
N-=n;
summ+=m;
sumn+=n;
if(M<=0){
cout<<"Harshit";
cout<<endl;
break;
}
if(N<=0){
cout<<"Aayush";
cout<<endl;
break;
}
}
}
}
int main(){
int T;
cin>>T;
if(T>=1 && T<=1000){
Game(T);
}
cout<<endl;
return 0;
}