#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, e, f;
  while (cin >> a >> b >> c >> d >> e >> f)
    cout << (b * d * f > a * c * e || (c == 0 && d > 0) ||
                     (a == 0 && b > 0 && c > 0 && d > 0)
                 ? "Ron"
                 : "Hermione")
         << endl;
}
