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:
def examA():
    R = I()
    if R<1200:
        ans = "ABC"
    elif R<2800:
        ans = "ARC"
    else:
        ans = "AGC"
    print(ans)
    return

def examB():
    return

def examC():
    return

def examD():
    return

def examE():
    return

def examF():
    return

import sys,copy,bisect,itertools,heapq,math
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LSI(): return list(map(str,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def SI(): return sys.stdin.readline().strip()
global mod,mod2,inf,alphabet
mod = 10**9 + 7
mod2 = 998244353
inf = 10**18
alphabet = [chr(ord('a') + i) for i in range(26)]

if __name__ == '__main__':
    examA()

Submission status: Accepted

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

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())
print("A"+["B","R","G"][(R>=1200)+(R>=2800)]+"C")

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

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

Submission status: Accepted

Solution code:
r = int(input())

if r < 1200:
    print('ABC')
    exit()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import bisect
import cmath
import heapq
import itertools
import math
import operator
import os
import re
import string
import sys
from collections import Counter, deque, defaultdict
from copy import deepcopy
from decimal import Decimal
from fractions import gcd
from functools import lru_cache, reduce
from operator import itemgetter, mul, add, xor

import numpy as np

if os.getenv("LOCAL"):
    sys.stdin = open("_in.txt", "r")

sys.setrecursionlimit(10 ** 9)
INF = float("inf")
IINF = 10 ** 18
MOD = 10 ** 9 + 7
# MOD = 998244353


r = int(sys.stdin.buffer.readline())
if r < 1200:
    print('ABC')
elif r < 2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
print(["ABC", "ARC", "AGC"][int(input())//50 + 8 >> 5])

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 and R<2800:
  print('ARC')
else:
  print('AGC')

Submission status: Accepted

Solution code:
r = int(input())

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

print(ans)

Submission status: Accepted

Solution code:
# coding: utf-8

r = int(input())

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

print(ans)

Submission status: Accepted

Solution code:
import sys

r = int(sys.stdin.readline().rstrip())

def main():
    if r < 1200:
        return 'ABC'
    elif r < 2800:
        return 'ARC'
    else:
        return 'AGC'

if __name__ == '__main__':
    ans = main()
    print(ans)

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
R = int(input())
if R <= 1199:
    print("ABC")
elif R <= 2799:
    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:
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    r=INT()
    if r<1200:
        print('ABC')
    elif r<2800:
        print('ARC')
    else:
        print('AGC')
if __name__ == '__main__':
    do()

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:
import sys
input = sys.stdin.readline
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")
elif R >= 1200 and R < 2800:
    print("ARC")
elif R >= 2800:
    print("AGC")

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

rate(int(input()))

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 

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:
r=int(input())
if r < 1200:
    print("ABC")
elif 1199 < 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:
N3 = int(input())
if N3 < 1200:
    print('ABC')
elif 1200 <= N3 < 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())
print("ABC" if a < 1200 else "ARC" if a <2800 else "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:

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 <= 1199:
 print('ABC')
elif r <= 2799:
  print('ARC')
else:
  print('AGC')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=int(input())
if x<1200:
  print("ABC")
elif x<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:
def main():
    r=int(input())
    if r < 1200:
        return "ABC"
    if r <2800:
        return "ARC"
    return "AGC"
print(main())

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC104a
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

r = int(input())
if r < 1200:
    print('ABC')
    exit(0)
if r < 2800:
    print('ARC')
    exit(0)
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());print('ABC' if r<1200 else 'ARC' if r<2800 else '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:
##### 解けた #####

R=int(input())

if R<1200: # 1200未満
    print("ABC")
elif R<2800: # 2800未満
    print("ARC")
else: # 2800以上
    print("AGC")

Submission status: Accepted

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

#入力
#S = str(input())
#A1, A2, A3 = 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:
r = int(input())

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
def solve(R: int):
    ans = ["ABC", "ARC", "AGC"]
    if R < 1200:
        print(ans[0])
    elif 1200 <= R < 2800:
        print(ans[1])
    else:
        print(ans[2])

def main():
    R = int(input())
    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:
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 < 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:
  ret="ABC"
elif r<2800:
  ret="ARC"
else:
  ret="AGC"

print(ret)

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:
from sys import stdin

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

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

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

Submission status: Accepted

Solution code:
#Rated for Me
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 = 'ABC'
if r >= 1200:
    ans = 'ARC'
    if r >= 2800:
        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 (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:
#                         author:  kagemeka 
#                         created: 2019-11-08 18:39:24(JST)
### modules
## from standard library
import sys
# import collections
# import math
# import string
# import bisect
# import re
# import itertools
# import statistics
# import functools
# import operator
## from external libraries
# import scipy.special   # if use comb function on AtCoder, 
# import scipy.misc      # select scipy.misc.comb (old version)  
# imort numpy as np 

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

    print(ans)


if __name__ == "__main__":
    # execute only if run as a script
    main()

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

Solution code:
n =int(input().strip())

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

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("ABC" if r<1200 else "ARC" if r<2800 else "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("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
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

R = int(read())

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

print(answer)

Submission status: Accepted

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

#AtCode で次に開催されるコンテストは ABC と呼ばれ、レーティングが 1200未満の参加者のレーティングが変動します。
#その次に開催されるコンテストは ARC と呼ばれ、レーティングが 2800未満の参加者のレーティングが変動します。
#そのさらに次に開催されるコンテストは AGC と呼ばれ、すべての参加者のレーティングが変動します。

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 < 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 0<=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:
import numpy

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

if __name__ == "__main__":
    r = int(input())
    judge(r)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#A,B = 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())
if n < 1200:
    print('ABC')
elif  n < 2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

Solution code:
r=int(input())
if 0 <= r and 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:
s=int(input())
if s<1200:
  print('ABC')
elif s<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')
elif R >= 2800:
  print('AGC')

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

Submission status: Accepted

Solution code:
r = int(input())
if r >= 2800:
  print('AGC')
  exit()
if r >= 1200:
  print('ARC')
  exit()
if r < 1200:
  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:
#!/usr/bin/env python3
R=int(input())
ans="AGC"
if R<1200:
    ans="ABC"
if 1200<=R<2800:
    ans="ARC"
print(ans)

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

Submission status: Accepted

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

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 - Rated for Me
https://atcoder.jp/contests/abc104/tasks/abc104_a

>>> main(1199)
ABC
>>> main(1200)
ARC
>>> main(4208)
AGC
'''


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

Submission status: Accepted

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

input = sys.stdin.readline


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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
print(["ABC", "ARC", "AGC"] [int(input())//50+8 >> 5])

Submission status: Accepted

Solution code:
def slove():
    import sys
    input = sys.stdin.readline
    r = int(input().rstrip('\n'))
    if r < 1200:
        print("ABC")
    elif 1200 <= r < 2800:
        print("ARC")
    else:
        print("AGC")


if __name__ == '__main__':
    slove()

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

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 1200 > R else 'ARC' if 2800 > R else 'AGC')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n = int(input().split()[0])

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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:
# ABC0104 A - Rated for Me
r = int(input())
if 0 <= 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:
print("A"+"BRG"[(int(input())+400)//1600]+"C")

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

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

Submission status: Accepted

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

Submission status: Accepted

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