#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:16777216")
using namespace std;
double a[6];
double d1, d2, d3;
void solution() {
  for (int i = 0, _n = (6); i < _n; ++i) {
    cin >> a[i];
    a[i] /= 100;
  }
  if (a[3] < (1e-6)) {
    puts("Hermione");
    return;
  }
  d1 = a[0] ? a[1] * 1. / a[0] : (a[1] ? 1000000000 : 0);
  d2 = a[2] ? a[3] * 1. / a[2] : (a[3] ? 1000000000 : 0);
  d3 = a[4] ? a[5] * 1. / a[4] : (a[5] ? 1000000000 : 0);
  double c = 1;
  c *= d1;
  if (c > 1000000000) c = 1000000000;
  if (c < (1e-6) && a[2] < (1e-6)) c = 1000000000;
  c *= d2;
  if (c > 1000000000) c = 1000000000;
  if (c > 1000000 - (1e-6)) {
    puts("Ron");
    return;
  }
  if (c < (1e-6) && a[4] < (1e-6)) c = 1000000000;
  c *= d3;
  if (c > 1000000000) c = 1000000000;
  if (a[2] < (1e-6) && a[3] > 0) {
    puts("Ron");
    return;
  }
  if (a[1] < (1e-6)) {
    puts("Hermione");
    return;
  }
  if (c > 1 + (1e-6))
    puts("Ron");
  else
    puts("Hermione");
}
int main() {
  solution();
  return 0;
}
