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