Problem:


Score : 100 points

Problem Statement

AtCoder Inc. holds a contest every Saturday.

There are two types of contests called ABC and ARC, and just one of them is held at a time.

The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.

Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Constraints

S is ABC or ARC.

Input

Input is given from Standard Input in the following format:

S

Output

Print the string representing the type of the contest held this week.

Sample Input 1

ABC

Sample Output 1

ARC

They held an ABC last week, so they will hold an ARC this week.



Sample input:
ABC


Sample output:
ARC

Submission status: Runtime Error

Solution code:
n,k=map(int,input().split())
list_a=[]
for d in range(k):
  d=int(input())
  a=list(map(int,input().split()))
  list_a.extend(a)
ans=0
for i in range(1,n): 
 if list_a.count(i)==0:
      ans+=1
print(ans)

Submission status: Runtime Error

Solution code:
n,k=map(int,input().split())
list_a=[]
for d in range(k):
  d=int(input())
  a=list(map(int,input().split()))
  list_a.extend(a)
print(list_a)
ans=0
for i in range(1,n): 
 if list_a.count(i)==0:
      ans+=1
print(ans)

Submission status: Runtime Error

Solution code:
n=str(input())
if n="ABC":
  print("ARC")
else:
  print("ABC")

Submission status: Runtime Error

Solution code:
n=str(input())
if str="ABC":
  print("ARC")
else:
  print("ABC")

Submission status: Runtime Error

Solution code:
If input() == 'ABC':
  print('ARC')
else:
  print('ABC')

Submission status: Runtime Error

Solution code:
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
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

N = i()
A = l()
L = []
L2 = [0]*(10**6)
for i in range(N):
    if i+A[i]+1 < 10**6:
        L.append(i+A[i]+1)
    if i-A[i]+1 >= 0 and i-A[i]+1 < 10**6:
        L2[i-A[i]+1] += 1
ans = 0
for l in L:
    ans += L2[l]
print(ans)

Submission status: Runtime Error

Solution code:
S = input()
if S == "ABC:
	print("ARC")
else:
  print("ABC")

Submission status: Runtime Error

Solution code:
x=int(input())
i=1
flag=0
for i in range(41):
    for j in range(-41,41):
        if(i**5+j**5==x):
            flag=1
            print(i,-j)
            exit(0)

Submission status: Runtime Error

Solution code:
x=int(input())
i=1
flag=0
for i in range(10000):
    for j in range(-1000,1001):
        if(i**5+j**5==x):
            flag=1
            print(i,-j)
            exit(0)

Submission status: Runtime Error

Solution code:
x=int(input())
i=1
flag=0
for i in range(-41,41):
    for j in range(-41,41):
        if(i**5+j**5==x):
            flag=1
            print(i,-j)
            break
    if(flag==1):
        break

Submission status: Runtime Error

Solution code:
x=int(input())
i=1
flag=0
for i in range(40):
    for j in range(40):
        if(i**5+j**5==x):
            flag=1
            print(i,-j)
            break
    if(flag==1):
        break

Submission status: Runtime Error

Solution code:
s = str(input())

if s == ABC:
  print('ARC')
else:
  if s == ARC:
    print('ABC')

Submission status: Runtime Error

Solution code:
printt('ARC' if input()=='ABC' else 'ABC')

Submission status: Runtime Error

Solution code:
# A - A?C
S = int(input())
if S=='ABC':
    print('ARC')
else:
    print('ABC')

Submission status: Runtime Error

Solution code:
# 166 A

s = input()

if s == "ABC":
    print("ARC")
elif s == "ARC"
    print("ABC")

Submission status: Runtime Error

