#include <bits/stdc++.h>
using namespace std;
int a, b, c, d, e, f;
int read() {
  int w = 0, fh = 1;
  char c = getchar();
  while (c > '9' || c < '0') {
    if (c == '-') fh = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    w = (w << 3) + (w << 1) + (c ^ 48);
    c = getchar();
  }
  return w * fh;
}
int main() {
  scanf("%d%d%d%d%d%d", &a, &b, &c, &d, &e, &f);
  if ((a * c * e < b * d * f) || ((a == 0) && (b * d > 0)) ||
      (c == 0) && (d > 0))
    puts("Ron");
  else
    puts("Hermione");
  return 0;
}
