#include<bits/stdc++.h>
using namespace std;
void solve()
{
int n; cin>>n;
int a[n];
for(int i=0; i<n; i++){
cin>>a[i];
}
int o=0,e=0;
for(int i=0; i<n; i++){
if(a[i]%2==0){
e++;
}
o++;
}
if(o==0){
cout<<"Hridoy"<<endl;
}
else if(e==0){
cout<<"Roy"<<endl;
}
else{
int cnt=0;
for(int i=0; i<n-1; i++){
if((a[i]%2==0 && a[i+1]%2!=0)||(a[i]%2!=0 && a[i+1]%2==0)){
cnt++;
}
}
if(n-1==cnt){
if(a[0]%2!=0){
cout<<"Roy"<<endl;
}
else{
cout<<"Hridoy"<<endl;
}
}
else{
if(a[0]%2==0){
cout<<"Hridoy"<<endl;
}
else{
cout<<"Roy"<<endl;
}
}
}
}
int main()
{
int t; cin>>t;
while(t--) solve();
}