#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int res = 0, w = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9')
    ch == '-' ? w = -1, ch = getchar() : ch = getchar();
  while (ch >= '0' && ch <= '9') {
    res = res * 10 + ch - '0';
    ch = getchar();
  }
  return w * res;
}
int n, a, b, c, d, e, f;
int main() {
  a = read();
  b = read();
  c = read();
  d = read();
  e = read();
  f = read();
  int flag = 0;
  flag |= (b * d * f) > (a * c * e);
  flag |= (!c && d);
  flag |= (!a && b && c && d);
  flag |= (!e && f && a && b && c && d);
  flag ? printf("Ron\n") : printf("Hermione\n");
  return 0;
}
