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: Wrong Answer

Solution code:
r = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
R=int(input())
print("A"+"RGB"[(R>=2400)+2*(R<1200)]+"C")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

Solution code:
#from statistics import median
#import collections
#aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0]
from fractions import gcd
from itertools import combinations,permutations,accumulate, product # (string,3) 3回
#from collections import deque
from collections import deque,defaultdict,Counter
import decimal
import re
import math
import bisect
#
#
#
# pythonで無理なときは、pypyでやると正解するかも！！
#
#
# my_round_int = lambda x:np.round((x*2 + 1)//2)
# 四捨五入g
#
# インデックス系
# int min_y = max(0, i - 2), max_y = min(h - 1, i + 2);
# int min_x = max(0, j - 2), max_x = min(w - 1, j + 2);
#
#
import sys
sys.setrecursionlimit(10000000)
mod = 10**9 + 7
#mod = 9982443453
#mod = 998244353
from sys import stdin
readline = stdin.readline
def readInts():
  return list(map(int,readline().split()))
def readTuples():
    return tuple(map(int,readline().split()))
def I():
  return int(readline())
r = I()
if r < 1200:
    print('ABC')
elif r < 2400:
    print('ARC')
else:
    print('AGC')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
num1 = int(input())

if num1 < 1200 and num1 > 0:
  print(f"ABC")
elif num1 >= 1200 and num1 <= 2800:
  print(f"ARC")
elif num1 >= 2800 and num1 <= 4208:
  print(f"AGC" )

Submission status: Wrong Answer

Solution code:
num1 = int(input())

if num1 < 1200 and num1 > 0:
  print(f"ABC")
elif num1 >=1200 and num1 < 2800:
  print(f"ARC")
elif num1 >=2800 and num1 <= 4208:
  print(f"AGC" )

Submission status: Wrong Answer

Solution code:
num1 = int(input())

if num1 < 1200 and num1 > 0:
  print(f"{num1} is less than 1200, so ABC will be rated.")
elif num1 >=1200 and num1 < 2800:
  print(f"{num1} is not less than 1200 and ABC will be unrated, but it is less than 2800 and ARC will be rated..")
elif num1 >=2800 and num1 <= 4208:
  print(f"AGC" )

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

wa = False

if s[0] != 'A':
  wa = True
print(s[2:-1])
if s[2:-1].count('C') != 1:
  wa = True

l_s = list(s)
  
if 'A' in l_s:  
  del l_s[l_s.index('A')]

if 'C' in l_s:
	del l_s[l_s.index('C')]

for c in l_s:
  print(c.lower())
  if c != c.lower():
    wa = True
    
if wa == True:
  print('WA')
else:
  print('AC')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
r = int(input())

if r < 1200:
    print('ABC')

elif r < 2800:
    print('ARC')

elif r > 2800:
    print('AGC')

Submission status: Wrong Answer

Solution code:
r = int(input())

if r < 1200:
    print('ABC')

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

elif r > 2800:
    print('AGC')

Submission status: Wrong Answer

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

main()

Submission status: Wrong Answer

Solution code:
import sys
s = input()

answer = True
if s[0] != "A":
  answer = False

if s[2:len(s)-1].count("C") != 1:
  answer = False
  
for i in range(len(s)):
  if s[i] != "A" and s[i] != "C":
    if ord(s[i]) < 97  or  122 < ord(s[i]):
      answer = False

if answer :      
  print("AC")
else :
  print("WA")

Submission status: Wrong Answer

Solution code:
print("a", ord("a"))
print("z", ord("z"))

s = input()
n = len(s)
ans = 1
if s[0] != "A":
    ans *= 0
check = 0
for i in range(1, n):
    if s[i] == "C" and check == 0:
        check = 1
    elif s[i] == "C":
        check = 0
    else:
        if 97 <= ord(s[i]) <= 122:
            ans *= 1
        else:
            ans *= 0
print(["WA", "AC"][ans * check])

Submission status: Wrong Answer

Solution code:
s = input()
n = len(s)
ans = 1
if s[0] != "A":
    ans *= 0
check = 0
for i in range(n):
    if s[i] == "C" and check == 0:
        check = 1
    elif s[i] == "C":
        check = 0
    else:
        if 97 <= ord(s[i]) <= 122:
            ans *= 1
        else:
            ans *= 0
