#include <bits/stdc++.h>
using namespace std;
int main() {
  long double a, b, c, d, e, f;
  cin >> a >> b >> c >> d >> e >> f;
  int d1 = d, f1 = f;
  if (c != 0) d = (d * b) / c;
  if (e != 0) f = (f * d) / e;
  if (f > a && d != 0 || c == 0 && d1 > 0 || a == 0 && b != 0 && d != 0 ||
      e == 0 && f > 0 && d != 0) {
    cout << "Ron" << endl;
  } else {
    cout << "Hermione" << endl;
  }
  return 0;
}
