#include <bits/stdc++.h>
int judge(int a, int b, int c, int d, int e, int f) {
  double temp1, temp2;
  temp1 = ((double)(b * d)) / ((double)(a * c));
  temp2 = ((double)e) / ((double)f);
  if (temp1 - temp2 > 10e-8)
    return 1;
  else
    return 0;
}
int main(int argc, char *argv[]) {
  int a, b, c, d, e, f;
  scanf("%d%d%d%d%d%d", &a, &b, &c, &d, &e, &f);
  if (d == 0) {
    printf("Hermione\n");
    return 0;
  } else if (c == 0) {
    printf("Ron\n");
    return 0;
  } else {
    if (b == 0) {
      printf("Hermione\n");
      return 0;
    } else {
      if (a == 0 || c == 0) {
        printf("Ron\n");
        return 0;
      } else {
        if (e == 0) {
          if (f == 0) {
            printf("Hermione\n");
            return 0;
          } else {
            printf("Ron\n");
            return 0;
          }
        } else {
          if (f == 0) {
            printf("Hermione\n");
            return 0;
          }
          if (f != 0) {
            if (judge(a, b, c, d, e, f) == 1) {
              printf("Ron\n");
              return 0;
            } else {
              printf("Hermione\n");
              return 0;
            }
          }
        }
      }
    }
  }
  return 0;
}
