Under construction

Still being built. Things may change

Room

Time limit1sMemory limit1024 MB

Summary
Given a room's width, length, and height in millimeters, decide whether the smaller side divided by the height is at least 2 and the larger side divided by the smaller is at most 2.
Level

Easy1 of 10

Topics
Implementation, Math
Solved
No attempts yet

Problem

A room is described by three integers: its length, width, and height, all in millimeters. A room is good if the ratio of the smaller of the length and width to the height is at least 22, and the ratio of the larger of the length and width to the smaller is at most 22.

Given the dimensions of a room, determine whether it is good.

Input

Three integers ww, ll, and hh are given, each on its own line. They are the length, width, and height of the room, respectively (1000≤w,l,h≤10 0001000 \le w, l, h \le 10\,000).

Output

If the room is good, print <<good>>. Otherwise, print <<bad>>.

Examples2

  1. Example 1

    Input
    4000
    6000
    3000
    
    Expected output
    bad
    
  2. Example 2

    Input
    4600
    8600
    1600
    
    Expected output
    good