#include <bits/stdc++.h>
using namespace std;
int a, b, c, d, e, first;
int main() {
  cin >> a >> b >> c >> d >> e >> first;
  if (d == 0) {
    cout << "Hermione";
    return 0;
  }
  if (c == 0) {
    cout << "Ron";
    return 0;
  }
  if (b == 0) {
    cout << "Hermione";
    return 0;
  }
  if (a == 0) {
    cout << "Ron";
    return 0;
  }
  if (first == 0) {
    cout << "Hermione";
    return 0;
  }
  if (b == 0) {
    cout << "Ron";
    return 0;
  }
  if (b * d * first > a * c * e)
    cout << "Ron";
  else
    cout << "Hermione";
  return 0;
}
