#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/stack:16000000")
#pragma warning(disable : 4996)
const int inf = 1 << 25;
const double eps = 1e-9;
bool infinite(int a, int b, int c, int d, int e, int f) {
  bool can = a * c * e < b * d * f;
  if (d > 0) {
    can = can || c == 0 || c > 0 && a == 0 && b > 0;
  }
  return can;
}
int main(int argc, char* argv[]) {
  int a, b, c, d, e, f;
  cin >> a >> b >> c >> d >> e >> f;
  printf("%s\n", infinite(a, b, c, d, e, f) ? "Ron" : "Hermione");
  return 0;
}
