#include <bits/stdc++.h>
using namespace std;
const int INFI = 2000000000;
const int goX[4] = {-1, 0, 1, 0};
const int goY[4] = {0, 1, 0, -1};
const string PROBLEM_NAME = "test";
const string INPUT_FILE = PROBLEM_NAME + ".in";
const string OUTPUT_FILE = PROBLEM_NAME + ".out";
ofstream fout(OUTPUT_FILE.c_str());
ifstream fin(INPUT_FILE.c_str());
void read_input() {}
long long a, b, c, d, e, f;
string solve() {
  if (c == 0 && d > 0) return "Ron";
  if (a == 0 && b > 0 && d > 0) return "Ron";
  if (b == 0 || d == 0 || f == 0) return "Hermione";
  if (a == 0 || c == 0 || e == 0) return "Ron";
  return (a * c * e < b * d * f) ? "Ron" : "Hermione";
}
void m_main() {
  cin >> a >> b >> c >> d >> e >> f;
  cout << solve() << endl;
}
int main() {
  read_input();
  m_main();
  return 0;
}
