#include <bits/stdc++.h>
using namespace std;
inline int read() {
  char ch = getchar();
  if (!(~ch)) return 0;
  int f = 1;
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  int x = 0;
  while (ch >= '0' && ch <= '9') {
    x = (x << 3) + (x << 1) + (ch ^ 48);
    ch = getchar();
  }
  return x * f;
}
int main() {
  int a = read(), b = read(), c = read(), d = read(), e = read(), f = read();
  if ((a * c * e < b * d * f) || (!c && d) || (!a && b && d))
    puts("Ron");
  else
    puts("Hermione");
  return 0;
}
