#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:60777216")
using namespace std;
int main() {
  long long 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 != 0 && c != 0 && d != 0)
    puts("Ron");
  else
    puts("Hermione");
  return 0;
}
