#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int data = 0;
  int w = 1;
  char ch = 0;
  ch = getchar();
  while (ch != '-' && (ch < '0' || ch > '9')) ch = getchar();
  if (ch == '-') w = -1, ch = getchar();
  while (ch >= '0' && ch <= '9')
    data = (data << 3) + (data << 1) + ch - '0', ch = getchar();
  return data * w;
}
int T;
int a, b, c, d, e, f;
int sta[5];
signed main() {
  a = read();
  b = read();
  c = read();
  d = read();
  e = read();
  f = read();
  if (a && b && c && d && e && f) {
    if (f * b * d > e * a * c)
      puts("Ron");
    else
      puts("Hermione");
  } else {
    memset(sta, 0, sizeof(sta));
    if (!a && b) sta[2] = 1;
    if (!c && d) sta[3] = 1;
    if (!e && f) sta[1] = 1;
    if (sta[3] && e && f) sta[1] = 1;
    if (sta[1] && a && b) sta[2] = 1;
    if (sta[2] && c && d) sta[3] = 1;
    if (sta[3])
      puts("Ron");
    else
      puts("Hermione");
  }
  return 0;
}
