#C7159. Seller Classification

    ID: 50999 Type: Default 1000ms 256MiB

Seller Classification

Seller Classification

You are given the number of sellers and, for each seller, a set of feedback ratings. Your task is to classify each seller based on the average of their feedback ratings. The average for a seller is computed as

$$ \text{average} = \frac{\sum_{i=1}^{n} \text{rating}_i}{n} $$

and the classification rules are as follows:

  • If the average rating is at least 50, the seller is classified as Excellent.
  • If the average rating is non-negative but less than 50, the seller is classified as Good.
  • If the average rating is negative, the seller is classified as Poor.

Read the input from stdin and output the classification for each seller to stdout, one per line.

inputFormat

The first line of input contains an integer T representing the number of sellers. The next T lines each correspond to a seller. Each of these lines starts with an integer n representing the number of feedbacks followed by n integers indicating the feedback ratings.

For example:

3
4 50 60 70 80
3 10 -10 30
2 -20 -30

outputFormat

Output exactly T lines. Each line should contain the classification for the corresponding seller: Excellent, Good, or Poor.

For the sample input above, the output should be:

Excellent
Good
Poor
## sample
3
4 50 60 70 80
3 10 -10 30
2 -20 -30
Excellent

Good Poor

</p>