#include <bits/stdc++.h>
#define ll long long
using namespace std;
void solve() {
int n; cin >> n;
std::vector<int> a(n);
int even = 0, odd = 0;
for(int i = 0; i < n; i++) {
cin >> a[i];
if(a[i] & 1)
odd++;
else
even++;
}
if(odd > even)
swap(odd, even);
bool check = 0;
if(n == 1)
check = 1;
else if(n == 2)
check = 0;
else if(even == odd)
check = 0;
else if(odd == 0 or even == 0)
check = 0;
else if(odd & 1)
check = 1;
else
check = (odd + 1 == even);
cout << (check ? "ROY\n" : "Hridoy\n");
}
int main() {
ios::sync_with_stdio(0);
cin.tie(nullptr);
int t = 1;
cin >> t;
for (int i = 1; i <= t; i++) {
solve();
}
return 0;
}