## Valentine's Day '19 J1 - Rainbow Rating

View as PDF

Points: 3
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

The administrators of DMOJ have become bored with the current rating colours that they have. With the highest possible rating being the infamous Target, they have decided to add a new rating category that is a mixture of multiple colours, the Rainbow Rating. This special category is reserved for those who are able to obtain a rating greater than or equal to . Now, the rating chart is as follows:

Rating Chart
<1000Newbie
1000-1199Amateur
1200-1499Expert
1500-1799Candidate Master
1800-2199Master
2200-2999Grandmaster
3000-3999Target

Anything above or equal to will be considered Rainbow Rating, with the distinguished title of Rainbow Master.

You are given the rating of users. For each user, can you output the category that each user belongs to?

#### Constraints

, where is the rating of the user.

#### Input Specification

The first line of input will contain .

The next lines of input will contain , the rating of the user.

#### Output Specification

According to the rating given, output the rating category the user belongs to.

#### Sample Input

9
3
1001
1309
1567
2000
2999
3502
9999
-1231224

#### Sample Output

Newbie
Amateur
Expert
Candidate Master
Master
Grandmaster
Target
Rainbow Master
Newbie