human
A long time ago (probably even in the first book), Nicholas Flamel, a great alchemist and the creator of the Philosopher's Stone, taught Harry Potter three useful spells. The first one allows you to convert a grams of sand into b grams of lead, the second one allows you to convert c grams of lead into d grams of gold and third one allows you to convert e grams of gold into f grams of sand. When Harry told his friends about these spells, Ron Weasley was amazed. After all, if they succeed in turning sand into lead, lead into gold, and then turning part of the gold into sand again and so on, then it will be possible to start with a small amount of sand and get huge amounts of gold! Even an infinite amount of gold! Hermione Granger, by contrast, was skeptical about that idea. She argues that according to the law of conservation of matter getting an infinite amount of matter, even using magic, is impossible. On the contrary, the amount of matter may even decrease during transformation, being converted to magical energy. Though Hermione's theory seems convincing, Ron won't believe her. As far as Ron is concerned, Hermione made up her law of conservation of matter to stop Harry and Ron wasting their time with this nonsense, and to make them go and do homework instead. That's why Ron has already collected a certain amount of sand for the experiments. A quarrel between the friends seems unavoidable...

Help Harry to determine which one of his friends is right, and avoid the quarrel after all. To do this you have to figure out whether it is possible to get the amount of gold greater than any preassigned number from some finite amount of sand.

Input

The first line contains 6 integers a, b, c, d, e, f (0 ≤ a, b, c, d, e, f ≤ 1000).

Output

Print "Ron", if it is possible to get an infinitely large amount of gold having a certain finite amount of sand (and not having any gold and lead at all), i.e., Ron is right. Otherwise, print "Hermione".

Examples

Input

100 200 250 150 200 250

Output

Ron

Input

100 50 50 200...
# -*-
assistant
#Here is Python program to determine which one of his friends is right, and avoid the quarrel after all.
 coding: UTF-8 -*-

# from itertools import *
# from collections import defaultdict

# def baseN(num,b,numerals="0123456789abcdefghijklmnopqrstuvwxyz"):
#     return ((num == 0) and  "0" ) or ( baseN(num // b, b).lstrip("0") + numerals[num % b])

# T = input()
# St = raw_input()
a, b, c, d, e, f = map(int, raw_input().split())
# data2 = [ map(int, raw_input().split) for i in xrange(T) ]
if d == 0:
    print "Hermione"
    exit()
    
if c == 0:
    if d == 0:
        print "Hermione"
        exit()
    else:
        print "Ron"
        exit()
        
if b == 0:
    print "Hermione"
    exit()
    
if a == 0:
    if b == 0:
        print "Hermione"
        exit()
    else:
        print "Ron"
        exit()

if f == 0:
    print "Hermione"
    exit()

if e == 0:
    if f == 0:
        print "Hermione"
        exit()
    else:
        print "Ron"
        exit()

mod1 = float(b)/a
mod2 = float(d)/c
mod3 = float(f)/e

if mod1*mod2*mod3 > 1:
    print "Ron"
else:
    print "Hermione"