#include <bits/stdc++.h>
using namespace std;
int OO = 1000000;
long long mod = 1000000007;
int main() {
  ios::sync_with_stdio(0);
  int a, b, c, d, e, f;
  int x, y, z, w, o;
  cin >> a >> b >> c >> d >> e >> f;
  if ((!a && b && d) || (!c && d)) {
    cout << "Ron";
    return 0;
  }
  x = a;
  y = b;
  z = c;
  w = d;
  o = e;
  while (o > w && d != 0) {
    w += d;
    z += c;
  }
  while (z > y && b != 0) {
    y += b;
    x += a;
  }
  double final = y * d * 1.0 / c;
  double gold = 1.0 * x * e / f;
  if (final > gold)
    cout << "Ron";
  else
    cout << "Hermione";
}
