100 atcoder#ABC104A. [ABC104A] Rated for Me
[ABC104A] Rated for Me
Score : points
Problem Statement
A programming competition site AtCode regularly holds programming contests.
The next contest on AtCode is called ABC, which is rated for contestants with ratings less than .
The contest after the ABC is called ARC, which is rated for contestants with ratings less than .
The contest after the ARC is called AGC, which is rated for all contestants.
Takahashi's rating on AtCode is . What is the next contest rated for him?
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
Print the name of the next contest rated for Takahashi (ABC
, ARC
or AGC
).
1199
ABC
is less than , so ABC will be rated.
1200
ARC
is not less than and ABC will be unrated, but it is less than and ARC will be rated.
4208
AGC