#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, e, f;
  cin >> a >> b >> c >> d >> e >> f;
  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 (f == 0) {
    cout << "Hermione";
    return 0;
  }
  if (e == 0) {
    cout << "Ron";
    return 0;
  }
  int maj1 = b * d * f, maj2 = a * c * e;
  if (maj1 > maj2) {
    cout << "Ron";
    return 0;
  }
  cout << "Hermione";
}
