#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  const string ron = "Ron", her = "Hermione";
  long long a, b, c, d, e, f;
  while (cin >> a >> b >> c >> d >> e >> f) {
    string res;
    if (a && b && c && d && e && f) {
      res = (a * c * e < b * d * f ? ron : her);
    } else {
      if (d == 0)
        res = her;
      else if (c == 0)
        res = ron;
      else if (b == 0)
        res = her;
      else if (a == 0)
        res = ron;
      else if (f == 0)
        res = her;
      else
        res = ron;
    }
    cout << res << endl;
  }
  return 0;
}
