#include <bits/stdc++.h>
using namespace std;
const long long OO = 1e8;
const double EPS = (1e-7);
int dcmp(double x, double y) { return fabs(x - y) <= EPS ? 0 : x < y ? -1 : 1; }
const int N = 100;
int main() {
  int a, b, c, d, e, f;
  cin >> a >> b >> c >> d >> e >> f;
  if (!d)
    cout << "Hermione" << endl;
  else if (!c)
    cout << "Ron" << endl;
  else if (!b)
    cout << "Hermione" << endl;
  else if (!a)
    cout << "Ron" << endl;
  else if (!f)
    cout << "Hermione" << endl;
  else if (!e)
    cout << "Ron" << endl;
  else if ((b / (double)a) * (d / (double)c) * (f / (double)e) > 1)
    cout << "Ron" << endl;
  else
    cout << "Hermione" << endl;
  return 0;
}
