#include <bits/stdc++.h>
using namespace std;
template <typename S, typename T>
void fill_(S& buf, const T& x) {
  fill_n(reinterpret_cast<T*>(&buf), sizeof(buf) / sizeof(T), x);
}
template <typename T, int N>
inline int countof(const T (&)[N]) {
  return N;
}
template <typename T>
inline vector<T>& operator+=(vector<T>& ret, const T& x) {
  ret.push_back(x);
  return ret;
}
int main(int argc, char* argv[]) {
  int a, b, c, d, e, f;
  cin >> a >> b >> c >> d >> e >> f;
  if (d == 0)
    cout << "Hermione" << endl;
  else if (c == 0)
    cout << "Ron" << endl;
  else if (b == 0)
    cout << "Hermione" << endl;
  else if (a == 0)
    cout << "Ron" << endl;
  else if (f == 0)
    cout << "Hermione" << endl;
  else if (e == 0)
    cout << "Ron" << endl;
  else if (a * c * e < b * d * f)
    cout << "Ron" << endl;
  else
    cout << "Hermione" << endl;
  return 0;
}
