#include <bits/stdc++.h>
using namespace std;
double a, b, c, d, e, f, x, y, z;
int main() {
  cin >> a >> b >> c >> d >> e >> f;
  if (c == 0 && d != 0) {
    printf("Ron\n");
    return 0;
  }
  if ((b == 0 && c != 0) || d == 0 || (f == 0 && a != 0)) {
    printf("Hermione\n");
    return 0;
  }
  if (a == 0 || c == 0 || e == 0) {
    printf("Ron\n");
    return 0;
  }
  x = b / a;
  y = d / c;
  z = f / e;
  if (x * y * z > 1) {
    printf("Ron\n");
    return 0;
  }
  printf("Hermione\n");
  return 0;
}
