Problem:


Score : 100 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 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 1

1199

Sample Output 1

ABC

1199 is less than 1200, so ABC will be rated.

Sample Input 2

1200

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

Sample Input 3

4208

Sample Output 3

AGC



Sample input:
1199


Sample output:
ABC

Submission status: Accepted

Solution code:
r=int(input())

if 0<=r<1200:
  print('ABC')
elif 1200<=r<2800:
  print('ARC')
elif 2800<=r<=4208:
  print('AGC')

Submission status: Accepted

Solution code:
N = int(input())

if 0 <= N < 1200:
  print("ABC")
elif 1200 <= N < 2800:
  print("ARC")
else:
  print("AGC")

Submission status: Accepted

Solution code:
R=int(input())
if R>=2800:
  print("AGC")
elif R>=1200:
  print("ARC")
else:
  print("ABC")

Submission status: Accepted

Solution code:
r=int(input())

if r<1200:
    print("ABC")

elif 1200<=r<2800:
    print("ARC")

else:
    print("AGC")

Submission status: Accepted

Solution code:
R = int(raw_input())
if R < 1200: print 'ABC'
elif R < 2800: print 'ARC'
else: print 'AGC'

Submission status: Accepted

Solution code:
r = int(input())
if r < 1200:
  print('ABC')
elif 1200 <= r < 2800:
  print('ARC')
else:
  print('AGC')

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    R = int(input())

    if R < 1200:
        print("ABC")
    elif R < 2800:
        print("ARC")
    else:
        print("AGC")

Submission status: Accepted

Solution code:
r = int(input())
ans = 'AGC'
if r < 1200:
    ans = 'ABC'
elif r < 2800:
    ans = 'ARC'
print(ans)

Submission status: Accepted

Solution code:
a = int(input()) 
A=['ABC','ARC','AGC']
if a <1200:
  print(A[0])
elif a <2800:
  print(A[1])
else:
  print(A[2])

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys


def solve(R: int):
    if R < 1200:
        print("ABC")
    elif R < 2800:
        print("ARC")
    else:
        print("AGC")

    return


# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    R = int(next(tokens))  # type: int
    solve(R)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
R = int(input())

if R < 1200:
  print('ABC')
elif R <2800:
  print('ARC')
else:
  print('AGC')

Submission status: Accepted

Solution code:
a = int(input())

if a < 1200 :
    print("ABC")
elif a < 2800 :
    print("ARC")
else :
    print("AGC")

Submission status: Accepted

Solution code:
R = int(input())

if R < 1200:
    print ('ABC')
elif 1200 <= R and R < 2800:
    print ('ARC')
else:
    print ('AGC')

Submission status: Accepted

Solution code:
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    r = f()[0]

    if r<1200:
        print('ABC')
    elif r<2800:
        print('ARC')
    else:
        print('AGC')

solve()

Submission status: Accepted

Solution code:
r = int(input())
if r < 1200 :
  print("ABC")
else :
  print("ARC" if r < 2800 else "AGC")

Submission status: Accepted

Solution code:
r = int(input())

if r < 1200:
  print("ABC")
elif r >= 1200 and r < 2800:
  print("ARC")
else:
  print("AGC")

Submission status: Accepted

Solution code:
point = int(input())
if point < 1200:
    print('ABC')
elif point < 2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
r = int(input())
if r < 1200:
    print("ABC")
elif r>=1200 and r<2800:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
from sys import stdin

R = int(stdin.readline().rstrip())

if R < 1200:
    print('ABC')
elif R < 2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
n=int(input())
if n<1200:
  print('ABC')
elif n>=2800:
  print('AGC')
else:
  print('ARC')

Submission status: Accepted

Solution code:
R = int(input())
if R<1200:
	print('ABC')
elif R<2800:
	print('ARC')
else:
	print('AGC')

Submission status: Accepted

Solution code:
import sys


def input():
    return sys.stdin.readline()[:-1]

# N = int(input())
# A = [int(x) for x in input().split()]
# a, b, c = map(int, input().split())
# name1 = str(input())
# alph = {"A": 1, "B": 2, "C": 3, "D": 4, "E": 5}


N=int(input())
if N <1200:
    print("ABC")
elif N <2800:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys


