100 #ABC104A. [ABC104A] Rated for Me

[ABC104A] Rated for Me

Score : 100100 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 12001200.

The contest after the ABC is called ARC, which is rated for contestants with ratings less than 28002800.

The contest after the ARC is called AGC, which is rated for all contestants.

Takahashi's rating on AtCode is RR. What is the next contest rated for him?

Constraints

  • 0R42080 \leq R \leq 4208
  • RR is an integer.

Input

Input is given from Standard Input in the following format:

RR

Output

Print the name of the next contest rated for Takahashi (ABC, ARC or AGC).

1199
ABC

11991199 is less than 12001200, so ABC will be rated.

1200
ARC

12001200 is not less than 12001200 and ABC will be unrated, but it is less than 28002800 and ARC will be rated.

4208
AGC