#include<bits/stdc++.h>
#define ll long long
#define endl '\n'
using namespace std;
int32_t main() {
ios_base :: sync_with_stdio(0);
cin.tie(0); cout.tie(0);
int t;
cin >> t;
while (t--) {
int n;
cin >> n;
vector<int> a(n);
int even = 0, odd = 0;
for (auto &k : a) {
cin >> k;
if (k & 1 ) odd++;
else even++;
}
if (n == 1) cout << "Roy" << endl;
else if (even == odd || ((even > 0 && odd == 0 || odd > 0 && even == 0) ) ) cout << "Hridoy" << endl;
else if (even % 2 == 0 && odd % 2 != 0 || even % 2 != 0 && odd % 2 == 0 ) cout << "Roy" << endl;
else cout << "Hridoy" << endl;
}
return 0;
}