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