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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
print('ABC' if 0<=n<1200 else 'ARC' if 1200<=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 >= 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:
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:
import sys


stdin = sys.stdin
def ns(): return stdin.readline().rstrip()
def ni(): return int(stdin.readline().rstrip())
def nm(): return map(int, stdin.readline().split())
def nl(): return list(map(int, stdin.readline().split()))


def main():
    R = ni()
    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:
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


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

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

    print(ans)
    return


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
#a = [list(input()) for _ in range(n)]
#a = [int(input()) for _ in range(n)]

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

Submission status: Accepted

Solution code:
R = int(input())
print(['ABC','ARC','AGC'][(R>=1200)+(R>=2800)])

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

Submission status: Accepted

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

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')
  exit()
elif r<2800:
  print('ARC')
  exit()
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:
print(["ABC","ARC","AGC"][int(input())//50+8>>5])

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

Submission status: Accepted

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 = k()
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:
import sys
input = sys.stdin.readline
# sys.setrecursionlimit(100000)


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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
#import sys
#import numpy as np
import math
#from fractions import Fraction
import itertools
from collections import deque
from collections import Counter
import heapq
from fractions  import gcd
#input=sys.stdin.readline
#import bisect
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 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:
# abc104_a.py
# https://atcoder.jp/contests/abc104/tasks/abc104_a

# A - Rated for Me /
# 実行時間制限: 2 sec / メモリ制限: 1024 MB
# 配点 : 100点

# 問題文
# プログラミングコンペティションサイト AtCode は、プログラミングコンテストを定期的に開催しています。
# AtCode で次に開催されるコンテストは ABC と呼ばれ、レーティングが 1200未満の参加者のレーティングが変動します。
# その次に開催されるコンテストは ARC と呼ばれ、レーティングが 2800未満の参加者のレーティングが変動します。
# そのさらに次に開催されるコンテストは AGC と呼ばれ、すべての参加者のレーティングが変動します。
# 高橋くんの AtCode でのレーティングは Rです。彼のレーティングが変動する次のコンテストは何でしょうか？

# 制約
#     0≤R≤4208
#     Rは整数である。

# 入力
# 入力は以下の形式で標準入力から与えられる。
# R

# 出力
# 高橋くんのレーティングが変動する次のコンテストの名称（ABC, ARC, AGC のいずれか）を出力せよ。

# 入力例 1
# 1199

# 出力例 1
# ABC

# 1199は 1200未満なので ABC でレーティングが変動します。

# 入力例 2
# 1200

# 出力例 2
# ARC

# 1200は 1200 未満ではないので ABC ではレーティングが変動しませんが、2800未満ではあるので ARC でレーティングが変動します。

# 入力例 3
# 4208

# 出力例 3
# AGC


def calculation(lines):
    R = int(lines[0])
    if R < 1200:
        ret = 'ABC'
    elif R < 2800:
        ret = 'ARC'
    else:
        ret = 'AGC'
    return [ret]


# 引数を取得
def get_input_lines(lines_count):
    lines = list()
    for _ in range(lines_count):
        lines.append(input())
    return lines


# テストデータ
def get_testdata(pattern):
    if pattern == 1:
        lines_input = ['1199']
        lines_export = ['ABC']
    if pattern == 2:
        lines_input = ['1200']
        lines_export = ['ARC']
    if pattern == 3:
        lines_input = ['4208']
        lines_export = ['AGC']
    return lines_input, lines_export


# 動作モード判別
def get_mode():
    import sys
    args = sys.argv
    if len(args) == 1:
        mode = 0
    else:
        mode = int(args[1])
    return mode


# 主処理
def main():
    mode = get_mode()
    if mode == 0:
        lines_input = get_input_lines(1)
    else:
        lines_input, lines_export = get_testdata(mode)

    lines_result = calculation(lines_input)

    for line_result in lines_result:
        print(line_result)

    # if mode > 0:
    #     print(f'lines_input=[{lines_input}]')
    #     print(f'lines_export=[{lines_export}]')
    #     print(f'lines_result=[{lines_result}]')
    #     if lines_result == lines_export:
    #         print('OK')
    #     else:
    #         print('NG')


# 起動処理
if __name__ == '__main__':
    main()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

Submission status: Accepted

Solution code:

def f(r):
	if r < 1200: return 'ABC'
	if r < 2800: return 'ARC'
	return 'AGC'
print f(int(raw_input()))

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

Submission status: Accepted

Solution code:
import math
import collections
import fractions
import itertools
import functools
import  operator

def solve():
    r = int(input())
    if r < 1200:
        print("ABC")
        exit()
    if r < 2800:
        print("ARC")
        exit()
    print("AGC")
    return 0

if __name__ == "__main__":
    solve()

Submission status: Accepted

Solution code:
import sys, os, math, bisect, itertools, collections, heapq, queue
# from scipy.sparse.csgraph import csgraph_from_dense, floyd_warshall
from decimal import Decimal
from collections import defaultdict, deque

sys.setrecursionlimit(10000000)

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
fl = lambda: list(map(float, sys.stdin.buffer.readline().split()))
iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
sl = lambda: list(map(str, sys.stdin.buffer.readline().decode().split()))
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]

lcm = lambda x, y: (x * y) // math.gcd(x, y)

MOD = 10 ** 9 + 7
MAX = float('inf')


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

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

main()

Submission status: Accepted

Solution code:
import bisect,collections,copy,heapq,itertools,math,string
import sys
def S(): return sys.stdin.readline().rstrip()
def M(): return map(int,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
R = I()
if R < 1200:
    print('ABC')
elif R < 2800:
    print('ARC')
else:
    print('AGC')

Submission status: Accepted

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

if __name__ == "__main__":
  resolve()

Submission status: Accepted

Solution code:
from collections import Counter,defaultdict,deque
from heapq import heappop,heappush
from bisect import bisect_left,bisect_right 
import sys,math,itertools,fractions,pprint
sys.setrecursionlimit(10**8)
mod = 10**9+7
INF = float('inf')
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
sys.setrecursionlimit(10**9)
INF=10**18
MOD=10**9+7
input=lambda: sys.stdin.readline().rstrip()
YesNo=lambda b: bool([print('Yes')] if b else print('No'))
YESNO=lambda b: bool([print('YES')] if b else print('NO'))
int1=lambda x:int(x)-1

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

Submission status: Accepted

Solution code:
import sys
from collections import defaultdict, deque, Counter
import math

# import copy
from bisect import bisect_left, bisect_right
import heapq

# sys.setrecursionlimit(1000000)

# input aliases
input = sys.stdin.readline

getS = lambda: input().strip()
getN = lambda: int(input())
getList = lambda: list(map(int, input().split()))
getZList = lambda: [int(x) - 1 for x in input().split()]

INF = 10 ** 20
MOD = 10**9 + 7
divide = lambda x: pow(x, MOD-2, MOD)


def nck(n, k, kaijyo):
    return (npk(n, k, kaijyo) * divide(kaijyo[k])) % MOD


def npk(n, k, kaijyo):
    if k == 0 or k == n:
        return n % MOD
    return (kaijyo[n] * divide(kaijyo[n-k])) % MOD


def kaijyo(n):
    ret = [1]
    for i in range(1, n + 1):
        ret.append((ret[-1] * i)% MOD)
    return ret


def solve():
    n = getN()

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


def main():
    n = getN()
    for _ in range(n):
        solve()


if __name__ == "__main__":
    # main()
    solve()

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

def I(): return int(sys.stdin.readline().rstrip())

R = I()

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

Submission status: Accepted

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

if not (0 <= R <= 4208):
    sys.exit()

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

Submission status: Accepted

Solution code:
import sys
ri = lambda: int(sys.stdin.readline())

a = ri()
if a < 1200:
  print('ABC')
  exit()
print('ARC' if a < 2800 else 'AGC')

Submission status: Accepted

Solution code:
import sys
ri = lambda: int(sys.stdin.readline())

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

Submission status: Accepted

Solution code:
import sys
ri = lambda: int(sys.stdin.readline())
a = ri()
if a < 1200:
  print('ABC')
elif a < 2800:
  print('ARC')
else:
  print('AGC')

Submission status: Accepted

Solution code:
import sys
ri = lambda: int(sys.stdin.readline())

a = ri()
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:
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")
else:
    print("AGC")

Submission status: Accepted

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

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:
n = int(input())
if n < 1200:
    print("ABC")
elif n >= 1200 and n < 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:
r=int(input());print("ABC" if r<1200 else "ARC" if 1200<=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:
print(["ABC","ARC","AGC"][int(input())//50+8>>5])

Submission status: Accepted

Solution code:
r = int(input())
print(["ABC","ARC","AGC"][(r+400)//1600])

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

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

Submission status: Accepted

Solution code:
print(f"A{'BRG'[int(input())//50+8>>5]}C")

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

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:S='B'
elif R<2800:S='R'
else:S='G'
print('A'+S+'C')

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

Submission status: Accepted

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

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

input = sys.stdin.readline


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

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

    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import os
import sys
from collections import defaultdict, Counter
from itertools import product, permutations,combinations, accumulate
from operator import itemgetter
from bisect import bisect_left,bisect
from heapq import heappop,heappush,heapify
from math import ceil, floor, sqrt
from copy import deepcopy

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:
def main():
    from builtins import int, map, list, print
    import sys
    sys.setrecursionlimit(10 ** 6)

    input = (lambda: (sys.stdin.readline()).rstrip())
    input_list = (lambda: input().split())
    input_number = (lambda: int(input()))
    input_number_list = (lambda: list(map(int, input_list())))

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# A - 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())

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

print(txt)

Submission status: Accepted

Solution code:
r = int(input())

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

Submission status: Accepted

Solution code:
import sys
R = int(input())
if R < 1200 : 
  print("ABC")
  sys.exit(0)
if R < 2800:
  print("ARC")
  sys.exit(0)
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:
num = int(input())

if num < 1200:
  print("ABC")

elif num < 2800:
  print("ARC")

else:
  print("AGC")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
from collections import deque
def input(): return sys.stdin.readline().strip()


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:
n = int(input())
if n<1200:
    print('ABC')
elif n>=1200 and 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 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')
elif 2800 <= r and 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())
#a,b=map(int,input().split())
#l=list(map(int,input().split()))
#l=[list(map(int,input().split())) for i in range(n)]

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]
def main():
    N = int(input())
#    A, B, C = map(int,input().split())
#    S = 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:
R = int(input())

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

Submission status: Accepted

Solution code:
def actual(r):
    if 0 <= r < 1200:
        return 'ABC'

    if 1200 <= r < 2800:
        return 'ARC'

    return 'AGC'

r = int(input())
print(actual(r))

Submission status: Accepted

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

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:
r = int(input())
a = "G"
if r < 1200:
  a = "B"
elif r < 2800:
  a = "R"
print("A{}C".format(a))

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