#include <bits/stdc++.h>
using namespace std;
const int oo = 1e9;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int a, b, c, d, e, f;
  cin >> a >> b >> c >> d >> e >> f;
  if (c == 0 && d > 0 || a == 0 && b > 0 && d > 0 || a * c * e < b * d * f)
    cout << "Ron" << '\n';
  else
    cout << "Hermione" << '\n';
  return 0;
}
