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