#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c, d, e, f;
  cin >> a >> b >> c >> d >> e >> f;
  if (d == 0) {
    cout << "Hermione" << endl;
    return 0;
  } else if (c == 0) {
    cout << "Ron" << endl;
    return 0;
  }
  if (b == 0) {
    cout << "Hermione" << endl;
    return 0;
  } else if (a == 0) {
    cout << "Ron" << endl;
    return 0;
  }
  if (f == 0) {
    cout << "Hermione" << endl;
    return 0;
  } else if (e == 0) {
    cout << "Ron" << endl;
    return 0;
  }
  double ans = a;
  long long int t = 100000;
  while (t--) {
    double a1 = ans;
    double b1 = (b / a) * a1;
    double c1 = b1;
    double d1 = (d / c) * c1;
    double e1 = d1;
    if (e1 > 100000) {
      cout << "Ron" << endl;
      return 0;
    }
    double f1 = (f / e) * e1;
    ans = f1;
  }
  cout << "Hermione" << endl;
}