def solve(R: int):
    if R < 1200:
        ret = 'ABC'
    elif R < 2800:
        ret = 'ARC'
    else:
        ret = 'AGC'
    print(ret)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    R = int(next(tokens))  # type: int
    solve(R)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
r = int(input())

if (r < 1200):
    print("ABC")
elif(r < 2800):
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
n = int(input())
if n < 1200:
    print("ABC")
elif n <2800:
    print("ARC")
else:
	print("AGC")

Submission status: Accepted

Solution code:
a = int(input())
if(a < 1200):
  print("ABC")
elif(a < 2800):
  print("ARC")
else:
  print("AGC")

Submission status: Accepted

Solution code:
###############################################################################

from sys import stdout
from bisect import bisect_left as binl
from copy import copy, deepcopy
from collections import defaultdict


mod = 1


def intin():
    input_tuple = input().split()
    if len(input_tuple) <= 1:
        return int(input_tuple[0])
    return tuple(map(int, input_tuple))


def intina():
    return [int(i) for i in input().split()]


def intinl(count):
    return [intin() for _ in range(count)]


def modadd(x, y):
    global mod
    return (x + y) % mod


def modmlt(x, y):
    global mod
    return (x * y) % mod


def lcm(x, y):
    while y != 0:
        z = x % y
        x = y
        y = z
    return x


def combination(x, y):
    assert(x >= y)

    if y > x // 2:
        y = x - y

    ret = 1

    for i in range(0, y):
        j = x - i
        i = i + 1

        ret = ret * j
        ret = ret // i

    return ret