print(["WA", "AC"][ans * check])

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
r = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import re;print("AC" if re.fullmatch("A[a-z]+C[a-z]+", input()) is not None else "WA")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
r = int(input()) 
print("ABC") if r < 1200 else print("AGC")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
r = int(input())

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

Submission status: Wrong Answer

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


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


# 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
    solve(R)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
s=input()
def AcCepted(str1):
    if str1[0]!='A':
        return False
    str2=str1[1:-1]
    if str2.count('C')!=1:
         return False
    else:
        str3=str2.strip('C')
        if str3.islower ==False:
            return False
    return True

if AcCepted(s)==True:
    print('AC')
else:
    print('WA')

Submission status: Wrong Answer

Solution code:
S=input()
if (S[0]=='A' and S[2:-1].count('C')==1):
    pos=S.index("C")
    check=S[1:pos]+S[pos+1:]
    if check.islower():
        print('AC')
    else:
        print('WA')
else:
    print('WA')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def check(s):
    if s[0].isupper() and s.count('C') == 1  and  2<= s.index('C') < len(s) :
        i = s.index('C')
        temp = s[1: i] + s[i+1: ]
        if temp.islower():
            return 'AC'
    return 'WA'


s= input()
print( check(s))

Submission status: Wrong Answer

Solution code:
R = int(input())

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

Submission status: Wrong Answer

Solution code:
R = int(input())

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K=input();print('ABC'*(K<'1200')or'ARC'*(K<'2800')or'AGC')

Submission status: Wrong Answer

Solution code:
x = int(input())

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

Submission status: Wrong Answer

Solution code:
r = int(input())

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

Submission status: Wrong Answer

Solution code:
r = int(input())

if r < 1200:
  print('ABC')
elif r >= 1200 and r < 2800:
  print('AGC')

Submission status: Wrong Answer

Solution code:
r = int(input())

if r < 1200:
  print('ABC')
elif r > 1200 and r < 2800:
  print('AGC')

Submission status: Wrong Answer

Solution code:
r = int(input())

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
import sys
import itertools#これは色々使える組み込み関数みたいなやつ
import math#数学的計算はこれでいける。普通に0.5乗しても計算可能
#w=input()
i=0
j=0
#N=int(input())
#N, W=input().split()
S=input()
#T=input()
#S_list=list(S)
#h_list=  list(map(int, input().split(" ")))
#M=int(input())
#drink_list = [list(map(int, input().split(" ")))for i in range(M)]
#print(T_list[1])
#N=int(N)
#W=int(W)
#不本意だが内包表記で二次元の空のリストを作成する

#dp=[['' for i in range(2)] for j in range(N)]
#K=int(K)
#S_list=[]
sentence_list=[]
#total=0
#mojiretu=""
#センテンスを暗記するのではなく、まずinput()を書いて、膨らます感じで記述する。すると#思考の流れ通りに書ける。素晴らしい！
#for i in range(K):
# ID_list.append(i+1)
#print(ID_list)
#for i in range(H)
#この下の行が二次元リストの読み込
#intを消して記号を読み込めるようにしたしかしこれでは文字列から読み込んでいるのと同じ
#weight_value_list =  [list(input())for i in range(N)]#一文字づつばらして入れてしまう
#s = [input() for i in range(N)]
#複数行に複数の入力値を取得し、出力する
#sentence_list =  (list(input())for i in range(N))
#for i in range(H):
#  ppixel_list=list(input())
#
#print(pixel_list)
#high_pixel_list =[['' for i in range(W)]for j in range(2*H)]
#print(high_pixel_list)
#print(pixel_list[0][1])#行　列の順番にかっこが並んでいる
#print(a_list)
first_term=0
second_term=0
#整数二次元配列を読み込む時のやり方
#a_b_c_list =  [list(map(int, input().split(" ")))for i in range(N)]

#センテンスを暗記するのではなく、まずinput()を書いて、膨らます感じで記述する。すると#思考の流れ通りに書ける。素晴らしい！
#print(S)
#sentence_list=sorted(S)
sentence_list=list(S)
#print(sentence_list)
#スペースでいれつつ値を取得
if len(S) <4 or len(S) > 10:
    print("WA")
    sys.exit()

