#include <bits/stdc++.h>
using namespace std;
double Abs(double a) { return a > 0 ? a : -a; }
int main() {
  int a, b, c, d, e, f;
  scanf("%d%d%d%d%d%d", &a, &b, &c, &d, &e, &f);
  int flag = b * d * f;
  int flag2 = a * c * e;
  if (d == 0) {
    printf("Hermione\n");
  } else if (c == 0 || (a == 0 && b != 0)) {
    printf("Ron\n");
  } else if (flag == 0) {
    printf("Hermione\n");
  } else if (flag2 == 0) {
    printf("Ron\n");
  } else {
    double ans = (double)(b * d) / (double)(a * c);
    double ans2 = (double)e / (double)f;
    printf(ans > ans2 ? "Ron\n" : "Hermione\n");
  }
  return 0;
}
