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