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