#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using i32 = int32_t;
using ui32 = uint32_t;
using i64 = int64_t;
using ui64 = uint64_t;
using pii = pair<int, int>;
using pdd = pair<double, double>;
using vpii = vector<pii>;
using vpdd = vector<pdd>;
static int constexpr dbg = 0;
bool foo(int a, int b, int c, int d, int e, int f) {
  if (d == 0)
    return false;
  else if (c == 0 || (a == 0 && b) || (e == 0 && f && b))
    return true;
  return 1LL * b * d * f > 1LL * a * c * e;
}
int main(int argc, char *argv[]) {
  if (!dbg) {
    std::ios::sync_with_stdio(false);
  }
  int a, b, c, d, e, f;
  cin >> a >> b >> c >> d >> e >> f;
  cout << (foo(a, b, c, d, e, f) ? "Ron" : "Hermione") << endl;
  return 0;
}
