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