#include <bits/stdc++.h>
int main() {
  int a, b, c, d, e, f;
  scanf("%d%d%d%d%d%d", &a, &b, &c, &d, &e, &f);
  if (((b * d * f > a * c * e) || (c == 0 && d != 0) ||
       (a == 0 && b != 0 && d != 0)) &&
      d != 0)
    printf("Ron");
  else
    printf("Hermione");
  exit(0);
}
