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