if sentence_list[0]=="A":# and sentence_list[2]=="C":
    #print(1231234)
    del sentence_list[0]
    pass
else:
    print("WA")
    sys.exit()

for j in range(len(sentence_list)-3):
    #print(len(S))
    #print(j+4)
    if j+4==len(sentence_list):
        print("WA")
        sys.exit()
    if sentence_list[j+1]=="C":
        del sentence_list[j+1]
        break

S="".join(sentence_list)

if S.islower()==True:
    print("AC")
    sys.exit()
print("WA")



#x, y = [0]*N, [0]*N#N個の空のリストを作成
#l = list(range(N))#範囲がNのリストを作成する

#for i in range(N):
#  x[i], y[i] = map(int, input().split())
#分けて入力する形式を設定することで可読性が高く仕上がっている
#素晴らしいことだ


distance = 0
#comb = list(itertools.permutations(l))
#prmutation:英語の意味としては順列である
'''p[, r]で
長さrのタプル列、重複なしのあらゆる並びを表す
今回はリストlの重複なしの並び替え順序を新たなリストに収納している
並び方を計算しリストに収納しているイメージ
l[0,1,2]
l[0,2,1]これにもリスト番号が0,1,2と割り振られている
これが全通り入っている
これ作った人はすごい
自分も早く理解したい
'''
#for i in range(0, len(comb)):#i番目のパターンの時を考える。
#  for j in range(0, N-1):#lのリスト番号を読み込み
#    distance += math.sqrt((x[comb[i][j]]-x[comb[i][j+1]])**2 + (y[comb[i][j]]-y[comb[i][j+1]])**2)
'''
各経路の距離を足していき全距離分を経路数
で割れば平均距離が出るので各経路ごとの距離は
不必要と判断されている。
'''
#print(distance/len(comb))
i=0
j=0
#1を選んだとき0,2を選ぶってのがどう実装すべきかわからんかった
#だからここで学ぶ
#2019/1/4参考サイトに見当たらず 　仕方がないのでその場しのぎ
#for i in range(N):
for j in range(3):
        pass
      # dp[i+1][j]=max(dp[i][j]+a_b_c_list[i],dp[i][j],dp[i][j])
#リストを一周するようにすればいいのか

Submission status: Wrong Answer

Solution code:
S = input()

if S[0] != 'A':
    print("WA")
    exit()
if S[2:-1].count('C') != 1:
    print("WA")
    exit()
if S.replace("A", "").replace("C", "").islower == False:
    print("WA")
    exit()
print("AC")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
r=input()
if 0<r<=1199:
  print "ABC"
elif 1200< r <=2799:
  print "ARC"
elif 2800<= r <=4208:
  print "AGC"

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
word=input()
cflg=True
if word[0]!='A':
  cflg=False
  print(cflg)
elif word[2:-1].count('C')!=1:
  cflg=False
cnt=0
for l in word[1:]:
  if l.isupper():
    cnt+=1
else:
  if cnt!=1:
    cflg=False
  
if cflg:
  print('AC')
else:
  print('WC')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print("AGC")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

for i in range(100):
    if N - 7 * i >=0 and (N -(7 * i)) % 4 == 0:
        print("Yes")
        exit()
        
else:
    print("No")

Submission status: Wrong Answer

Solution code:
S = input()
N = len(S)
a,b,c,d = 0,0,0,1
mod = 10**9+7
for x in reversed(S):
  if x == "?":
    a,b,c,d = 3*a+b, 3*b+c, 3*c+d, 3*d
  elif x == "A":
    a += b
  elif x == "B":
    b += c
  elif x == "C":
    c += d
  a %= mod; b %= mod; c %= mod; d %= mod
print(a)

Submission status: Wrong Answer

Solution code:
R = int(input("数値を入力："))
if R < 1200:
    print("ABC")

elif R >= 1200 and R < 2800:
    print("ARC")
    
else:
    print("AGC")

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
r = int(input())

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

Submission status: Wrong Answer

Solution code:
a = int(input())

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

Submission status: Wrong Answer

Solution code:
r = int(input())

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

Submission status: Wrong Answer

Solution code:
r = int(input())

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

