AtCoder Beginner Contest 104
翻译中…
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 $1200$.
翻译中…
The contest after the ABC is called ARC, which is rated for contestants with ratings less than $2800$.
翻译中…
The contest after the ARC is called AGC, which is rated for all contestants.
翻译中…
Takahashi's rating on AtCode is $R$. What is the next contest rated for him?
翻译中…
Constraints
翻译中…
$0 ≤ R ≤ 4208$$R$is an integer.
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
R
翻译中…
Output
翻译中…
Print the name of the next contest rated for Takahashi (ABC, ARC or AGC).
翻译中…
样例
Input #1
1199
Output #1
ABC
$1199$ is less than $1200$, so ABC will be rated.
Input #2
1200
Output #2
ARC
$1200$ is not less than $1200$ and ABC will be unrated, but it is less than $2800$ and ARC will be rated.
Input #3
4208
Output #3
AGC
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。