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).

-----Sample Input-----
1199

-----Sample Output-----
ABC

1199 is less than 1200, so ABC will be rated.
[{"code": "R = int(input())\nif R < 1200:\n    print(\"ABC\")\nelif R < 2800:\n    print(\"ARC\")\nelse:\n    print(\"AGC\")", "passed": true, "time": 0.33, "memory": 14240.0, "status": "done"}, {"code": "r = int(input())\nif r < 1200: \n    print('ABC')\nelif 1200 <= r < 2800:\n    print('ARC')\nelse: \n    print('AGC')\n", "passed": true, "time": 0.19, "memory": 14296.0, "status": "done"}, {"code": "rating = int(input())\nif(rating>=0 and rating<1200):\n  print(\"ABC\")\nelif(rating < 2800):\n  print(\"ARC\")\nelif(rating <= 4208):\n  print(\"AGC\")", "passed": true, "time": 0.15, "memory": 14116.0, "status": "done"}, {"code": "n = int(input())\n\nif n < 1200:\n    print('ABC')\nif n >= 1200 and n < 2800:\n    print('ARC')\nif n >= 2800:\n    print('AGC')", "passed": true, "time": 0.16, "memory": 14112.0, "status": "done"}, {"code": "r = int(input())\nif r < 1200:\n  print(\"ABC\")\nelif r < 2800:\n  print(\"ARC\")\nelse:\n  print(\"AGC\")\n", "passed": true, "time": 0.36, "memory": 14160.0, "status": "done"}, {"code": "n = int(input())\nif n < 1200:\n  print(\"ABC\")\nelif n < 2800:\n  print(\"ARC\")\nelse:\n  print(\"AGC\")", "passed": true, "time": 0.15, "memory": 14040.0, "status": "done"}, {"code": "r = int(input())\n \nif r < 1200:\n  print('ABC')\nelif r < 2800:\n  print('ARC')\nelse:\n  print('AGC')", "passed": true, "time": 0.34, "memory": 14124.0, "status": "done"}, {"code": "R = int(input())\n\nif R < 1200 :\n    print('ABC')\nelif R < 2800 :\n    print('ARC')\nelse :\n    print('AGC')", "passed": true, "time": 0.15, "memory": 14052.0, "status": "done"}, {"code": "r=int(input())\nprint(\"ABC\" if r<1200 else \"ARC\" if r<2800 else \"AGC\")", "passed": true, "time": 0.23, "memory": 14060.0, "status": "done"}, {"code": "r = int(input())\nif r<1200:\n    print('ABC')\nelif r<2800:\n    print('ARC')\nelse:\n    print('AGC')", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "r = int(input())\nif  r < 1200 :\n    print(\"ABC\")\nelif r < 2800 :\n    print(\"ARC\")\nelse :\n    print(\"AGC\")    ", "passed": true, "time": 0.22, "memory": 13992.0, "status": "done"}, {"code": "import bisect, collections, copy, heapq, itertools, math, string, sys\ninput = lambda: sys.stdin.readline().rstrip() \nsys.setrecursionlimit(10**7)\nINF = float('inf')\ndef I(): return int(input())\ndef F(): return float(input())\ndef SS(): return input()\ndef LI(): return [int(x) for x in input().split()]\ndef LI_(): return [int(x)-1 for x in input().split()]\ndef LF(): return [float(x) for x in input().split()]\ndef LSS(): return input().split()\n\ndef resolve():\n    R = I()\n\n    if R < 1200:\n        print('ABC')\n    elif 1200 <= R < 2800:\n        print('ARC')\n    else:\n        print('AGC')\n\ndef __starting_point():\n    resolve()\n\n__starting_point()", "passed": true, "time": 0.2, "memory": 14144.0, "status": "done"}, {"code": "r=int(input())\nif r<1200:print('ABC')\nelif r<2800:print('ARC')\nelse:print('AGC')", "passed": true, "time": 0.18, "memory": 14148.0, "status": "done"}, {"code": "R = int(input())\nif R < 1200:\n  print(\"ABC\")\nelif R < 2800:\n  print(\"ARC\")\nelse:\n  print(\"AGC\")", "passed": true, "time": 0.14, "memory": 14076.0, "status": "done"}, {"code": "a = int(input())\nif a < 1200:\n  print(\"ABC\")\nelif a < 2800:\n  print(\"ARC\")\nelse:\n  print(\"AGC\")", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "r = int(input())\nif r < 1200:\n    print(\"ABC\")\nelif r < 2800:\n    print(\"ARC\")\nelse:\n    print(\"AGC\")", "passed": true, "time": 0.21, "memory": 14268.0, "status": "done"}, {"code": "R = int(input())\n\nif R <1200:\n    print('ABC')\nelif R < 2800:\n    print('ARC')\nelse:\n    print('AGC')", "passed": true, "time": 0.18, "memory": 14008.0, "status": "done"}, {"code": "a = int(input())\n\nif a < 1200:\n    print(\"ABC\")\nelif a < 2800:\n    print(\"ARC\")\nelse:\n    print(\"AGC\")", "passed": true, "time": 0.14, "memory": 14164.0, "status": "done"}, {"code": "r=int(input())\nif r<1200:\n    print(\"ABC\")\nelif 1200<=r<2800:\n    print(\"ARC\")\nelse:\n    print(\"AGC\")", "passed": true, "time": 0.15, "memory": 14096.0, "status": "done"}, {"code": "R=int(input())\nif R<1200:\n  print(\"ABC\")\nelif R<2800:\n  print(\"ARC\")\nelse:\n  print(\"AGC\")", "passed": true, "time": 0.14, "memory": 14028.0, "status": "done"}, {"code": "r = int(input())\nif r>=2800:\n    print(\"AGC\")\nelif r>=1200:\n    print(\"ARC\")\nelse:\n    print(\"ABC\")", "passed": true, "time": 0.14, "memory": 14132.0, "status": "done"}, {"code": "r = int(input())\nif r < 1200:\n  print(\"ABC\")\nelif r < 2800:\n  print(\"ARC\")\nelse:\n  print(\"AGC\")\n", "passed": true, "time": 0.14, "memory": 14276.0, "status": "done"}, {"code": "R=int(input())\nprint(\"A\"+[\"GR\"[R<2800],\"B\"][R<1200]+\"C\")", "passed": true, "time": 0.14, "memory": 14156.0, "status": "done"}, {"code": "r=int(input())\n\nif r<1200:\n    ans=\"ABC\"\n\nelif r<2800:\n    ans=\"ARC\"\n    \nelse:\n    ans=\"AGC\"\n    \nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "r=int(input())\nif r<1200:\n  print('ABC')\nelif r<2800:\n  print('ARC')\nelse:\n  print('AGC')", "passed": true, "time": 0.14, "memory": 14028.0, "status": "done"}, {"code": "num1 = int(input())\n\nwhile(num1 >= 0):\n  if num1 < 1200:\n    print(f\"ABC\")\n  elif num1 >= 1200 and num1 < 2800:\n    print(f\"ARC\")\n  elif num1 >= 2800 and num1 <= 4208:\n    print(f\"AGC\")\n  break\n", "passed": true, "time": 0.14, "memory": 14268.0, "status": "done"}, {"code": "R = int(input())\nif R < 1200:\n  print('ABC')\nelif R < 2800:\n  print('ARC')\nelse:\n  print('AGC')", "passed": true, "time": 0.14, "memory": 14264.0, "status": "done"}, {"code": "R=int(input())\nif R<1200:\n    ans=\"ABC\"\nelif R<2800:\n    ans=\"ARC\"\nelse:\n    ans=\"AGC\"\nprint(ans)", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "a = int(input())\n\nif a < 1200:\n    print(\"ABC\")\nelif 1200 <= a < 2800:\n    print(\"ARC\")\nelif 2800 <= a:\n    print(\"AGC\")", "passed": true, "time": 0.14, "memory": 14220.0, "status": "done"}, {"code": "R = int(input())\n\nif R < 1200:\n   print('ABC')\nelif R < 2800:\n   print('ARC')\nelse:\n   print('AGC')", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "r = int(input())\nif r < 1200:\n  print(\"ABC\")\nelif r < 2800:\n  print(\"ARC\")\nelse:\n  print(\"AGC\")", "passed": true, "time": 0.14, "memory": 14164.0, "status": "done"}, {"code": "r = int(input())\nif r < 1200:\n  print('ABC')\nelif 1200<=r<2800:\n  print('ARC')\nelse:\n  print('AGC')", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "r = int(input())\nif r < 1200:\n    print('ABC')\nelif r < 2800:\n    print('ARC')\nelse:\n    print('AGC')\n", "passed": true, "time": 0.24, "memory": 14208.0, "status": "done"}, {"code": "R = int(input())\nif R < 1200:\n    print(\"ABC\")\nelif R < 2800:\n    print(\"ARC\")\nelse:\n    print(\"AGC\")\n", "passed": true, "time": 0.23, "memory": 14008.0, "status": "done"}, {"code": "R = int(input())\n\nif R < 1200:\n  print('ABC')\nelif 1200 <= R and R < 2800:\n  print('ARC')\nelse:\n  print('AGC')", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "R = int(input())\n\nif R >= 2800:\n    print('AGC')\nelif R >= 1200:\n    print('ARC')\nelse:\n    print('ABC')", "passed": true, "time": 0.14, "memory": 14192.0, "status": "done"}, {"code": "n = int(input())\nif n < 1200:\n  print(\"ABC\")\nelif n < 2800:\n  print(\"ARC\")\nelse:\n  print(\"AGC\")", "passed": true, "time": 0.14, "memory": 14036.0, "status": "done"}, {"code": "R = int(input())\nif R < 1200:\n    print('ABC')\nelif R < 2800:\n    print('ARC')\nelse:\n    print('AGC')", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "R = int(input())\n\nif R < 1200:\n  print('ABC')\nelif R < 2800:\n  print('ARC')\nelse:\n  print('AGC')\n", "passed": true, "time": 0.21, "memory": 14220.0, "status": "done"}, {"code": "def main():\n    n = int(input())\n    if n < 1200:\n        print(\"ABC\")\n    elif 1200 <= n < 2800:\n        print(\"ARC\")\n    else:\n        print(\"AGC\")\n\n\nmain()", "passed": true, "time": 0.23, "memory": 14076.0, "status": "done"}, {"code": "r=int(input())\nif r<1200:\n  print('ABC')\nelif r<2800:\n  print(\"ARC\")\nelse:\n  print(\"AGC\")", "passed": true, "time": 0.15, "memory": 14124.0, "status": "done"}, {"code": "R=int(input())\nif R<1200:\n  T='ABC'\nelif R<2800:\n  T='ARC'\nelse:\n  T='AGC'\nprint(T)", "passed": true, "time": 0.15, "memory": 14276.0, "status": "done"}, {"code": "R = int(input())\nif R < 1200:\n    print('ABC')\nelif R < 2800:\n    print('ARC')\nelse:\n    print('AGC')", "passed": true, "time": 0.14, "memory": 13984.0, "status": "done"}, {"code": "r = int(input())\n\nif r < 1200:\n    print('ABC')\nelif r < 2800:\n    print('ARC')\nelse:\n    print('AGC')\n", "passed": true, "time": 0.18, "memory": 14036.0, "status": "done"}, {"code": "r = int(input())\n\nif r < 1200:\n    print('ABC')\nelif r < 2800:\n    print('ARC')\nelse:\n    print('AGC')\n", "passed": true, "time": 0.21, "memory": 14140.0, "status": "done"}, {"code": "r = int(input())\nif r < 1200:\n  print(\"ABC\")\nelif r < 2800:\n  print(\"ARC\")\nelse:\n  print(\"AGC\")", "passed": true, "time": 0.18, "memory": 14164.0, "status": "done"}, {"code": "R = int(input())\nif R < 1200:\n    print('ABC')\nelif R < 2800:\n    print('ARC')\nelse:\n    print('AGC')", "passed": true, "time": 0.14, "memory": 14248.0, "status": "done"}, {"code": "R = int(input())\n\nif R < 1200:\n    print('ABC')\nelif R < 2800:\n    print('ARC')\nelse:\n    print('AGC')\n", "passed": true, "time": 0.14, "memory": 14168.0, "status": "done"}, {"code": "r = int (input ())\nif r >= 2800:\n  print ('AGC')\nelif r >= 1200:\n  print ('ARC')\nelse:\n  print ('ABC')", "passed": true, "time": 0.18, "memory": 14036.0, "status": "done"}, {"code": "R = int(input().rstrip())\nif R < 1200:\n    print(\"ABC\")\nelif R < 2800:\n    print(\"ARC\")\nelse:\n    print(\"AGC\")", "passed": true, "time": 0.14, "memory": 14308.0, "status": "done"}, {"code": "r=int(input())\nif r<1200:\n    print(\"ABC\")\nelif 1200<=r<2800:\n    print(\"ARC\")\nelse:\n    print(\"AGC\")", "passed": true, "time": 0.14, "memory": 14216.0, "status": "done"}, {"code": "i=int(input())\nprint('A%sC'%(\"B\"if i<1200 else \"R\"if i<2800 else\"G\"))", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "r = int(input())\nif r < 1200:\n    print('ABC')\nelif r < 2800:\n    print('ARC')\nelse:\n    print('AGC')", "passed": true, "time": 0.14, "memory": 14132.0, "status": "done"}, {"code": "rating = int(input())\n\nif rating < 1200:\n    print('ABC')\nelif 1200 <= rating < 2800:\n    print('ARC')\nelif rating >= 2800:\n    print('AGC')\n", "passed": true, "time": 0.14, "memory": 14280.0, "status": "done"}, {"code": "R = int(input())\n\nif R < 1200:\n  print(\"ABC\")\nelif R < 2800:\n  print(\"ARC\")\nelse:\n  print(\"AGC\")", "passed": true, "time": 0.14, "memory": 14032.0, "status": "done"}, {"code": "R = int(input())\nif R < 1200:\n  print(\"ABC\")\nelif R < 2800:\n  print(\"ARC\")\nelse:\n  print(\"AGC\")", "passed": true, "time": 0.14, "memory": 14168.0, "status": "done"}, {"code": "r = int(input())\nprint('ABC' if r < 1200 else 'ARC' if r < 2800 else 'AGC')", "passed": true, "time": 0.14, "memory": 14068.0, "status": "done"}, {"code": "a = int(input())\nif a < 1200:\n  print(\"ABC\")\nelif a < 2800:\n  print(\"ARC\")\nelse:\n  print(\"AGC\")\n", "passed": true, "time": 0.14, "memory": 14160.0, "status": "done"}, {"code": "N = int(input())\nif N < 1200:\n  print('ABC')\nelif N < 2800:\n  print('ARC')\nelse:\n  print('AGC')", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "r = int(input())\nif r<1200:\n  print(\"ABC\")\nelif r>=1200 and r<2800:\n  print(\"ARC\")\nelse:\n  print(\"AGC\")", "passed": true, "time": 0.24, "memory": 14092.0, "status": "done"}, {"code": "r = int(input())\nif r < 1200:\n  print(\"ABC\")\nelif r < 2800:\n  print(\"ARC\")\nelse:\n  print(\"AGC\")", "passed": true, "time": 0.24, "memory": 14180.0, "status": "done"}, {"code": "n=int(input())\nif n <1200:\n  print(\"ABC\")\nelif 1200<=n<2800:\n  print(\"ARC\")\nelse:\n  print(\"AGC\")", "passed": true, "time": 0.27, "memory": 14096.0, "status": "done"}, {"code": "rate = int(input())\nif rate < 1200:\n  print(\"ABC\")\nelif rate >= 2800:\n  print(\"AGC\")\nelse:\n  print(\"ARC\")", "passed": true, "time": 0.72, "memory": 14060.0, "status": "done"}, {"code": "r = int(input())\nif r < 1200:\n  print(\"ABC\")\nelif r < 2800:\n  print(\"ARC\")\nelse:\n  print(\"AGC\")", "passed": true, "time": 0.14, "memory": 14136.0, "status": "done"}, {"code": "# -*- coding: utf-8 -*-\n# \u6a19\u6e96\u5165\u529b\u3092\u53d6\u5f97\nR = int(input())\n\n# \u6c42\u89e3\u51e6\u7406\nans = str()\nif R < 1200:\n    ans = \"ABC\"\nelif R < 2800:\n    ans = \"ARC\"\nelse:\n    ans = \"AGC\"\n\n# \u7d50\u679c\u51fa\u529b\nprint(ans)\n", "passed": true, "time": 0.17, "memory": 14372.0, "status": "done"}, {"code": "r = int(input())\nif r < 1200: ans = \"ABC\"\nelif r < 2800: ans = \"ARC\"\nelse: ans = \"AGC\"\nprint(ans)", "passed": true, "time": 0.35, "memory": 14360.0, "status": "done"}, {"code": "R=int(input())\nif R<1200:\n    print(\"ABC\")\nelif R<2800:\n    print(\"ARC\")\nelse:\n    print(\"AGC\")\n", "passed": true, "time": 0.72, "memory": 14220.0, "status": "done"}, {"code": "a = int(input())\nif a<1200:\n  print(\"ABC\")\nelif a<2800:\n  print(\"ARC\")\nelse:\n  print(\"AGC\")", "passed": true, "time": 0.14, "memory": 14028.0, "status": "done"}, {"code": "R = int(input())\nprint((['ARC','ABC','AGC'][R < 1200 or -(R >= 2800) ]))\n", "passed": true, "time": 0.23, "memory": 14096.0, "status": "done"}, {"code": "R=int(input())\nprint(\"A\"+\"RGB\"[(R>=2800)+2*(R<1200)]+\"C\")", "passed": true, "time": 0.28, "memory": 14204.0, "status": "done"}, {"code": "R = int(input())\nif R < 1200:\n    print('ABC')\nelif 1200 <= R < 2800:\n    print('ARC')\nelse:\n    print('AGC')", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "r = int(input())\nif r < 1200:\n  print('ABC')\nelif r < 2800:\n  print('ARC')\nelse:\n  print('AGC')", "passed": true, "time": 0.14, "memory": 14132.0, "status": "done"}, {"code": "R=int(input())\n\nif R<1200:\n    print(\"ABC\")\nelif R<2800:\n    print(\"ARC\")\nelse:\n    print(\"AGC\")\n", "passed": true, "time": 0.14, "memory": 14264.0, "status": "done"}, {"code": "a=int(input())\nprint([\"ABC\",\"ARC\",\"AGC\"][(a>=1200)+(a>=2800)])", "passed": true, "time": 0.21, "memory": 14148.0, "status": "done"}, {"code": "n=int(input())\nprint('ABC' if 0<=n<1200 else 'ARC' if 1200<=n<2800 else 'AGC')", "passed": true, "time": 0.14, "memory": 14152.0, "status": "done"}, {"code": "r = int(input())\n\nif r < 1200:\n    print('ABC')\nelif 1200 <= r < 2800:\n    print('ARC')\nelif 2800 <= r:\n    print('AGC')", "passed": true, "time": 0.14, "memory": 14096.0, "status": "done"}, {"code": "R = int(input())\nif R < 1200:\n    print('ABC')\nelif R < 2800:\n    print('ARC')\nelse:\n    print('AGC')", "passed": true, "time": 0.2, "memory": 14168.0, "status": "done"}, {"code": "R = int(input())\nif R<1200:\n\tprint(\"ABC\")\nelif R<2800:\n\tprint(\"ARC\")\nelse:\n\tprint(\"AGC\")", "passed": true, "time": 0.2, "memory": 14136.0, "status": "done"}, {"code": "r = int(input())\nif r < 1200:\n    print('ABC')\nelif 1200 <= r < 2800:\n    print('ARC')\nelse:\n    print('AGC')", "passed": true, "time": 0.14, "memory": 14252.0, "status": "done"}, {"code": "r = int(input())\nif r <= 1199:\n    print('ABC')\nelif r <= 2799:\n    print('ARC')\nelse:\n    print('AGC') ", "passed": true, "time": 0.22, "memory": 14024.0, "status": "done"}, {"code": "r=int(input())\nif r <1200:\n  ans=\"ABC\"\nelif 1200<=r<2800:\n  ans=\"ARC\"\nelse:\n  ans=\"AGC\"\nprint(ans)", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "a = int(input())\nif a < 1200:\n  print('ABC')\nelif a >= 1200 and a < 2800:\n  print('ARC')\nelse:\n  print('AGC')\n", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "R = int(input())\n\nif R < 1200:\n  print(\"ABC\")\nelif R < 2800:\n  print(\"ARC\")\nelse:\n  print(\"AGC\")", "passed": true, "time": 0.13, "memory": 14152.0, "status": "done"}, {"code": "\nr=int(input())\nif r<1200:\n    print('ABC')\nelif 1200<=r and r<2800:\n    print('ARC')\nelse:\n    print('AGC')", "passed": true, "time": 0.16, "memory": 14188.0, "status": "done"}, {"code": "#\n# abc104 a\n#\nimport sys\nfrom io import StringIO\nimport unittest\n\n\nclass TestClass(unittest.TestCase):\n    def assertIO(self, input, output):\n        stdout, stdin = sys.stdout, sys.stdin\n        sys.stdout, sys.stdin = StringIO(), StringIO(input)\n        resolve()\n        sys.stdout.seek(0)\n        out = sys.stdout.read()[:-1]\n        sys.stdout, sys.stdin = stdout, stdin\n        self.assertEqual(out, output)\n\n    def test_\u5165\u529b\u4f8b_1(self):\n        input = \"\"\"1199\"\"\"\n        output = \"\"\"ABC\"\"\"\n        self.assertIO(input, output)\n\n    def test_\u5165\u529b\u4f8b_2(self):\n        input = \"\"\"1200\"\"\"\n        output = \"\"\"ARC\"\"\"\n        self.assertIO(input, output)\n\n    def test_\u5165\u529b\u4f8b_3(self):\n        input = \"\"\"4208\"\"\"\n        output = \"\"\"AGC\"\"\"\n        self.assertIO(input, output)\n\n\ndef resolve():\n    R = int(input())\n\n    if R < 1200:\n        print(\"ABC\")\n    elif R < 2800:\n        print(\"ARC\")\n    else:\n        print(\"AGC\")\n\n\ndef __starting_point():\n    # unittest.main()\n    resolve()\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14472.0, "status": "done"}, {"code": "r = int(input())\n\nif r < 1200:\n    print(\"ABC\")\nelif r <2800:\n    print(\"ARC\")\nelse:\n    print(\"AGC\") \n", "passed": true, "time": 0.16, "memory": 14272.0, "status": "done"}, {"code": "r = int(input())\nprint(\"ABC\" if r<1200\n      else \"ARC\" if r <2800\n      else \"AGC\")", "passed": true, "time": 0.14, "memory": 14272.0, "status": "done"}, {"code": "R = int(input())\nif R < 1200:\n    ans = \"ABC\"\nelif R < 2800:\n    ans = \"ARC\"\nelse:\n    ans = \"AGC\"\nprint(ans)\n", "passed": true, "time": 0.21, "memory": 14056.0, "status": "done"}, {"code": "R=int(input())\nprint(\"ABC\" if R<1200\n      else \"ARC\" if R<2800\n      else \"AGC\")", "passed": true, "time": 0.14, "memory": 14204.0, "status": "done"}, {"code": "R = int(input())\n\nif R < 1200:\n    print('ABC')\nelif R < 2800:\n    print('ARC')\nelse:\n    print('AGC')", "passed": true, "time": 0.14, "memory": 14036.0, "status": "done"}, {"code": "a=int(input())\nif a>=2800:\n  print(\"AGC\")\nif 1200<=a<2800:\n  print(\"ARC\")\nif a<1200:\n  print(\"ABC\")", "passed": true, "time": 0.14, "memory": 14232.0, "status": "done"}, {"code": "R = int(input())\n\nif R < 1200:\n    print(\"ABC\")\nelif R < 2800:\n    print(\"ARC\")\nelse:\n    print(\"AGC\")", "passed": true, "time": 0.14, "memory": 14252.0, "status": "done"}, {"code": "r=int(input())\nif r<1200:\n  print('ABC')\nelif r<2800:\n  print('ARC')\nelse:\n  print('AGC')", "passed": true, "time": 0.14, "memory": 14240.0, "status": "done"}, {"code": "n=int(input())\nif n<1200:\n    print(\"ABC\")\nelif n<2800:\n    print(\"ARC\")\nelse:\n    print(\"AGC\")", "passed": true, "time": 0.14, "memory": 14076.0, "status": "done"}, {"code": "R = int(input())\n\nif R < 1200:\n    print(\"ABC\")\nelif R < 2800:\n    print(\"ARC\")\nelse:\n    print(\"AGC\")", "passed": true, "time": 0.14, "memory": 14040.0, "status": "done"}, {"code": "R = int(input())\nif R < 1200:\n    print('ABC')\nelif R < 2800:\n    print('ARC')\nelse:\n    print('AGC')\n", "passed": true, "time": 0.14, "memory": 14032.0, "status": "done"}, {"code": "R=int(input())\nif R<1200:\n  print(\"ABC\")\nelif R<2800:\n  print(\"ARC\")\nelse:\n  print(\"AGC\")", "passed": true, "time": 0.14, "memory": 14272.0, "status": "done"}, {"code": "r = int(input())\nif r < 1200:\n    print('ABC')\nelif r < 2800:\n    print('ARC')\nelse:\n    print('AGC')", "passed": true, "time": 0.14, "memory": 14032.0, "status": "done"}, {"code": "a=input()\nif int(a)<=1199:\n  print(\"ABC\")\nelif int(a)<=2799:\n  print(\"ARC\")\nelse:\n  print(\"AGC\")", "passed": true, "time": 0.16, "memory": 14092.0, "status": "done"}]