Submission status: Wrong Answer

Solution code:
import sys

s = input()

if s[0] != "A":
    print("WA")
    sys.exit(0)

if s[1] < "a" or s[1] > "z":
    print("WA")
    sys.exit(0)


sub = s[2:-1]
has = False
for c in sub:
    if not has and c == "C":
        has = True

    elif "a" <= c <= "z":
        continue

    else:
        has = False
        break

if not has:
    print("wA")
    sys.exit(0)

if "a" <= s[len(s) - 1] <= "z":
    print("AC")
else:
    print("WA")

Submission status: Wrong Answer

Solution code:
S=input()

judge = "AC" if (S[0] == 'a' and S[2:-1].count('C') == 1 and S[1:].replace('C', '').islower()) else "WA"
print(judge)

Submission status: Wrong Answer

Solution code:
S=input()
judge='AC'
cnt = 0
if S[0] != 'A':
    judge='WA'
for i in range(1, len(S)):
    if S[i].isupper():
        if i == 1 or i == len(S) - 1 or S[i] != 'C':
            judge = 'WA'
        cnt+=1

if cnt != 1:
    judge = 'WA'
print(judge)

Submission status: Wrong Answer

Solution code:
s = input()
res = "AC" if (s[0]=='A' and 'C' in s[2:-2] and s[1:].replace('C','',1).islower()) else "WC"
print(res)

Submission status: Wrong Answer

Solution code:
s = input()
res = "AC" if (s[0]=='A' and 'C' in s[2:-1] and s[1:].replace('C','',1).islower()) else "WC"
print(res)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import copy

s = list(input())
s_t = copy.deepcopy(s)
##if s[0] =="A" and "C" in s[2:-2]:
#    if
counter = 0
 
if s[0] != "A":
    print("WA")
    exit()
 
if not "C" in s[2:-1]:
    print("WA")
    exit()
 

c = False
komojo = True

for i in range(len(s)):
    if  2 <= i <= len(s)-2:
        if s[i] == "C":
            if c == True:
                c = False
            elif c != True:
                c = True
            #continue
        elif i != 1 and not s[i].islower():
            komojo = False

if c and komojo:
    print("AC")
else:
    print("WA")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
r = int(input())

if r >= 2800:
    print('AGC')
elif r >= 1400:
    print('ARC')
else:
    print('ABC')

Submission status: Wrong Answer

Solution code:
S = input()
INF = 10**9+7
dp = [0,0,0]
Q = 0
N = 1
for i in range(len(S)):
  if S[i]=='A':
    dp[0] += N%INF
    dp[0] %= INF
  elif S[i]=='B':
    dp[1] += (dp[0]%INF)
  elif S[i]=='C':
    dp[2] += (dp[1]%INF)
  else:
    a = dp[0]
    b = dp[1]
    dp[0] = N + dp[0]*3
    dp[1] = a + dp[1]*3
    dp[2] = b + dp[2]*3
    dp[0] %= INF
    dp[1] %= INF
    dp[2] %= INF
    N *= 3
print(dp[2]%INF)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
r = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
R =int(input())

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

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=input()
S=list(s)
t=S
count=0
c=0
ans='AC'
if S[0]!='A':
    ans='WA'
for i in range(2,len(t)-1):
    if t[i]=='C':
        count+=1
if count!=1:
    ans='WA'
if ans!='WA':
    for j in range(len(S)):
        if S[j]=='A' or 'C':
            S.remove(S[j])
            c+=1
        if c==2:
            break
    for k in range(len(S)):
        x=S[k].lower()
        if S[k]!=x:
            ans='WA'
            break
print(ans)

Submission status: Wrong Answer

Solution code:
R = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
print("AC" if "C" in s[2:-2] and s[0]=="A" and s[1:].replace("C","",1).islower else "WA")

Submission status: Wrong Answer

Solution code:
R=int(input())

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

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#110
S = list(map(int,input().split()))
ans=max(S)-min(S)
print(ans)

Submission status: Wrong Answer

Solution code:
r = int(input())

if r <= 1999:
    print("ABC")

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

Submission status: Wrong Answer

Solution code:
r = int(input())

if r <= 1999:
    print("ABC")

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

Submission status: Wrong Answer

Solution code:
r=int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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