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