Rated for Me

AtCoder
IDabc104_a
Time2000ms
Memory256MB
Difficulty
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$ [samples]
Samples
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
API Response (JSON)
{
  "problem": {
    "name": "Rated for Me",
    "description": {
      "content": "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 ",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc104_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "A programming competition site _AtCode_ regularly holds programming contests.\nThe next contest on AtCode is called ABC, which is rated for contestants with ratings less than $1200$.\nThe contest after ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments