- void solve() {
- int a = nextInt();
- int b = nextInt();
- int c = nextInt();
- int d = nextInt();
- int e = nextInt();
- int f = nextInt();
- if (a != 0 && c != 0 && e != 0) {
- out.println(a * c * e < b * d * f ? "Ron" : "Hermione");
- return;
- }
- if (e == 0 && f > 0 || (c == 0 && d > 0 && f > 0)
- || (a == 0 && b > 0 && d > 0 && f > 0)) {
- out.println("Ron");
- return;
- } else {
- out.println("Hermione");
- return;
- }
- }