{"raw_statement":[{"iden":"problem statement","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 the ABC is called ARC, which is rated for contestants with ratings less than $2800$.\nThe contest after the ARC is called AGC, which is rated for all contestants.\nTakahashi's rating on AtCode is $R$. What is the next contest rated for him?"},{"iden":"constraints","content":"*   $0 ≤ R ≤ 4208$\n*   $R$ is an integer."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$R$"},{"iden":"sample input 1","content":"1199"},{"iden":"sample output 1","content":"ABC\n\n$1199$ is less than $1200$, so ABC will be rated."},{"iden":"sample input 2","content":"1200"},{"iden":"sample output 2","content":"ARC\n\n$1200$ is not less than $1200$ and ABC will be unrated, but it is less than $2800$ and ARC will be rated."},{"iden":"sample input 3","content":"4208"},{"iden":"sample output 3","content":"AGC"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}