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 r < 1200:
    print("ABC")

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

elif 2800 <= r:
    print("AGC")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import socket

hostname = socket.gethostname()

if hostname == 'F451C':
    sys.stdin = open('a1.in')


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


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


def read_int():
    return int(input())


def read_str():
    return input()


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


main()

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:
a = int(input())

if a < 1200: print('ABC')
if 1200 <= a < 2800: print('ARC')
if 2800 <= a <= 4208: 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(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:
r = int(input())

if r<1200:
    print('ABC')
elif 1200<=r <2800:
    print('ARC')
elif r >= 2800:
    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 r >= 1200 and r <2800:
  print("ARC")
else:
  print("AGC")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sun Aug  5 19:15:42 2018
ABC104A
@author: maezawa
"""

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')
elif R>=2800:
    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:
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


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


if __name__ == '__main__':
    main()

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())
if R<1200:
    print('ABC')
else:
    if 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(raw_input())

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

Submission status: Accepted

Solution code:
inp = input()
rate = int(inp)

if rate < 1200:
    print("ABC")
elif rate < 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 and N >= 1200:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
r = input()
R = int(r)

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

Submission status: Accepted

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

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

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:

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 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:
x = int(input())
if 1200 > x:
    print("ABC")
elif 1200<= x < 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 2800 <= r:
    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:
#!/Library/Frameworks/Python.framework/Versions/3.5/bin/python3

r = int(input())

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

Submission status: Accepted

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

R = int(input())

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

Submission status: Accepted

Solution code:
inputs = input()
R = int(inputs)

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

Submission status: Accepted

Solution code:
num = int(input())
if num < 1200:
    print("ABC")
elif 2800 > num >= 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=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 >= 2800:
    print("AGC")
elif r < 2800 and r >= 1200:
    print("ARC")
else:
    print("ABC")

Submission status: Accepted

Solution code:
R = int(input())						# 5

ans='AGC'

if R<2800: ans='ARC'
if R<1200: ans='ABC'

print(ans)

Submission status: Accepted

Solution code:
def main():
    r = int(input().strip())

    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 1200 > R:
    print("ABC")
elif 2800 > R:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
from sys import stdin


def main():
    R = int(stdin.readline().rstrip())
    if R < 1200:
        print('ABC')
    elif 1200 <= R < 2800:
        print('ARC')
    else:
        print('AGC')


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:
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 < 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:
    C = 'ABC'
elif R < 2800:
    C = 'ARC'
else:
    C = 'AGC'
print(C)

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 1200<=a<2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
from sys import stdin, stdout

input = lambda: stdin.readline().rstrip()
write = stdout.write

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

    if R < 1200:
        write('ABC\n')
    elif R < 2800:
        write('ARC\n')
    else:
        write('AGC\n')

main()

Submission status: Accepted

Solution code:
a = int(input())

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

print(ans)

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())
print("AGC" if r>=2800 else "ARC" if r>=1200 else "ABC")

Submission status: Accepted

Solution code:
# vim: set fileencoding=utf-8 :
r = int(raw_input())

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

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:
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:
n=int(input())
if n<1200:
    print('ABC')
elif n<2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
def i1():
 return int(input())
def i2():
 return [int(i) for i in input().split()]
r=i1()
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 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 = 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:
a = int(input())

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

Submission status: Accepted

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

if __name__ == '__main__':
    R = int(input())
    main(R)

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:
l = int(input())
if l<1200:
    print("ABC")
elif l<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:
# -*- coding: utf-8 -*-

R = int(input())

if R < 1200:
    print("ABC")
elif R < 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')
if(r>=1200 and r<2800):print('ARC')
if(r>=2800):print('AGC')

Submission status: Accepted

Solution code:
a = int(raw_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<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 2800 <= R:
    print("AGC")

Submission status: Accepted

Solution code:
A = int(input())

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

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:
import sys
r = int(sys.stdin.readline())
if r < 1200: print("ABC")
elif r < 2800: print("ARC")
else: print("AGC")

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:
# coding: utf-8
# Your code here!


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

Submission status: Accepted

Solution code:
# cook your dish here
n = int(input())

if n <= 1199:
    print('ABC')
elif n <= 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:
# -*- coding: utf-8 -*-
import bisect
import heapq
import math
import random
import sys
from collections import Counter, defaultdict, deque
from decimal import ROUND_CEILING, ROUND_HALF_UP, Decimal
from functools import lru_cache, reduce
from itertools import combinations, combinations_with_replacement, product, permutations
from operator import add, mul

sys.setrecursionlimit(10000)


def read_int():
    return int(input())


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


def read_float():
    return float(input())


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


def read_str():
    return input()


def read_str_n():
    return list(map(str, input().split()))


def error_print(*args):
    print(*args, file=sys.stderr)


def mt(f):
    import time

    def wrap(*args, **kwargs):
        s = time.time()
        ret = f(*args, **kwargs)
        e = time.time()

        error_print(e - s, 'sec')
        return ret

    return wrap


@mt
def slv(R):
    if R < 1200:
        return 'ABC'
    elif R < 2800:
        return 'ARC'
    return 'AGC'


def main():
    R = read_int()
    print(slv(R))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def fa(): #final answer
    global ans
    print(ans)
def getN():
    return int(input())
def getNM():
    return map(int, input().split())
def getList():
    return list(map(int, input().split()))

N = getN()
if N < 1200:
    ans = "ABC"
elif N < 2800:
    ans = "ARC"
else:
    ans = "AGC"

fa()

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 python
# -*- coding: utf-8 -*-


def main():
    s = int(input())

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

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

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:
#! /usr/bin/env python3

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:
v = int(input())
 
if v < 1200:
  print('ABC')
elif v < 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())
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 >= 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 R< 2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
N = int(input())
if N < 1200:
    print("ABC")
elif 1200 <= N < 2800:
    print("ARC")
elif 2800 <= N:
    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()) 
if R < 1200:
    print("ABC")
elif R < 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 main():
    n = int(input())


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


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:
#coding:utf-8
n=int(input())
if(n>=2800):
  print("AGC")
elif(n>=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:
if __name__ == "__main__":
    r = int(input())
    print("ABC" if r < 1200 else "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:
#coding:utf-8

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 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:
# coding: utf-8
# Your code here!
r=int(input())

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

Submission status: Accepted

Solution code:

#a = list(map(int,  input().split()))
#a = list(input().split())
R = int(input())
if R < 1200:
    print("ABC")
elif R < 2800:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

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

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())
# a, b = map(int, input().split())
# c = list(map(int, input().split()))
# d = [list(map(int, input().split())) for _ in range(n)]
# s = input()

ans = ""

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


print(ans)

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:
n=int(input())
if n<1200:
    print("ABC")
elif n<2800:
    print("ARC")
else:
    print("AGC")

Submission status: Accepted

Solution code:
#A, B, C = map(int, input().split())
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('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 1200 <= 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:
# -*- 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())

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:
from collections import defaultdict
import sys,heapq,bisect,math,itertools,string,queue,datetime
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
AtoZ = [chr(i) for i in range(65,65+26)]
atoz = [chr(i) for i in range(97,97+26)]

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

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 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:
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:
n = int(input())

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

Submission status: Accepted

Solution code:
from sys import stderr
from functools import reduce
from operator import add
def f(): return [int(i) for i in input().split()]
def yes(n): print("Yes") if n else print("No")
def debug(*x, sep=" ", end="\n"):
    for item in x:
        stderr.write(repr(item))
        stderr.write(sep)
    stderr.write(end)

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:
# input
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 >= 1200 and a < 2800:
	print("ARC")
else:
	print("AGC")

Submission status: Accepted

Solution code:
# coding: utf-8
n=int(input())
print('ABC' if n<1200 else 'ARC' if n<2800 else '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())

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

Submission status: Accepted

Solution code:
r = int(input())
if 0 <= r <= 1199:
	print("ABC")
elif 1200 <= r <= 2799:
	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:
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

x = ni()
if x < 1200:
    print("ABC")
elif x < 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:
import sys
import math
import collections
import itertools
import array
import inspect

# Set max recursion limit
sys.setrecursionlimit(10000)

# Debug output


def chkprint(*args):
    names = {id(v): k for k, v in inspect.currentframe().f_back.f_locals.items()}
    print(', '.join(names.get(id(arg), '???')+' = '+repr(arg) for arg in args))

# Binary converter


def to_bin(x):
    return bin(x)[2:]


def li_input():
    return [int(_) for _ in input().split()]

# --------------------------------------------


dp = None


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

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


main()

Submission status: Accepted

Solution code:
N = int(input())

Ans = ""
if N < 1200:
    Ans = "ABC"
elif N < 2800:
    Ans = "ARC"
else:
    Ans = "AGC"

print(Ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Runtime Error

Solution code:
def main():
	D,G = map(int,input().split())
	ListPC = [list(map(int,input().split())) for d in range(D)]
	ans = sum([i[0] for i in ListPC])

	for i in range(2**D):
		TempPoint,num,restmax = 0,0,-1  # 点数,正解数,解いてない最高点数idx
		for j in range(D):  # 全埋め問題加算
			if i>>j & 1:
				TempPoint += 100*(j+1)*ListPC[j][0]+ListPC[j][1]
				num += ListPC[j][0]
			else:
				restmax = max(j,restmax)
		if TempPoint >= G: # 合格なら更新
			ans = min(num,ans)
		elif G - TempPoint // ((restmax + 1) * 100) <= ListPC[restmax][0]: # 最高問題解いて合格なら更新
			ans = min(num + (G - TempPoint - 1) // ((restmax + 1) * 100) + 1, ans)
	print(ans)

if __name__ == '__main__':
	main()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
R = input()
print(R)	

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

Submission status: Runtime Error

Solution code:
rating = int(input())
switch(rating):
  case rating>0 and rating < 1200:
    print("ABC")
    break
  case rating > 1200 and rating < 2800:
    print("ARC")
    break
  case rating > 2800 :
    print("AGC")
    break
  default:
    print("ERROR")
    break

Submission status: Runtime Error

Solution code:
import itertools
D, G = map(int, input().split())
ans = 10000000000
list_pro = [list(map(int, input().split())) for _ in range(D)]
for ptr in itertools.product([0,1], repeat=D):
  cnt_pro = 0
  res = 0
  for i,k in enumerate(ptr):
    if k == 1:
      cnt_pro += list_pro[i][0]
      res += 100 * (i+1) * list_pro[i][0] + list_pro[i][1]
  if res < G:
    for j, l in enumerate(reversed(ptr)):
      if l == 0:
        for _ in range(list_pro[D-1-j][0]):
          res += 100 * (D-j)
          cnt_pro += 1
          if res >= G:
            break      
  if res >= G:
    ans = min(ans, cnt_pro)
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import re
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def v(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7
cnt = 0
ans = 0
inf = float("inf")

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