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

Submission status: Accepted

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

if '__main__' == __name__:
    resolve()

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 2800 <= R:
  print('AGC')
elif 1200 <= R:
  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 and a<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:
#!/usr/bin/env python3

import sys
import math
from bisect import bisect_right as br
from bisect import bisect_left as bl
sys.setrecursionlimit(2147483647)
from heapq import heappush, heappop,heappushpop
from collections import defaultdict
from itertools import accumulate
from collections import Counter
from collections import deque
from operator import itemgetter
from itertools import permutations
mod = 10**9 + 7
inf = float('inf')
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))

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

Submission status: Accepted

Solution code:
from collections import deque
from collections import Counter
from itertools import product, permutations,combinations
from operator import itemgetter
from heapq import heappop, heappush
from bisect import bisect_left, bisect_right, bisect
#pypyではscipy, numpyは使えない
#from scipy.sparse.csgraph import shortest_path, floyd_warshall, dijkstra, bellman_ford, johnson, minimum_spanning_tree
#from scipy.sparse import csr_matrix, coo_matrix, lil_matrix
#import numpy as np
from fractions import gcd
from math import ceil,floor, sqrt, cos, sin, pi, factorial
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10**8)
INF = float('inf')
from datetime import datetime as dt

def main():
  r = int(readline())
  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:
# ABC 104: 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:
def RatedforMe(r):

    return "ABC" if r < 1200 else "ARC" if r < 2800 else "AGC"

def main():
    r = int(input())
    print(RatedforMe(r))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import itertools
import fractions
def main():
  r = int(input())
  if r < 1200:
    print("ABC")
  elif 1200 <= r < 2800:
    print("ARC")
  else:
    print("AGC")
if __name__ == '__main__':
  main()

Submission status: Accepted

Solution code:

import collections


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

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


if __name__ == "__main__":
    solve()

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

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

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

if __name__ ==  '__main__':
    main()

Submission status: Accepted

Solution code:
r = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

def lcm(x, y):
    return (x * y) // math.gcd(x, y)

if __name__ == '__main__':
    a = [int(i) for i in input().split()]

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
#!python3

# input
R = int(input())


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


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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
rate = int(input())
if rate >= 2800:
  print("AGC")
elif rate >= 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:
K=int(input());print('ABC'*(K<1200)or'ARC'*(K<2800)or'AGC')

Submission status: Accepted

Solution code:
r=int(input());print(r//2800*'AGC'or'AARBCC'[r<1200::2])

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

Submission status: Accepted

Solution code:
import sys
import os

MOD = 10 ** 9 + 7


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

    N = int(sys.stdin.buffer.readline().rstrip())
    print('AGC' if N >= 2800 else 'ARC' if N >= 1200 else 'ABC')


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

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

Submission status: Accepted

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

    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
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 numpy as np

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<=1199):
    print("ABC")
else:
    print("ARC" if n<=2799 else "AGC")

Submission status: Accepted

Solution code:
import sys
def input(): return sys.stdin.readline().rstrip()

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

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

print(ans)

Submission status: Accepted

Solution code:
#abc103 a
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("ARC")
else:
    print("ABC")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
R = int(input())

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

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:
ans = ['ABC', 'ARC', 'AGC']
R = int(input())

if R < 1200:
    i = 0
elif R < 2800:
    i = 1
else:
    i = 2
print(ans[i])

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

Submission status: Accepted

Solution code:
# Author: cr4zjh0bp
# Created: Wed Mar 11 15:10:38 UTC 2020
import sys
 
stdin = sys.stdin
inf = 1 << 60
mod = 1000000007
 
ni = lambda: int(ns())
nin = lambda y: [ni() for _ in range(y)]
na = lambda: list(map(int, stdin.readline().split()))
nan = lambda y: [na() for _ in range(y)]
nf = lambda: float(ns())
nfn = lambda y: [nf() for _ in range(y)]
nfa = lambda: list(map(float, stdin.readline().split()))
nfan = lambda y: [nfa() for _ in range(y)]
ns = lambda: stdin.readline().rstrip()
nsn = lambda y: [ns() for _ in range(y)]
ncl = lambda y: [list(ns()) for _ in range(y)]
nas = lambda: stdin.readline().split()

R = ni()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
r = int(input())
rate = 'AGC'

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

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 1200>R:
  print('ABC')
elif 2800>R:
  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 - Rated for Me
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 bisect
# from collections import Counter, defaultdict, deque
# import copy
# from heapq import heappush, heappop, heapify
# from fractions import gcd
# import itertools
# from operator import attrgetter, itemgetter
# import math

import sys

# import numpy as np

ipti = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)

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())
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:
stdin = int(input())
if stdin < 1200:
    print("ABC")
elif 1200 <= stdin < 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:
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>=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:
# 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:
r = int(input())

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

Submission status: Accepted

Solution code:
n=int(input())

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

Submission status: Accepted

Solution code:
n=int(input())

if n<1200:
    print('ABC')

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

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

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


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


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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

R = int(input().strip())

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

Submission status: Accepted

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

Submission status: Accepted

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

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())
n=0 if r<1200 else 1 if r<2800 else 2
print(['ABC','ARC','AGC'][n])

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:
#104_A
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:
n=int(input())
if n>=2800:
    k=2
elif n>=1200:
    k=1
else:
    k=0
print(['ABC','ARC','AGC'][k])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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:
    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 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:
s=int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
R = int(input())

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


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

Submission status: Accepted

Solution code:
R = input()
if int(R) < 1200:
  print('ABC')
elif 1200 <= int(R) < 2800:
  print('ARC')
elif 2000 <= int(R):
  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:
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:
n = int(input())
if 1200 > n:
  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 "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:
print('A{}C'.format('BRG'[(int(input())+400)//1600]))

Submission status: Accepted

Solution code:
print('A'+'BRG'[(int(input())+400)//1600]+'C')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
r=int(input())
if r<1200:
	print("ABC")
	sys.exit()
elif r<2800:
	print("ARC")
	sys.exit()
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:
#!/usr/bin/env python3
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
n = int(readline().split()[0])
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")
    
elif R >= 2800:
    print("AGC")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
"""
author : halo2halo
date : 23, Jan, 2020
"""

import sys

# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    from sys import stdin, setrecursionlimit
    setrecursionlimit(10**6)
    r = stdin.readline()[:-1]
    #n = int(stdin.readline()[:-1])   
    #r = [stdin.readline() for i in range(n)]
    #t = [int(stdin.readline()) for i in range(n)]

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:

n = int(input())
print((["ABC"]*12+["ARC"]*16+["AGC"]*15)[int(n/100)])

Submission status: Accepted

Solution code:
import sys

INPUT = lambda: sys.stdin.readline().rstrip()
INT = lambda: int(INPUT())

sys.setrecursionlimit(10 ** 9)


def main():
    R = INT()

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

main()

Submission status: Accepted

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

Submission status: Accepted

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

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