Олимпиадный тренинг

Задача 38873. Room


The room is characterized by three integers: length, width and height, given in millimeters. A room is considered good if the following conditions are met:
the ratio of the smallest of the length and width to the height is at least 2, as well as the ratio of the largest of the length and width to the smallest does not exceed 2.
Based on the dimensions of the room, determine if it is a good one.

Input
The input is three integers: w, l and h — length, width and height of the room, each
on a separate line (1000 ≤ w, l, h ≤ 10,000).

Imprint
If the room is good, print "good", otherwise print "bad".
 
Examples
# Input Output
1 4000
6000
3000
bad
2 4600
8600
1600
good