#include <bits/stdc++.h>
using namespace std;
int main() {
  double num, a, b, c, d, e, f, r1, r2;
  double m1, m2, m3;
  while (cin >> a >> b >> c >> d >> e >> f) {
    if (d == 0) {
      cout << "Hermione" << endl;
      continue;
    }
    if (c == 0) {
      cout << "Ron" << endl;
      continue;
    }
    if (b == 0) {
      cout << "Hermione" << endl;
      continue;
    }
    if (a == 0) {
      cout << "Ron" << endl;
      continue;
    }
    if (f != 0 && e == 0) {
      cout << "Ron" << endl;
      continue;
    }
    num = 500;
    r1 = 0;
    r2 = 0;
    m1 = b / a;
    m2 = d / c;
    m3 = e / f;
    r1 = num * m1 * m2;
    r2 = num * m3;
    if (r1 > r2) {
      cout << "Ron" << endl;
    } else {
      cout << "Hermione" << endl;
    }
  }
  return 0;
}