Solution code:
X = int(input())
# A>=0で考えられる
div_list = []
for a in range(1, int(X**0.5)+1):
    if X % a == 0:
        div_list.append((a, X//a))

#print(div_list)
for x, y in div_list:
    for a in range(int(X**0.5)+1):
        b = a - x
        #print(a, b)
        y_hat = a**4 + b*a**3 + b**2*a**2 + b**3*a + b**4
        #print(y_hat)
        if y_hat == y:
            print(a, b)
            exit()

Submission status: Runtime Error

Solution code:
s=input()
if(s=="ABC"):
  print("ARC")
 else:
  print("ABC")

Submission status: Runtime Error

Solution code:
if int(input())==ABC:
  print("ARC")
else :
  print("ABC")

Submission status: Runtime Error

Solution code:
S = input()
if S = ABC:
  print("ARC")
elif S = ARC:
  print("ABC")
else:

Submission status: Runtime Error

Solution code:
s = str(input())
if s == 'ABC':
  print('ARC)
else:
  print('ABC')

Submission status: Runtime Error

Solution code:
a = input()
if a is 'ABC':
  print('ARC')
eles:
  print('ABC')

Submission status: Runtime Error

Solution code:
s = input()

if s == "ABC":
  print("ARC")
else print("ABC")

Submission status: Runtime Error

Solution code:
n, m = map(int, input().split())
h = [0]+list(map(int, input().split()))
ans = [0]+[1]*n
for i in range(m):
    a, b = map(int, input().split())
    if h[a]>=h[b]:
        ans[b] = 0
    if h[b]>=h[a]:
        ans[a] = 0
print(sum(ans))

Submission status: Runtime Error

Solution code:
print(“ABC” if input()==“ARC” else “ARC”)

Submission status: Runtime Error

Solution code:
if S == 'ABC':
  S = 'ARC'
else:
  S = 'ABC'
  
print(S)

Submission status: Runtime Error

Solution code:
n,m=map(int,input().split())
arr=[0]+list(map(int,input().split()))
g=[[] for _ in range(n+1)]
for _ in range(m):
 a,b=map(int,input().split())
 g[a].append(b)
 g[b].append(a)
ans=0
for v in range(1,n+1):
 for u in g[v]: #i番目の展望台から1本の道を通っていけるすべての展望台と高さを比較する
   if arr[u]>=arr[v]:
     break
 else: #i番目の展望台の高さが他のすべての展望台の高さより真に大きければ答えを1増やす
   ans+=1
print(ans)

Submission status: Runtime Error

Solution code:
S = input()
if s == "ABC":
  print("ARC")
else:
  print("ABC")

Submission status: Runtime Error

Solution code:
N = int(input())
A = [int(i) for i in input().split()]

# 線形で計算できる
# j > iとしてA[j]+A[i] = j-iよりA[i]+i=j-A[j]
# iとjを分離できたのでjを前に進めていって、計算結果を貯めていけばいい
# 

counter = 0
dic = {}
for j in range(N):
    if j-A[j] in dic:
        counter += dic[j - A[j]]
    if j + A[j] in dic:
        dic[j+A[j]] += 1
    else:
        dic[j+A[j]] = 1
print(counter)

Submission status: Runtime Error

Solution code:
S=input()
if S=ABC:
  print(ARC)
else:
  print(ABC)

Submission status: Runtime Error

Solution code:
print('ARC' if input() != 'ABC else 'ABC')

Submission status: Runtime Error

Solution code:
S = input()
print('ARC' if S != 'ABC else 'ABC')

Submission status: Runtime Error

Solution code:
N=input()

print("ABC" if S=="ARC" else "ARC")

Submission status: Runtime Error

Solution code:
S = str(input())
if S=="ABC":
    print("ARC")
elif
    print("ABC")

Submission status: Runtime Error

Solution code:
a=[int(input())]
if a==("ABC"):
	print("ARC")
else:
  	print("ABC")

Submission status: Runtime Error

Solution code:
x = int(input())

if x == 1:
    a = 1
    b = 0
else:
    p = 1
    while True:
        while True:
            if x % p == 0:
                q = int(x / p)
                break
            else:
                p += 1
        ap = p
        am = p
        bp = 0
        bm = 0
        for i in range(200):
            if ap**4 + ap**3 * bp + ap**2 * bp**2 + ap * bp**3 + bp**4 == q:
                a = ap
                b = bp
                break
            elif am**4 + am**3 * bm + am**2 * bm**2 + am * bm**3 + bm**4 == q:
                a = am
                b = bm
                break
            ap += 1
            bp += 1
            am -= 1
            bm -= 1
        else:
            p += 1
            continue
        break

print('{} {}'.format(a, b))

Submission status: Runtime Error

Solution code:
n, m = map(int, input().split())
h = list(map(int, input().split()))
ab = [list(map(int, input().split())) for i in range(m)]

s = 0
for i in range(1, n + 1):
    tf = True
    k = i
    for j in range(len(ab)):
        if ab[j][0] == i:
            k = ab[j][1]
        elif ab[j][1] == i:
            k = ab[j][0]
        if (k != i) & (h[i - 1] <= h[k - 1]):
            tf = False
            del ab[j]
            break
    if tf == True:
        s += 1

print(s)

Submission status: Runtime Error

Solution code:
S = input()
if S =='ABC':
  print('ARC')
else:
  print('ABC)

Submission status: Runtime Error

Solution code:
x = int(input())
a = 0
b = 0
for i in range(1000):
  for j in range(-500, 500):
    if i**5 - j**5 == x:
      a = i
      b = j
      break
print(a, b)

Submission status: Runtime Error

Solution code:
def main():
    s = input()
    if s == 'ABC':
        print('ARC')
    else:
        print('ABC')
if __name__ == '__main__':
    main(

Submission status: Runtime Error

Solution code:

import numpy as np;
from numba import jit




if __name__ == '__main__':
    S = input()
    if S == "ABC":
        print("ARC")
    else:
        print("ABC"

Submission status: Runtime Error

Solution code:
import math
import sys

X = int(input())
 
for i in range(-118, 119):
  for j in range(-119, 118):
    if math.pow(i, 5) - math.pow(j, 5) == X:
      print("%d %d" % (i, j))
      sys.exit()

Submission status: Runtime Error

Solution code:
import math
import sys

X = int(input())
 
for i in range(1000):
  for j in range(-100, 1000):
    if math.pow(i, 5) - math.pow(j, 5) == X:
      print("%d %d" % (i, j))
      sys.exit()

Submission status: Runtime Error

Solution code:
import math
import sys

X = int(input())

for i in range(-100, 1000):
  for j in range(-100, 1000):
    if	math.pow(i, 5) - math.pow(j, 5)	== X:
      print("%d %d" % (i, j))
      sys.exit()

Submission status: Runtime Error

Solution code:
S = input()
 
if S == 'ABC':
  print(ARC)
else:
  print(ABC)

Submission status: Runtime Error

Solution code:
import numpy as np
n,m = map(int,input().split())
H = list(map(int,input().split()))
A=np.zeros((n,n))
for i in range(m):
    a,b=input().split()
    A[int(a)-1][int(b)-1]=1
    A[int(b)-1][int(a)-1]=1
count = 0    
for i in range(n):
  best = H[i]
  for j in range(n):
      if A[i][j]==1 and best <= H[j]:
        best = H[j]
  if best == H[i]:
    count += 1
print(count)

Submission status: Runtime Error

Solution code:
s=str(input())
if s[1]==B:
	print('ARC')
else:
	print('ABC')

Submission status: Runtime Error

Solution code:
s = input()
if s == 'ABC':
    return 'ARC'
else:
    return 'ABC'

Submission status: Runtime Error

Solution code:
N = int(input())
p = list(map(int, input().split()))
sum = [i + 1 + x for i, x in enumerate(p)]
dif = [i + 1 - x for i, x in enumerate(p)]
ans = 0

for i in range(N):
    ans += sum.count(dif[i])

print(ans)

Submission status: Runtime Error

Solution code:
s = input()
if s == "ARC":
	print("ABC")
elif s == "ABC":
    print("ARC")
else:
    break

Submission status: Runtime Error

Solution code:
S = input()

if S = 'ABC':
    print('ARC')
else:
    print('ABC')

Submission status: Runtime Error

Solution code:
s = input()
if s = 'ABC':
  print('ARC')
else:
  print('ABC')

Submission status: Runtime Error

Solution code:
x = int(input())
for a in range(-118,119):
    for b in range(-119,118):
        if a**5 - b**5 == x:
            print(a,b)
            exit()

Submission status: Runtime Error

Solution code:
s = print()
if s == "ABC":
    print("ARC")
else s == "ARC":
    print("ABC")

Submission status: Runtime Error

Solution code:
S = input()
if S = "ABC":
  print("ARC")
if S = "ARC":
  print("ABC")

Submission status: Runtime Error

Solution code:
S = input()
if (S == 'ABC)':
    print('ARC')
else:
    print('ABC')

Submission status: Runtime Error

Solution code:
a = input()
if(a == "ABC"):
  input("ARC")
else:
  input("ABC")

Submission status: Runtime Error

Solution code:
N,K = map(int,input().split())
 
P = [0 for i in range(N)]
m = 0
for i in range(K):
  a = int(input())
  b = list(int,input().split())
  for j in range(a):
    P[b[j]-1] = 1
    j += 1
    
for l in range(N):
  if P[l] == 0:
    m += 1
    
print(m)

Submission status: Runtime Error

Solution code:
n, k = map(int, input().split())
 
M = [0]*n
 
for i in range(k):
    d = int(input())
    a = [int(x) for x in input().split()]
    for j in range(d):
        M[a[j]-1] += 1
 
print(M.count(0))

Submission status: Runtime Error

Solution code:
n, k = map(int, input().split())
 
m = [0]*n
 
for i in range(k):
    d = int(input())
    a = [int(x) for x in input().split()]
    for j in range(d):
        m[a[j]-1] += 1
 
print(m.count(0))

Submission status: Runtime Error

Solution code:
n, k = map(int, input().split())
 
member = [0]*n
 
for i in range(k):
    d = int(input())
    a = [int(x) for x in input().split()]
    for j in range(d):
        
        member[a[j]-1] += 1
 
print(member.count(0))

Submission status: Runtime Error

Solution code:
s = raw_input()
abc = " ABC "
arc = " ARC "
if s = abc:
  print " ARC"
elif s = arc:
  print " ABC "

Submission status: Runtime Error

Solution code:
import numpy as np
argList = list(map(int, input().split())) 
heights = list(map(int, input().split())) 

#いい展望台フラグ
check = np.array([1]*argList[0])

for n in range(argList[1]):
    #どことどこをつないでいるか
    con = list(map(int, input().split())) 
    #低かったらいい展望台ではない
    if heights[con[0]-1] <= heights[con[1]-1]:
        check[con[0]-1] = 0
    if heights[con[0]-1] >= heights[con[1]-1]:
        check[con[1]-1] = 0
print(np.sum(check))

Submission status: Runtime Error

Solution code:
S = input()

if S ='ABC':
  print('ARC')
else:
  print('ABC')

Submission status: Runtime Error

Solution code:
S = input()

if S = "ABC":
  print("ARC")
else:
  print("ABC")

Submission status: Runtime Error

Solution code:
s=input()
if s==ABC:
  print('ARC')

elif s==ARC:
  print('ABC')

Submission status: Runtime Error

Solution code:
a=input()
if a="ABC":
  print("ARC")
else:
  print("ABC")

Submission status: Runtime Error

Solution code:
N,M=map(int,input().split())
high_list=list(map(int,input().split()))
pathlist=[]
for i in range(M):
    pathlist.append(list(map(int,input().split())))
waylist=[0]*N
ans=0
#i行目にi番目から行ける展望台をすべて入れる
for n in range(1,N+1):
    for m in pathlist:
        if(n in m):#もし経路に入っていたら
            if(m[0]==n):#自身じゃない方の高さを代入
                if(high_list[n-1]>high_list[m[1]-1]):
                    ans=ans+1
            else:
                if(high_list[n-1]>high_list[m[0]-1]):
                    ans=ans+1
print(ans)

Submission status: Runtime Error

Solution code:
N,M=map(int,input().split())
high_list=list(map(int,input().split()))
pathlist=[]
for i in range(M):
    pathlist.append(list(map(int,input().split())))
waylist=[0]*N
#i行目にi番目から行ける展望台をすべて入れる
for n in range(1,N+1):
    for m in pathlist:
        if(n in m):#もし経路に入っていたら
            if(m[0]==n):#自身じゃない方の高さを代入
                if(waylist[n-1],high_list[m[1]-1]):
                    waylist[n-1]=high_list[m[1]-1]
            else:
                if( waylist[n-1]<high_list[m[0]-1]):
                    waylist[n-1]=high_list[m[0]-1]

answer=0
for n in range(N):
    if(waylist[n]<high_list[n]):
        answer=answer+1

print(answer)

Submission status: Runtime Error

Solution code:
import numpy  as np
N,M=map(int,input().split())
high_list=list(map(int,input().split()))
pathlist=[]
for i in range(M):
    pathlist.append(list(map(int,input().split())))
waylist=np.array([[0]*N]*N)
#i行目にi番目から行ける展望台をすべて入れる
for n in range(1,N+1):
    for m in pathlist:
        if(n in m):#もし経路に入っていたら
            if(m[0]==n):#自身じゃない方の高さを代入
                waylist[n-1][m[1]-1]=high_list[m[1]-1]
            else:
                waylist[n-1][m[0]-1]=high_list[m[0]-1]

answer=0
for n in range(N):
    if(waylist[n].max()<high_list[n]):
        answer=answer+1

print(answer)

Submission status: Runtime Error

Solution code:
import sys
import math
import numpy as np
import copy

def main():
    s = input()
    print "ARC" if s == "ABC" else "ABC"
    return 0

if __name__ == '__main__':
    sys.exit(main())

Submission status: Runtime Error

Solution code:
contest=input()
if contest='ABC':
  print('ARC')
elif contest='ARC':
  print('ABC')
else:
  print('Error')

Submission status: Runtime Error

Solution code:
S = import()
if S == ABC:
  print("ARC")
else:
  print("ABC")

Submission status: Runtime Error

Solution code:
S=input()
if S="ABC":
  print("ARC")
else:
  print("ABC")

Submission status: Runtime Error

Solution code:
s=string(input())
print('ARC') if s=='ABC' else print('ABC')

Submission status: Runtime Error

Solution code:
S = input()

if S = 'ABC':
  print('ARC')
else:
  print('ABC')

Submission status: Runtime Error

Solution code:
S = input()

if S == 'ARC'
  print ('ABC')
else:
  print ('ARC')

Submission status: Runtime Error

Solution code:
S = input()

if S == 'ARC'
	print ('ABC')
else:
    print('ARC')

Submission status: Runtime Error

Solution code:
s = input()

if s = 'ARC':
  print (ACR)
else:
  print(ARC)

Submission status: Runtime Error

Solution code:
s = 'ABC' or 'ARC'
if s == 'ABC':
  print('今週はARC')
  elif s == 'ARC':
    print('次週はABC')

Submission status: Runtime Error

Solution code:
S=input()

if S = "ABC":
  print("ARC")
else:
  print("ABC")

Submission status: Runtime Error

Solution code:
contest=input()
if contest == 'ABC':
    print('ARC')
elif contest == 'ARC':
    print('ABC)

Submission status: Runtime Error

Solution code:
X=int(input())

Xkon=X**0.2
if(Xkon==int(Xkon)):
    print(str(0)+" "+str(int(-Xkon)))
    #break
else:
    m=-(10**3)
    while m<0:
        A=X+(m**)
        check=(A**0.2)
        # print(type(check))
        if(type(check)!=complex):
            if(check==int(check)):
                AnsA=-check
                AnsB=-m
                print(str(int(AnsB))+" "+str(int(AnsA)))
                break
            else:
                pass
        else:
            m=m+1
    n=1
    while n<10**3:
        A=X+(n**5)
        check=(A**0.2)
        if(check==int(check)):
            AnsA=check
            AnsB=n
            print(str(int(AnsB)+" "+str(int(-AnsA))))
            break
        else:
            n=n+1

Submission status: Runtime Error

Solution code:
X=int(input())

Xkon=X**0.2
if(Xkon==int(Xkon)):
    print(str(0)+" "+str(int(-Xkon)))
    #break
else:
    m=-(10**2)
    while m<0:
        A=X+(m**5)
        check=(A**0.2)
        # print(type(check))
        if(type(check)!=complex):
            if(check==int(check)):
                AnsA=-check
                AnsB=-m
                print(str(int(AnsB))+" "+str(int(AnsA)))
                break
            else:
                pass
        else:
            m=m+1
    n=1
    while n<10**2:
        A=X+(n**5)
        check=(A**0.2)
        if(check==int(check)):
            AnsA=check
            AnsB=n
            print(str(int(AnsB)+" "+str(int(-AnsA))))
            break
        else:
            n=n+1

Submission status: Runtime Error

Solution code:
x = int(input())

for a in range(100):
    for b in range(100):
        if a**5 + b**5 == x:
            print(a, b)
            exit()

Submission status: Runtime Error

Solution code:
N=input()

if (N ="ABC"):
    print("ARC")
else:
    print("ABC")

Submission status: Runtime Error

Solution code:
N=input()

if (N ="ABC"):
    print("ARC")
else:
    print(ABC)

Submission status: Runtime Error

Solution code:
s = input()
if s == 'ABC':
  print()'ARC'
else:
  print('ABC')

Submission status: Runtime Error

Solution code:
S=int(input())
if S="ABC":
    print("ARC")
else:
    print("ABC")

Submission status: Runtime Error

Solution code:
S = input()
ans
if S=="ABC" :
  ans="ARC"
else:
  ans="ABC"
print(ans)

Submission status: Runtime Error

Solution code:
S = input()
ans:
if S=="ABC" :
  ans="ARC"
else:
  ans="ABC"
print(ans)

Submission status: Runtime Error

Solution code:
S = input()
ans:
if S="ABC" :
  ans="ARC"
else:
  ans="ABC"
print(ans)

Submission status: Runtime Error

Solution code:
last_name = input()
last_type = last_name[:3]

if last_type == "ABC":
  return "ARC"
else:
  return "ABC"

Submission status: Runtime Error

Solution code:
import copy
n,m = map(int,input().split())
ht = [x for x in input().split()]
hl = {x + 1 : int(ht[x]) for x in range(len(ht))}
mx = {h:0 for h in hl}
for i in range(m):
    l,r = map(int,input().split())
    mx[l] = max(mx[l],hl[r])
    mx[r] = max(mx[r],hl[l])
cnt = 0
for h in hl:
    if mx[h] < hl[h]:
        cnt += 1
print(cnt)

Submission status: Runtime Error

Solution code:
import numpy as np
x=int(input())
v=0
count=1
while v==0:
    if x<=2*(count)**5:
        v=1
    else:
        count+=1
for i in range(-1*count,count):
    if i**5+x<0:
        m=np.power(-1*(i**5+x),0.2)
        m=-1*m
    else:
        m=np.power(i**5+x,0.2)
    M=int(m)
    if m-M<=10**(-5):
        b=i
        a=M
        break
print(a,b)

Submission status: Runtime Error

Solution code:
NM=list(map(int,input().split()))
person=[0 for i in range(NM[0])]
for i in range(NM[1]):
    d=input() 
    snack=list(map(int,input().split()))
    for i in snack:
        person[i-1]=1
d=0
for i in range(len(person)):
    if person[i]==0:
        d+=1
print(d)

Submission status: Runtime Error

Solution code:
S = input()
if S ='ABC':
    print('ARC')
else:
    print('ABC')

Submission status: Runtime Error

Solution code:
S=input()

if S == "ABC":
  print(ARC)
else:
  print(ABC)

Submission status: Runtime Error

Solution code:
str = input()

if str == "ABC":
    print(ARC)
else:
    print(ABC)

Submission status: Runtime Error

Solution code:
S = input().split()

if S == 'ARC':
    print('ABC')
elif S == 'ABC' 
    print('ARC')

Submission status: Runtime Error

Solution code:
S = input().split()

if S == 'ARC':
    print('ABC')
elif S = 'ABC' 
    print('ARC')

Submission status: Runtime Error

Solution code:
S = int(input())
if S == "ABC":
  print("ARC")
else:
  print("ABC")

Submission status: Runtime Error

Solution code:
p = 0
N = int(input())
A = list(map(int , input().split()))
for i in range(N):
  for j in range(N):
    sa = abs(i-j)
    wa = A[i]+A[j]
    
    if(sa == wa):
      p += 1
print(p//2)

Submission status: Runtime Error

Solution code:
N = int(input())
A = [int(a) for a in input().split()]
cnt = 0
for i in range(N):
  for j in range(i+1, N):
    d = A[i] + A[j] - (j-i)
    if d == 0:
      cnt += 1
print(cnt)

Submission status: Runtime Error

Solution code:
X = int(input())
 
for a in range(-119 , 120 , 1):
  A = a**5
  for b in range(-119 , 120 , 1):
    B = b**5
    if(A-B==X):
      print(a, b)
      exit()
    else:
      continue

Submission status: Runtime Error

Solution code:
N = int(input())

height = input()
height = height.split()
height = [int(s) for s in height]

count = 0

for i in range(N):
  for j in range(i+1, N):
    if j-i == height[i] + height[j]:
      count += 1

print(count)

Submission status: Runtime Error

Solution code:
X = int(input())
 
flag = 0
A = 0
B = 0
 
for i in range(0, 100000):
  for j in range(0, 100000):
    if i**5 - j**5 == X:
      A = i
      B = j
      break
    elif i**5 + j**5 == X:
      A = i
      B = j
      break
    elif -i**5 - j**5 == X:
      A = -i
      B = j
      break
print(str(A) + ' ' + str(B))

Submission status: Runtime Error

Solution code:
X = int(input())
 
flag = 0
A = 0
B = 0
 
for i in range(0, 100):
  for j in range(0, 100):
    if i**5 - j**5 == X:
      A = i
      B = j
      break
    elif i**5 + j**5 == X:
      A = i
      B = j
      break
    elif -i**5 - j**5 == X:
      A = -i
      B = j
      break
print(str(A) + ' ' + str(B))

Submission status: Runtime Error

Solution code:
S = stdin.readline().rstrip()

if S == 'ABC':
    print('ARC')
else:
    print('ABC')

Submission status: Runtime Error

Solution code:
tw ="ABC" if input().startswith("ARC") else "ARC")
print(tw)

Submission status: Runtime Error

Solution code:
tw ="ABC" if input().startsWith("ARC") else "ARC")
print(tw)

Submission status: Runtime Error

Solution code:
tw ="ABC" if lw.startsWith(input()) else "ARC")
print(tw)

Submission status: Runtime Error

Solution code:
lw = input()
print("ABC" if lw.startsWith("ABC") else "ARC")

Submission status: Runtime Error

Solution code:
x=int(input())
for i in range(-1000:1000:1):
  for j in range(-1000:1000:1):
    if i**5-j**5==x:
      print(i,j)
      exit()

Submission status: Runtime Error

Solution code:

lw = input()
print(lw.startsWith("ABC") ? "ARC" : "ABC")

Submission status: Runtime Error

Solution code:
import sys
lw = sys.argv[1]
print(lw.startsWith("ABC") ? "ARC" : "ABC")

Submission status: Runtime Error

Solution code:
import sys
lw = sys.argv[1]
retrun lw.startsWith("ABC") ? "ARC" : "ABC"

Submission status: Runtime Error

Solution code:
lw = input()
retrun lw == "ABC" ? "ARC" : "ABC"

Submission status: Runtime Error

Solution code:
import sys
lw = sys.argv[1]
return lw == "ABC" ? "ARC" : "ABC"

Submission status: Runtime Error

Solution code:
import sys
lw = sys.argv[1]
retrun lw == "ABC" ? "ARC" : "ABC"

Submission status: Runtime Error

Solution code:
if S == "ABC":
    print("ARC")
else:
    print("ABC")

Submission status: Runtime Error

Solution code:
if S == "ABC":
    print("ARC")
else S == "ARC":
    print("ABC")

Submission status: Runtime Error

Solution code:
#OutPut
if S == "ABC":
    print("ARC")
else S == "ARC":
    print("ABC")

Submission status: Runtime Error

Solution code:
p=input()
if p='ABC':
  print('ARC')
else:
  print('ABC')

Submission status: Runtime Error

Solution code:
S == input()
if S[1] == 'R':
	print('ABC')
else:
    print('ARC')

Submission status: Runtime Error

Solution code:
if S[1] == "R":
  return 'ABC'
else:
  return 'ARC'

Submission status: Runtime Error

Solution code:
from sys import stdin
input = stdin.readline

from collections import deque

X = int(input())
s = {}
q = deque()

q.append([1, 0])
while True:
	ab = q.popleft()
	tmp = ab[0] ** 5 - ab[1] ** 5
	if (tmp == X):
		print(ab[0], ab[1])
		quit()
	elif (tmp > X):
		q.append([ab[0] - 1, ab[1]])
		q.append([ab[0], ab[1] - 1])
	else:
		q.append([ab[0] + 1, ab[1]])
		q.append([ab[0], ab[1] - 1])

Submission status: Runtime Error

Solution code:
n, a, b, c = map(int, input().split())


def calc(x, y):
    if x - 1 >= 0:
        return (x - 1, y)
    elif y - 1 >= 0:
        return (x, y - 1)


answers = []
for i in range(n):
    s = list(map(str, input().split()))
    old_a = a
    old_b = b
    old_c = c

    if s == 'AB':
        a, b = calc(a, b)
    elif s == 'AC':
        a, c = calc(a, c)
    elif s == 'BC':
        b, c = calc(b, c)

    if a > old_a:
        answers.append('A')
    elif b > old_b:
        answers.append('B')
    elif c > old_c:
        answers.append('C')

    if a >= 0 and b >= 0 and c >= 0:
        print('No')
        quit()


print('Yes')
for ans in answers:
    print(ans)

Submission status: Runtime Error

Solution code:
str=input()
if str=="ABC":
    print("ARC")
    elif str=="ARC":
        print("ABC")
    else:

Submission status: Runtime Error

Solution code:
if S == ("ABC"):
  print("ARC")
else:
  print("ABC")

Submission status: Runtime Error

Solution code:
if S =="ABC":
  print("ARC")
else:
  print("ABC")

Submission status: Runtime Error

Solution code:
if S == "ABC"
print "ARC"
if S =="ARC"
print"ABC"

Submission status: Runtime Error

Solution code:
S = 'ABC', 'ARC'
if S = 'ABC':
  print('ARC')
  else print('ABC')

Submission status: Runtime Error

Solution code:
S = ['ABC','ARC']
int = S
if int('ABC'):
  print('ARC')
  else print('ABC')

Submission status: Runtime Error

Solution code:
s = [ABC,ARC]
if s = ABC:
  print(ARC)
  else print(ABC)

Submission status: Runtime Error

Solution code:
s = True
int = s
if int = ABC:
  print('ARC')
  else print('ABC')

Submission status: Runtime Error

Solution code:
S = ['ABC','ARC']
if S = 'ABC':
  print('ARC')
  else 
  print('ABC')

Submission status: Runtime Error

Solution code:
n=input()
if(n=="ARC):print("ABC")
else: print("ARC)

Submission status: Runtime Error

Solution code:
contest = int(input())

if contest == "ABC":
  print("ARC")
else:
  print("ABC")

Submission status: Runtime Error

Solution code:
S = input()
 
if S == "ABC":
	print(ARC)

if S == "ARC":
  	print(ABC)

Submission status: Runtime Error

Solution code:
S = input()
 
if S == ABC:
	print(ARC)

if S == ARC:
  	print(ABC)

Submission status: Runtime Error

Solution code:
S = input()
 
if S == ABC:
	print(ARC)
    
if S == ARC:
  print(ABC)

Submission status: Runtime Error

Solution code:
S = inout()

if S == ABC:
	print(ARC)
    
if S == ARC:
  print(ABC)

Submission status: Runtime Error

Solution code:
str = input()
  if str=='ABC':
    print('ARC')
  else:
    print('ABC)

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline

def main():
    x = int(input())
    for i in range(-1000, 1000):
        for j in range(-1000, 1000):
            if x == i**5 - j**5:
                print(i, j)
                break
        else:
            continue
        break

if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline

def main():
    X = int(input())
    i = 0
    while True:
        a = (X + i**5)**(1/5)
        if isinstance(a, float):
            if a.is_integer():
                print(str(int(a))+' '+str(i))
                break

        a = (X - i**5)**(1/5)
        if isinstance(a, float):
            if a.is_integer():
                print(str(int(a))+' '+str(-i))
                break
        i += 1

if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
N,M = map(int,input().split())
H=list(map(int,input().split()))
ABmap=[[] for i in range(N)]
count=0
for i in range(M):
    A,B=map(lambda x:x-1,map(int,input().split()))
    ABmap[A].append(H[B])
    ABmap[B].append(H[A])
        
for i in range(N):
    #print(ABmap[i])
    #print(ABmap.count(H[i]))
    if max(ABmap[i])<H[i]:
        count+=1
print(count)

Submission status: Runtime Error

Solution code:
S = input()
if S == 'ABC':
  print('ARC')
elif S == 'ARC'):
  print('ARC')

Submission status: Runtime Error

Solution code:
N,M = map(int,input().split())
H=list(map(int,input().split()))
ABmap=[[0 for i in range(N)] for i in range(N)]
count=0
for i in range(M):
    A,B=map(lambda x:x-1,map(int,input().split()))
    ABmap[A][B]=H[B]
    ABmap[B][A]=H[A]
        
for i in range(N):
    #print(ABmap[i])
    #print(ABmap.count(H[i]))
    if max(ABmap[i])<H[i]:
        count+=1
print(count)

Submission status: Runtime Error

Solution code:
if S = "ABC":
  print "ARC"
else:
  print "ABC"

Submission status: Runtime Error

Solution code:
if S = "ABC"{
  print("ARC")
}else{
  print("ABC")

Submission status: Runtime Error

Solution code:
ABC = S
ARC = S

Submission status: Runtime Error

Solution code:
S=str(input())
if S=="ABC":
  print("ARC")
else if S=="ARC":
  print("ABC")

Submission status: Runtime Error

Solution code:
S = str(input())
if S == 'ABC'
	print('ARC')
else
	print('ABC')

Submission status: Runtime Error

Solution code:
S = str(input())
if S == 'ABC'
	print('ARC')
else S == 'ARC'
	print('ABC')

Submission status: Runtime Error

Solution code:
S = str(input())
if S == 'ABC'
	print('ARC')
elif S == 'ARC'
	print('ABC')

Submission status: Runtime Error

Solution code:
X = int(input())
a = 1
b = 1
while True:  
  if(a**5 - b**5 == X):
    print(a , b)
    break
  a += 1
  for i in range(X):
    b += 1
    if(a**5 - b**5 == X):
      print(a , b)
      exit()
while True:
  if(a**5 - b**5 == X):
    print(a , b)
    break
  b -= 1
  for j in range(X):
    b -= 1
    if(a**5 - b**5 == X):
      print(a , b)
      exit()

Submission status: Runtime Error

Solution code:
if S = 'ABC':
  print('ARC')
else S = 'ARC':
  print('ABC')

Submission status: Runtime Error

Solution code:
if S = 'ABC':
  print('ARC')
else:
  print('ARC')