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