#include
#include<math.h>
using namespace std;
int ayush(int m)
{
int count=0;
for(int j=0;j<m;j++)
{
count++;
}
return count;
}
int harshit(int n)
{
int count1=0;
for(int k=0;k<n;k++)
{
count1++;
}
return count1;
}
int main() {
int t,m,n,count,count1;
cin>>t;
while(t--)
{
cin>>m;
cin>>n;
int count=ayush(m);
int count1=harshit(n);
if(count>count1)
cout<<"Aayush\n";
else
cout<<"Harshit";
}
return 0;
}