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