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