#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c, d, e, f;
  cin >> a >> b >> c >> d >> e >> f;
  if (a == 0 && b != 0 && d != 0)
    cout << "Ron";
  else if (c == 0 && d != 0)
    cout << "Ron";
  else if ((b / a) * (d / c) * (f / e) > 1)
    cout << "Ron";
  else
    cout << "Hermione";
}
