//Muhimin
#include <bits/stdc++.h>
using namespace std;
#define ll long long
void solve()
{
int n, k;
cin >> n >> k;
int cnt1 = 0;
for(int i = 1; i <= n; i++){
int x; cin >> x;
if ( x == 1 ) cnt1++;
}
if ( (cnt1 & 1) and (k & 1) ) {
if ( n & 1) cout << "Kamona" << '\n';
else cout << "Hridoy" << '\n';
}
else {
if (n & 1) cout << "Hridoy" << '\n';
else cout << "Kamona" << '\n';
}
}
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
int t = 1, tc = 0;
cin >> t;
while(t--){
//cout << "Case " << ++tc << ": ";
solve();
}
}