def get_divisors(x):
    retlist = []
    for i in range(1, int(x**0.5) + 3):
        if x % i == 0:
            retlist.append(i)
            retlist.append(x // i)
    return retlist


def get_factors(x):
    retlist = []
    for i in range(2, int(x**0.5) + 3):
        while x % i == 0:
            retlist.append(i)
            x = x // i
    retlist.append(x)
    return retlist


def make_linklist(xylist):
    linklist = {}
    for a, b in xylist:
        linklist.setdefault(a, [])
        linklist.setdefault(b, [])
        linklist[a].append(b)
        linklist[b].append(a)
    return linklist


def calc_longest_distance(linklist, v=1):
    distance_list = {}
    distance_count = 0
    distance = 0
    vlist_previous = []
    vlist = [v]
    nodecount = len(linklist)

    while distance_count < nodecount:
        vlist_next = []
        for v in vlist:
            distance_list[v] = distance
            distance_count += 1
            vlist_next.extend(linklist[v])
        distance += 1
        vlist_to_del = vlist_previous
        vlist_previous = vlist
        vlist = list(set(vlist_next) - set(vlist_to_del))

    max_distance = -1
    max_v = None
    for v, distance in distance_list.items():
        if distance > max_distance:
            max_distance = distance
            max_v = v

    return (max_distance, max_v)


def calc_tree_diameter(linklist, v=1):
    _, u = calc_longest_distance(linklist, v)
    distance, _ = calc_longest_distance(linklist, u)
    return distance


###############################################################################


def main():
    r = intin()

    if r < 1200:
        print('ABC')
    elif r < 2800:
        print('ARC')
    else:
        print('AGC')


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
R = int(input())
if R < 1200:
  print('ABC')
  exit()
if R < 2800:
  print('ARC')
  exit()
print('AGC')

Submission status: Accepted

Solution code:
R = int(input())
if R < 1200:
    print("ABC")
elif 1200 <= R and R < 2800:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
r=int(input())
if r<1200:
  print('ABC')
elif r>=2800:
  print('AGC')
else:
  print('ARC')

Submission status: Accepted

Solution code:
r=int(input())
if r<1200:ans='ABC'
elif r>=2800 :ans='AGC'
else:ans='ARC'
print(ans)

Submission status: Accepted

Solution code:
a =int(input())
if a<1200:
    print('ABC')
elif a<2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
a = int(input())
if a < 1200:
    print('ABC')
elif a < 2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
r=int(input())
if r < 1200:
    print('ABC')
elif r <2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
R = int(input().strip())
print(['ABC','ARC','AGC'][len([1 for th in [1200, 2800] if R >= th])])

Submission status: Accepted

Solution code:
a = int(input())
if a < 1200:
  print("ABC")
elif 1200<= a < 2800:
  print("ARC")
else:
  print("AGC")

Submission status: Accepted

Solution code:
r = int(input())
ans = ''
if r < 1200:
  ans = 'ABC'
elif r < 2800:
  ans = 'ARC'
else:
  ans = 'AGC'

print(ans)

Submission status: Accepted

Solution code:
a = int(input())

if a < 1200:
    print("ABC")
elif a < 2800:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
rate = int(input())
if rate < 1200:
  print("ABC")
elif rate < 2800:
  print("ARC")
else:
  print("AGC")

Submission status: Accepted

Solution code:
r = int(input())

if r < 2800:
    if r < 1200:
        ans = 'ABC'
    else:
        ans = 'ARC'
else:
    ans = 'AGC'
print(ans)

Submission status: Accepted

Solution code:
R = int(input())
if R <= 1199:
    print("ABC")
elif R <= 2799:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
r=int(input()) 
print('ABC' if r<1200 else 'ARC' if r < 2800 else 'AGC')

Submission status: Accepted

Solution code:
a = int(input())
if a<1200:
    print('ABC')
elif 1199<a<2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
x = int(input())
l0 = [1200,2800,9999]
l1 = ["ABC","ARC","AGC"]

for i in range(3):
  if x < l0[i]:
    print(l1[i])
    break

Submission status: Accepted

Solution code:
rating = int(input())
if rating < 1200:
  print("ABC")
elif rating <2800:
  print('ARC')
else:
  print('AGC')

Submission status: Accepted

Solution code:
R =int(input())
if R<1200:
  print('ABC')
elif R<2800:
  print('ARC')
else:
  print('AGC')

Submission status: Accepted

Solution code:
a=int(input())

if a < 1200:
 print("ABC")
elif a < 2800:
 print("ARC")
else:
 print("AGC")

Submission status: Accepted

Solution code:
r = int(input())
if r < 1200:
    ans = 'ABC'
elif r<2800:
    ans = 'ARC'
else:
    ans = 'AGC'
print(ans)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
from math import *
from itertools import *
from collections import *
from functools import *
try:
    from math import gcd
except Exception:
    from fractions import gcd


def solve(R: int):
    if R < 1200:
        return 'ABC'
    elif R < 2800:
        return 'ARC'
    return 'AGC'


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    R = int(next(tokens))  # type: int
    result = solve(R)
    print(result)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
A=int(input())
if A<1200:
    print("ABC")
elif 1200<=A<2800:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
r = int(input())

if r <= 1199:
  print("ABC")
elif r > 1199 and r <= 2799:
  print("ARC")
else:
  print("AGC")

Submission status: Accepted

Solution code:
R = int(input())
if R < 1200:
  print('ABC')
elif R < 2800:
  print('ARC')
else:
  print('AGC')

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

n = int(input())

if n<1200:
    print('ABC')
elif n<2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
a=int(input())
if a<1200:
  print("ABC")
elif 1199<a<2800:
  print("ARC")
else:
  print("AGC")

Submission status: Accepted

Solution code:
R = int(input())
if R >= 2800:
  print("AGC")
elif R < 2800 and R >= 1200:
  print("ARC")
else:
  print("ABC")

Submission status: Accepted

Solution code:
R = int(input())
if R < 1200:
    print("ABC")
elif R < 2800:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
rate=int(input())
if rate<1200:
    ans="ABC"
elif rate>=1200 and rate<2800:
    ans="ARC"
else:
    ans="AGC"
print(ans)

Submission status: Accepted

Solution code:
R = int(input())
if R < 1200:
    ans = "ABC"
elif R <2800:
    ans = "ARC"
else:
    ans = "AGC"

print(ans)

Submission status: Accepted

Solution code:
r=int(input())
if r < 1200:
    print('ABC')
elif 1200 <= r < 2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
a=int(input())
print("ABC" if a<=1199 else "ARC" if a<=2799 else "AGC")

Submission status: Accepted

Solution code:
a=int(input())
print(["AGC","ARC","ABC"][(a < 2800) + (a < 1200)])

Submission status: Accepted

Solution code:
r = int(input())
if r < 1200:
   print('ABC')
elif 1200 <= r and r < 2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
R = int(input())
if R < 1200:
    print("ABC")
elif R >= 1200 and R < 2800:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
R = int(input())
if R<1200:
    print('ABC')
elif R<2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
n=int(input())
print("A"+("B" if n<1200 else "G" if n>2799 else "R")+"C")

Submission status: Accepted

Solution code:
n = int(input())
if n<1200: print("ABC")
elif n<2800: print("ARC")
else: print("AGC")

Submission status: Accepted

Solution code:
s=int(input());print("ABC" if s < 1200 else "ARC" if s < 2800 else "AGC")

Submission status: Accepted

Solution code:
import functools

import os

INF = float('inf')


def inp():
    return int(input())


def inpf():
    return float(input())


def inps():
    return input()


def inl():
    return list(map(int, input().split()))


def inlf():
    return list(map(float, input().split()))


def inls():
    return input().split()


def debug(fn):
    if not os.getenv('LOCAL'):
        return fn

    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        print('DEBUG: {}({}) -> '.format(
            fn.__name__,
            ', '.join(
                list(map(str, args)) +
                ['{}={}'.format(k, str(v)) for k, v in kwargs.items()]
            )
        ), end='')
        ret = fn(*args, **kwargs)
        print(ret)
        return ret

    return wrapper


r = inp()
print('ABC' if r < 1200 else 'ARC' if r < 2800 else 'AGC')

Submission status: Accepted

Solution code:
R = int(input())
ls = [0, 1200, 2800, 4400]
name = ['ABC', 'ARC', 'AGC']
for i, (x, y) in enumerate(zip(ls, ls[1:])):
    if x <= R < y:
        print(name[i])

Submission status: Accepted

Solution code:
r=int(input())

if r<1200:
    print('ABC')
elif r<2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
r = int(input())

if r < 1200:
    print('ABC')
elif 1200 <= r < 2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
# ABC104A - Rated for Me
r = int(input())
if r < 1200:
    print("ABC")
elif 1200 <= r < 2800:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
x = int(input())
if x <= 1199:
  print('ABC')
elif x <= 2799:
  print('ARC')
else:
  print('AGC')

Submission status: Accepted

Solution code:
r=int(input())
if r <1200:
    print('ABC')
elif r<2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
R = int(input())
if(R<1200):
    print("ABC")
elif(R<2800):
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
R = int(input())
if R < 1200:
    print('ABC')
elif(1200 <= R < 2800):
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
R =int(input())
if R <1200:
  print('ABC')
elif R <2800:
  print('ARC')
else:
  print('AGC')

Submission status: Accepted

Solution code:
R = int(input())
if R < 1200:
	print("ABC")
elif R < 2800:
	print("ARC")
else:
	print("AGC")

Submission status: Accepted

Solution code:
def main():
  R = int(input())

  if R < 1200:
    print('ABC')
  elif R < 2800:
    print('ARC')
  else:
    print('AGC')
main()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

R = int(input())

if R < 1200:
    print('ABC')
elif R < 2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
a=int(input())
print("ABC" if a<1200 else "ARC" if a<2800 else "AGC")

Submission status: Accepted

Solution code:
R = int(input())
if  R < 1200  :
    print("ABC")
elif R < 2800 :
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
R=int(input())
if R<1200:
	print("ABC")
elif 1200<=R<2800:
	print("ARC")
else:
	print("AGC")

Submission status: Accepted

Solution code:
a = int(input())
if a < 1200 :
    print('ABC')
elif a >= 1200 and a < 2800 :
    print('ARC')
else :
    print('AGC')

Submission status: Accepted

Solution code:
def main():
	R = int(input())
	if R < 1200:
		print("ABC")
	elif R < 2800:
		print("ARC")
	else:
		print("AGC")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#104 A
R=int(input())

if R <1200:
    print('ABC')
elif R<2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
R = int(input())

if R<1200:
  ans = 'ABC'
elif R<2800:
  ans = 'ARC'
else:
  ans = 'AGC'

print(ans)

Submission status: Accepted

Solution code:
R = int(input())
if(R <1200):
  print("ABC")
elif( R >=1200 and R<2800):
  print("ARC")
else:
  print("AGC")

Submission status: Accepted

Solution code:
R = int(input())

if 0 <= R < 1200:
    print('ABC')
elif R < 2800:
    print('ARC')
elif R <= 4208:
    print('AGC')

Submission status: Accepted

Solution code:
r=int(input())
if r < 1200:
	print("ABC")
elif r < 2800:
	print("ARC")
else:
	print("AGC")

Submission status: Accepted

Solution code:
R = int(input())
if R >= 2800:
  print("AGC")
elif R >= 1200:
  print("ARC")
else:
  print("ABC")

Submission status: Accepted

Solution code:
R = int(input())

if R >= 2800:
    print('AGC')
elif R < 1200:
    print('ABC')
else:
    print('ARC')

Submission status: Accepted

Solution code:
R = int(input())
print('ABC' if R < 1200 else 'ARC' if 1200 <= R < 2800 else 'AGC')

Submission status: Accepted

Solution code:
S = int(input())
print("ABC" if S < 1200 else "ARC" if S < 2800 else "AGC")

Submission status: Accepted

Solution code:
n = int(input())
if n<1200:
  print('ABC')
elif n<2800:
  print('ARC')
else:
  print('AGC')

Submission status: Accepted

Solution code:
R = int(input())
print(["ABC", "ARC", "AGC"][(1200<=R<2800) - (2800<=R)])

Submission status: Accepted

Solution code:
a = int(input())
if a < 1200:
 print("ABC")
elif a < 2800:
 print("ARC")
else:
 print("AGC")

Submission status: Accepted

Solution code:
#!/usr/bin/python

def main():
    R = int(input())
    if R < 1200:
        print("ABC")
    elif R < 2800:
        print("ARC")
    else:
        print("AGC")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a=int(input())
if a<1200:
  print("ABC")
elif a<2800:
  print("ARC")
else:
  print("AGC")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

R = int(input())

if R < 1200:
    print('ABC')
elif R < 2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
R=int(input())
if R<1200: print("ABC")
elif R<2800: print("ARC")
else: print("AGC")

Submission status: Accepted

Solution code:
R = input()
R = int(R)
if R < 1200:
    print('ABC')
elif R < 2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
r=int(input())
if(r<1200):
    print('ABC')
elif (r<2800):
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
import itertools
import collections
import functools
import math
from queue import Queue
INF = float("inf")


def solve(R: int):
    if R < 1200:
        print("ABC")
    elif R < 2800:
        print("ARC")
    else:
        print("AGC")
    return


def main():

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    R = int(next(tokens))  # type: int
    solve(R)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
r = int(input())
if r < 1200:
    print('ABC')
elif r >= 1200 and r < 2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
r = int(input())

if r < 1200:
  print("ABC")
  
elif r >= 1200 and r < 2800:
  print("ARC")
  
else:
  print("AGC")

Submission status: Accepted

Solution code:
n = int(input())

print("ABC" if n < 1200 else "ARC" if n < 2800 else "AGC")

Submission status: Accepted

Solution code:
r = int(input())
if (r < 1200):
  print('ABC')
elif (r < 2800):
  print('ARC')
else:
  print('AGC')

Submission status: Accepted

Solution code:
r = int(input())
if r < 1200:
  print("ABC")
elif r >= 1200 and r < 2800:
  print("ARC")
else:
  print("AGC")

Submission status: Accepted

Solution code:
r = int(input())
if r < 1200:
    print("ABC")
elif r <2800:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
i=int(input())
if i<1200:
  print("ABC")
elif i<2800:
  print("ARC")
else:
  print("AGC")

Submission status: Accepted

Solution code:
R=int(input())
if R < 1200:
    print('ABC')
elif 1200 <= R <2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
r = int(input())
if r<1200:
    print('ABC')
elif r<2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
# 2019/04/02
# AtCoder Beginner Contest 104 - A

r = int(input())

if r < 1200:
    ans = "ABC"
elif r < 2800:
    ans = "ARC"
else:
    ans = "AGC"

print(ans)

Submission status: Accepted

Solution code:
N = int(input())
if N < 1200:
    print("ABC")
elif N < 2800:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
score = int(input())

if score < 1200:
  print("ABC")
elif score < 2800:
  print("ARC")
else:
  print("AGC")

Submission status: Accepted

Solution code:
r=int(input())
print("ABC"if r<1200 else "ARC" if r<2800 else "AGC")

Submission status: Accepted

Solution code:
r=int(input());print(['ARC'*(r-1199>0)or'ABC','AGC'][r-2799>0])

Submission status: Accepted

Solution code:
n = int(input())
if n < 1200:
    print("ABC")
elif n < 2800:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
N = int(input())

if N < 1200:
    print('ABC')
elif N < 2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
A=int(input())
if A<1200 :
  print("ABC")
elif A<2800 :
  print("ARC")
else :
  print("AGC")

Submission status: Accepted

Solution code:
R = int(input())
if(R<1200):
  print('ABC')
elif(R<2800):
  print('ARC')
else:
  print('AGC')

Submission status: Accepted

Solution code:
r = int(input())
if r <1200:
    print("ABC")
elif r <2800:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
ri = lambda: int(input())
rl = lambda: list(map(int,input().split()))
rr = lambda N: [ri() for _ in range(N)]
YN = lambda b: print('YES') if b else print('NO')
yn = lambda b: print('Yes') if b else print('No')
OE = lambda x: print('Odd') if x%2 else print('Even')
INF = 10**18

R=ri()
if R < 1200:
    print('ABC')
elif R<2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys

def main():
	R = int(input())	
	if R < 1200:
		print("ABC")
		sys.exit()
	if R < 2800:
		print("ARC")
		sys.exit()
	
	print("AGC")
		
if __name__ == "__main__":
	main()

Submission status: Accepted

Solution code:
a=int(input())
if a<1200:
  print("ABC")
elif a< 2800:
  print("ARC")
else:
  print("AGC")

Submission status: Accepted

Solution code:
rate = int(input())
if rate < 1200:
    print("ABC")
elif rate < 2800:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
a=int(input())
print("ABC" if a < 1200 else "ARC" if a < 2800 else "AGC")

Submission status: Accepted

Solution code:
r=int(input())
if r>=2800:
    print("AGC")
elif r>=1200:
    print("ARC")
else:
    print("ABC")

Submission status: Accepted

Solution code:
a=int(input())
if a<1200:print("ABC")
elif a<2800:print("ARC")
else:print("AGC")

Submission status: Accepted

Solution code:
r=int(input());print([["ABC","ARC"][r>1199],"AGC"][r>2799])

Submission status: Accepted

Solution code:
n=int(input());print('ABC' if n<1200 else 'ARC' if n<2800 else 'AGC')

Submission status: Accepted

Solution code:
N=int(input())
if N<1200:
  print("ABC")
elif N<2800:
  print("ARC")
else:
  print("AGC")

Submission status: Accepted

Solution code:
R = int(input())

if R < 1200:
  print("ABC")
elif 1200 <= R < 2800:
  print("ARC")
elif R >= 2800:
  print("AGC")

Submission status: Accepted

Solution code:
a = int(input())
if a<1200:
  print("ABC")
elif a<2800 and a>=1200:
  print("ARC")
else:
  print("AGC")

Submission status: Accepted

Solution code:
R=int(input())
if R <1200:
    print('ABC')
elif R < 2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
R = int(input())
if(R>=2800):
    print("AGC")
elif(R>=1200):
    print("ARC")
else:
    print("ABC")

Submission status: Accepted

Solution code:
R = int(input())

if R < 1200:
    print('ABC')
if 1200 <= R < 2800:
    print('ARC')
if 2800 <= R:
    print('AGC')

Submission status: Accepted

Solution code:
R = int(input())
if R < 1200:
  print("ABC")
elif R < 2800 and R >= 1200:
  print("ARC")
elif R >= 2800:
  print("AGC")

Submission status: Accepted

Solution code:
r = int(input())

res = ""
if r < 1200:
    res="ABC"
elif r < 2800:
    res="ARC"
else:
    res="AGC"
print(res)

Submission status: Accepted

Solution code:
R = int(input())
if(R < 1200):
  print('ABC')
elif(1200 <= R < 2800):
  print('ARC')
else:
  print('AGC')

Submission status: Accepted

Solution code:
a=int(input())
if a<=1199:
  print('ABC')
elif a<=2799:
  print('ARC')
else:
  print('AGC')

Submission status: Accepted

Solution code:
R = int(input())
if(R < 1200):
  print("ABC")
elif(R < 2800):
  print("ARC")
else:
  print("AGC")

Submission status: Accepted

Solution code:
n=int(input())
if 1200>n:
    print("ABC")
elif 2800>n:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
a=int(input())
if a<1200:
	print("ABC")
elif a<2800:
	print("ARC")
else:
	print("AGC")

Submission status: Accepted

Solution code:
# coding: utf-8
R = int(input())
if R < 1200:
  print('ABC')
elif R <2800:
  print('ARC')
else:
  print('AGC')

Submission status: Accepted

Solution code:
def rated_for_me(R: int)->str:
    if R < 1200:
        return 'ABC'
    if R < 2800:
        return 'ARC'
    return 'AGC'


if __name__ == "__main__":
    R = int(input())
    ans = rated_for_me(R)
    print(ans)

Submission status: Accepted

Solution code:
R=int(input())
#N,K=map(int,input().split())
if R<1200:
    print("ABC")
elif R<2800:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
def solve(string):
    r = int(string)
    return "ABC" if r < 1200 else "ARC" if r < 2800 else "AGC"


if __name__ == '__main__':
    print(solve(input()))

Submission status: Accepted

Solution code:
r = int(input())

if r < 1200:
	print('ABC')
elif 1200 <= r < 2800:
	print('ARC')
else:
	print('AGC')

Submission status: Accepted

Solution code:
R = int(input())
if R < 1200:
    print("ABC")
elif R < 2800:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
N = int(input())
if(N < 1200):
  print("ABC")
elif(N < 2800):
  print("ARC")
else:
  print("AGC")

Submission status: Accepted

Solution code:
N=int(input())
if N<1200:
  print('ABC')
elif N<2800:
  print('ARC')
else:
  print('AGC')

Submission status: Accepted

Solution code:
def solve():
    R = int(input())
    if R < 1200:
        return 'ABC'
    elif R < 2800:
        return 'ARC'
    else:
        return 'AGC'

print(solve())

Submission status: Accepted

Solution code:
# /user/bin/python
# -*- coding: utf-8 -*-
import sys
import numpy as np


r = int(input())

if r < 1200:
  print('ABC')
elif r < 2800:
  print('ARC')
else:
  print('AGC')

Submission status: Accepted

Solution code:
R = int(input())
ans = "AGC"
if R < 1200:
    ans = "ABC"
elif R < 2800:
    ans = "ARC"
print(ans)

Submission status: Accepted

Solution code:
R = int(input())
if R<1200:
    print("ABC")
elif 1200<=R and R<2800:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
r = int(input())
if r < 1200:
     print("ABC")
elif  1200 <= r < 2800:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
R = int(input())
if R < 1200:
  print('ABC')
elif 1200 <= R < 2800:
  print('ARC')
else:
  print('AGC')

Submission status: Accepted

Solution code:
R = int(input())
r = 'AGC'
if R<2800: r='ARC'
if R<1200: r='ABC'
print(r)

Submission status: Accepted

Solution code:
# https://atcoder.jp/contests/abc104/tasks/abc104_a
r = int(input())
if r < 1200:
    print("ABC")
elif r < 2800:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
R = int(input())

if R < 1200:
    ans = "ABC"
elif R < 2800:
    ans = "ARC"
else:
    ans = "AGC"

print(ans)
print()

Submission status: Accepted

Solution code:
r = int(input())
if r< 1200:
  print("ABC")
elif(r<2800):
  print("ARC")
else:
  print("AGC")

Submission status: Accepted

Solution code:

r=int(input())
if r<1200:
  print('ABC')
elif r<2800:
  print('ARC')
else:
  print('AGC')

Submission status: Accepted

Solution code:
r=int(input())
if r<1200:
    print("ABC")
else:
    print("ARC" if r<2800 else "AGC")

Submission status: Accepted

Solution code:
r = int(input())
if r < 1200:
	print('ABC')
elif r < 2800:
	print('ARC')
else:
	print('AGC')

Submission status: Accepted

Solution code:
r = int(input())

if r < 1200:
    print('ABC')
if 1200 <= r & r < 2800:
    print('ARC')
if 2800 <= r:
    print('AGC')