#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1000;
const double eps = 1e-9;
int sz[MAXN];
int main() {
  int a, b, c, d, e, f;
  scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &f);
  double ans = 1;
  if (d == 0)
    ans = 0;
  else if (c == 0)
    ans = 99;
  else if (b == 0)
    ans = 0;
  else if (a == 0)
    ans = 99;
  else if (f == 0)
    ans = 0;
  else if (e == 0)
    ans = 99;
  else
    ans = (double)b * d * f / e / c / a;
  if (ans + eps >= 1 + eps)
    printf("Ron\n");
  else
    printf("Hermione\n");
  return 0;
}
