#K55352. Stock Performance Evaluation

    ID: 29956 Type: Default 1000ms 256MiB

Stock Performance Evaluation

Stock Performance Evaluation

In this problem, you are given the opening and closing prices of a stock for several days. Your task is to determine the stock's performance for each day. Specifically, the performance is considered GOOD if the closing price is at least 4% greater than the opening price, and BAD otherwise. Mathematically, you should check if $$ C \ge O \times 1.04 $$, where \(O\) is the opening price and \(C\) is the closing price.

You need to read the input from stdin and output the results to stdout for each day in the order they are given.

inputFormat

The first line contains a single integer \(T\) denoting the number of days. Each of the next \(T\) lines contains two numbers \(O\) and \(C\) separated by space, representing the opening and closing prices for that day. The prices can be integer or floating point numbers.

outputFormat

For each day, print a separate line containing either GOOD or BAD. A day is GOOD if \( C \ge O \times 1.04 \), otherwise it is BAD.

## sample
5
100 104
200 207
1500 1561
8000 8320
5000 5000
GOOD

BAD GOOD GOOD BAD

</p>