#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, n, m, f, g;
  cin >> a >> b >> f >> g >> n >> m;
  if (g == 0) {
    cout << "Hermione";
    return 0;
  }
  if (f == 0) {
    cout << "Ron";
    return 0;
  }
  if (b == 0) {
    cout << "Hermione";
    return 0;
  }
  if (a == 0) {
    cout << "Ron";
    return 0;
  }
  if (m == 0) {
    cout << "Hermione";
    return 0;
  }
  if (n == 0) {
    cout << "Ron";
    return 0;
  }
  if (1 / (double)a * (double)b / (double)n * (double)m / (double)f *
          (double)g >
      1)
    cout << "Ron";
  else
    cout << "Hermione";
  return 0;
}
