TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: For an integer N, we will choose a permutation \\{P_1, P_2, ..., P_N\\} of \\{1, 2, ..., N\\}.  Then, for each i=1,2,...,N, let M_i be the remainder when i is divided by P_i.  Find the maximum possible value of M_1 + M_2 + \cdots + M_N.

Submission attempts (in order):
N = int(input())
print(N * (N-1) / 2)

N = int(input())

print(N * (N - 1) // 2)

Verdicts: Wrong Answer

Accepted
Problem: For an integer N, we will choose a permutation \\{P_1, P_2, ..., P_N\\} of \\{1, 2, ..., N\\}.  Then, for each i=1,2,...,N, let M_i be the remainder when i is divided by P_i.  Find the maximum possible value of M_1 + M_2 + \cdots + M_N.

Submission attempts (in order):


# N*(N-1)/2 < x < N*(N+1)/2

n = int(input())
print((n*n-n)/2)




# N*(N-1)/2 < x < N*(N+1)/2

n = int(input())
print((n*n-n)//2)


Verdicts: Wrong Answer

Accepted
Problem: For an integer N, we will choose a permutation \\{P_1, P_2, ..., P_N\\} of \\{1, 2, ..., N\\}.  Then, for each i=1,2,...,N, let M_i be the remainder when i is divided by P_i.  Find the maximum possible value of M_1 + M_2 + \cdots + M_N.

Submission attempts (in order):
N = int(input())
print(N * (N-1) / 2)

N = input()
print(N * (N - 1)/2)

N = int(input())
print((N - 1) * N // 2)

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: For an integer N, we will choose a permutation \\{P_1, P_2, ..., P_N\\} of \\{1, 2, ..., N\\}.  Then, for each i=1,2,...,N, let M_i be the remainder when i is divided by P_i.  Find the maximum possible value of M_1 + M_2 + \cdots + M_N.

Submission attempts (in order):
n=int(input)-1
print((1+n)*n//2)

n=int(input())-1
print((1+n)*n//2)

Verdicts: Runtime Error

Accepted
Problem: For an integer N, we will choose a permutation \\{P_1, P_2, ..., P_N\\} of \\{1, 2, ..., N\\}.  Then, for each i=1,2,...,N, let M_i be the remainder when i is divided by P_i.  Find the maximum possible value of M_1 + M_2 + \cdots + M_N.

Submission attempts (in order):
from sys import stdin
n = int(stdin.readline().rstrip())
li = [p for p in range(1,n)]
if n == 1:
    print(0)
else:
    if n%2 == 0:
        print((li[0]+li[-1])*(n//2)+n//2+1)
    else:
        print((li[0]+li[-1])*(n//2))

from sys import stdin,setrecursionlimit
import string
setrecursionlimit(10 ** 7)
n = int(stdin.readline().rstrip())
print(n*(n-1)//2)

Verdicts: Wrong Answer

Accepted
Problem: For an integer N, we will choose a permutation \\{P_1, P_2, ..., P_N\\} of \\{1, 2, ..., N\\}.  Then, for each i=1,2,...,N, let M_i be the remainder when i is divided by P_i.  Find the maximum possible value of M_1 + M_2 + \cdots + M_N.

Submission attempts (in order):
N = int(input())
print((N - 1) * N / 2)


N = int(input())
print(((N - 1) * N // 2))


Verdicts: Wrong Answer

Accepted
Problem: For an integer N, we will choose a permutation \\{P_1, P_2, ..., P_N\\} of \\{1, 2, ..., N\\}.  Then, for each i=1,2,...,N, let M_i be the remainder when i is divided by P_i.  Find the maximum possible value of M_1 + M_2 + \cdots + M_N.

Submission attempts (in order):
print(sum([int(i) for i in range(N)]))

N = int(input())

ans = ((2 + N - 1) * N // 2) - N
print(ans)

Verdicts: Runtime Error

Accepted
Problem: For an integer N, we will choose a permutation \\{P_1, P_2, ..., P_N\\} of \\{1, 2, ..., N\\}.  Then, for each i=1,2,...,N, let M_i be the remainder when i is divided by P_i.  Find the maximum possible value of M_1 + M_2 + \cdots + M_N.

Submission attempts (in order):
n = int(input())
n_array = [m + 1 for m in range(n)]
max_n =[]
max_tmp = []
for i in range(n):
    for m in range(n):
        max_tmp.append((i + 1) % n_array[m])
    max_n.append(max(max_tmp))
print(sum(max_n))

N=int(input())

print((N-1)*N//2)

Verdicts: Wrong Answer

Accepted
Problem: For an integer N, we will choose a permutation \\{P_1, P_2, ..., P_N\\} of \\{1, 2, ..., N\\}.  Then, for each i=1,2,...,N, let M_i be the remainder when i is divided by P_i.  Find the maximum possible value of M_1 + M_2 + \cdots + M_N.

Submission attempts (in order):
N = int(input)
ans = (1/2) * (N-1) * (N)
print(int(ans))


N = int(input())
ans = (N-1) * (N) //2
print(int(ans))


Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input())
s = 'pink'
a > 3199 = s
a < 3200 = 'red'

a = int(input())
s = int(input())
if a > 3199:
  print(s)
else:
  print('red')

a = int(input())
s = str(input())
if a > 3199:
    print(s)
else:
    print('red')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input())
b = input()
if a >= 3200:
  print('red')
else:
  print(b)
  

a = int(input())
b = input()
if a < 3200:
  print('red')
else:
  print(b)
  

Verdicts: Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
if __name__=="__main__":
    import sys

a = int(input("Please enter a nubmer: "))
s = input("Please enter a String: ")
 
if a>=3200:
 print(s)
else:
 print('red')


N = int(input())
if N>0 or N<=100:
    A = []
    for i in range(0,N):
      B = int(input())
      if B>0 or B<=1000:
          A.append(B)
 
    sum1 = 1/A[0]
 
    for i in range(0,N-1):
      sum1 = sum1 + 1/A[i+1]
 
    result = 1/sum1
    print(result)

N = int(input())
A = []
for i in range(0,N):
  B = int(input())
  A.append(B)

sum1 = float(1/A[0])

for i in range(0,N-1):
  sum1 = sum1 + 1/A[i+1]

result = 1/sum1
print(result)

if __name__=="__main__":
    import sys
    a = int(input("Please enter a nubmer: "))
    s = input("Please enter a String: ")
 else:
     a = input()
     s = input()
if a>=3200:
 print(s)
else:
 print('red')


if __name__=="__main__":
    import sys
    a = int(input("Please enter a nubmer: "))
    s = input("Please enter a String: ")
else:
     a = input()
     s = input()
if a>=3200:
    print(s)
else:
    print('red')


try:
    N = int(input())
    if N>1:
        S = input()
        A = S.split()
        A = list(map(float, A))
        if all(i >= 0 or i < 1000 for i in A):
            sum = [0]*(N)
            sum = A.copy()
            for k in range(0, N):
                for i in range(0, N-1):
                    if((k+i)>=(N-1)):
                        j = i+k+1-N
                    else:
                        j=i+k+1
                    sum[k] = (sum[k]+A[j])/2
            
    print(max(sum))

except:
    print("Error")

a = int(input())
s = str(input())
print(s) if not(a<3200) else print('red')

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a=int(input())
s=str(input())
if a>3200:
    print(s)
else:
    print('red')

a=int(input())
s=str(input())
if a>=3200:
    print(s)
else:
    print('red')

Verdicts: Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
x = int(input())
y = input()

if x >= 3200 :
     print(y)

else:
print('red')


x = int(input())
y = input()

if x >= 3200 :
     print(y)

else:
print('red')


n = int(input())
guzai_valu = list(map(int, input().split()))
heikin=0
i=1
while i <= n-1:
   guzai_valu_sort = sorted(guzai_valu)
   #print(guzai_valu_sort)
   heikin=(guzai_valu_sort.pop(0)+guzai_valu_sort.pop(0))/2
   
   
   
   guzai_valu_sort.append(heikin)
   guzai_valu = guzai_valu_sort
   i=i+1


print(heikin)


x = int(input())
y = input()

if x >= 3200 :
     print(y)

else:
     print('red')


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a=int(input())
s=input()
if a <3200 and s=='red':
    print("pink")
elif a<3200 and s=='pink':
    print("red")


a=int(input())
s=input()
if a>=3200:
  print(s)
else:
  print('red')

Verdicts: Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input())
s = input()
if a >= 3200:
	print(a)
else:
	print("red")

a = int(input())
s = input()
if a >= 3200:
	print(s)
else:
	print("red")

Verdicts: Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
n = int(input())
numbers = []
i = 0
while i <= n:
  numbers.append(int(input()))
  i += 1

j = 0
s = 0
while n >= j:
  s += 1/numbers[j]
  i += 1

print(1/s)

a = int(input())
s = input()
if a >= 3200:
  print(a)
  print(s)
else:
  print("red")

n = int(input())
a = map(int,input().split())
print('{:.16g}'.format(1/sum(1/x for x in a)))

a = int(input())
s = input()
if a >= 3200:
  print(s)
else:
  print("red")

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a=int(input())
s-input()
if a>=3200:
    print(s)
else:
    print("red")


a=int(input())
s=input()
if a>=3200:
    print(s)
elif a<3200:
    print("red")


Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = inptu()
s = input()

answer = s if a >= 3200 else 'red'

print(answer)


a = int(input())
s = input()

answer = s if a >= 3200 else 'red'

print(answer)


Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
num=int(input())
text=input()

if num>=3200:
    print(3200)
else:
    print('red')

num=int(input())
text=input()

if num>=3200:
    print(num)
else:
    print('red')

num=int(input())
text=input()

if num>=3200:
    print(text)
else:
    print('red')

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input()
s = input()
if a >= 3200:
    print(s)
else:
    print('red')

a = int(input())
s = input()
if a >= 3200:
    print(s)
else:
    print('red')

Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input())
s = str(input())

if a >=3200:
  print("red")
else:
  print(s)

a = int(input())
s = str(input())

if a >=3200:
  print(s)
else:
  print("red")

Verdicts: Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input())
s = input()
if a≥=3200:
  print(s)
else:
  print("red")

a = int(input())
s = input()
if a>=3200:
  print(s)
else:
  print("red")

Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input())
s = int(input())
# C = int(input())
# b = input()
print(s if a >= 3200 else "red")

a = int(input())

# C = int(input())
s= input()
print(s if a >= 3200 else "red")

Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(inpur())
s = input()

if a < 3200:
    print('red')
else :
    print(s)

a = int(input())
s = input()

if a < 3200:
    print('red')
else :
    print(s)

Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
repeat =int(input())
numbers =input().rstrip().split(" ")
#print(numbers)
sum =0
for i in range(repeat):
  sum =sum +1/int(numbers[i])
#print(sum)
answer =1/sum
print(answer)

a =int(input())
s =input()
if a>=3200:
  print(s)
else:
  print("red")



Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
import sys
import queue
input = sys.stdin.readline

N, Q = map(int, input().split())
tree = [[] for _ in range(N+1)]
value = [0] * (N+1)
visit = [False] * (N+1)

# make_tree
for _ in range(N-1):
    a, b = map(int, input().split())
    tree[a].append(b)
    tree[b].append(a)

# make_value
for _ in range(Q):
    p, x = map(int, input().split())
    value[p] += x

# all_value_sum
q = queue.Queue()
q.put(1)
visit[1] = True
while not q.empty():
    now = q.get()
    for next in tree[now]:
        if not visit[next]:
            value[next] += value[now]
            q.put(next)
            visit[next] = True

# output_value
s = " ".join(map(str, value[1:]))
print(s)

a = int(input())
s = input()
print(s) if a >= 3200 else print("red")

Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a=int(input())
s=int()
if a>=3200:
  print(s)
else:
  print("red")

a=int(input())
s=input()
if a>=3200:
  print(s)
else:
  print("red")


Verdicts: Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a, s = int(input()), input()
if a < 3200:
    print(s)
else:
    print(a)


a, s = int(input()), input()
if a < 3200:
    print(s)
else:
    print('red')


a, s = int(input()), input()
if a < 3200:
    print('red')
else:
    print(s)


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
l, r = map(int, input().split())
import math

ans = 0
inf = math.ceil(math.log(l, 2))
sup = math.floor(math.log(r+1, 2)) - 1
for i in range(inf, sup+1):
  ans += 3 ** i

for i in range(l, 2 ** inf):
  n = bin(i).count('0') - 1
  ans += 2 ** n

for i in range(2 ** (sup + 1), r + 1):
  n = bin(i).count('1') - 1
  ans += 2 ** n
print(ans % int(10**9+7))

a = int(input())
s = input()

if a >= 3200:
  print(s)
else:
  print('red')

Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
s = map(int,input())
a = map(str,input())
if s >= 3200
 print("red")
else
 print(s)

s = map(int,input())
a = map(str,input())
if s >= 3200:
 print("red")
else:
 print(a)

s = map(int,input())
a = map(str,input())
if s >= 3200:
 print("red")
else:
 print(s)

s = map(int,input())
a = map(str,input())
if s >= 3200:
print("red")
else:
print(a)

a = int(input())
s = str(input())
if a >= 3200:
 print("red")
if a < 2800:
 print(s)

s = int(input())
a = str(input())
if s >= 3200:
 print("red")
else:
 print(a)

a = int(input())
s = str(input())
if a >= 3200:
 print("red")
if s < 2800:
 print(s)

a = int(input())
s = str(input())
if a >= 3200:
 print("red")
else:
 print(s)

a = int(input())
s = str(input())
if a >= 3200:
 print(s)
if a < 3200:
 print("red")


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input())
s = input()

if a => 3200:
    print(s)

elif:
    print("red")


#-*- coding: UTF-8 -*-

a = int(input())
s = input()

if a => 3200:
    print(s)

elif:
    print("red")


a = int(input())
s = input()

if a >= 3200:
    print(s)

else:
    print("red")


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a=int(input())
s=int(input())
if a >= 3200:
    print(s)
else:
    print('red')

a=int(input())
s=input()
if a >= 3200:
    print(s)
else:
    print('red')

Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a=int(input())
s=input()

if a>=3200:
    input(s)
else:
    input("red")

a=int(input())
s=str(input())

if a>=3200:
    input(s)
else:
    input("red")

a=int(input())
s=str(input())

if a>=3200:
    print(s)
else:
    print("red")


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a=int(input())
s=input()
if a<3200:
  print(s)
else:
  print('red')

a=input()
s=input()
if a<3200:
  print('red')
else:
  print(s)

a=int(input())
s=input()
if a<3200:
  print('red')
else:
  print(s)


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
from collections import deque

n, q = map(int, input().split())
G = [[] for yy in range(n)]
count = [0]*n
flag=[False]*n
stack = deque([0])

for _ in range(n-1):
  a, b = map(int, input().split())
  G[a-1].append(b-1)
  G[b-1].append(a-1)
  
for _ in range(q):
  p, x = map(int, input().split())
  count[p-1] += x

stack.append(0)
while stack:
  v = stack.pop()
  flag[v] = True
  for e in G[v]:
    if flag[e]:
      continue
    count[e] += count[v]
    stack.append(e)

print(*count)

a=int(input())
s=input()
if a>=3200:
  print(s)
else:
  print('red')

Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input())
if a >= 3200:
  s = input()
  print(s)
 else:
  print('red')

N = int(input().rstrip())
v = input().rstrip().split(" ")
v.sort()
#print(v)
a = (int(v[0])+int(v[1])) / 2
i = 2
while i <= (N-1):
  a = (a + int(v[i])) / 2
  i += 1
print(':.6f'.format(a))

N = int(input().rstrip())
A = input().rstrip().split(" ")
a = 0
for i in range(N):
  a += 1 / int(A[i])
b = 1 / a
print(b)

N = int(input().rstrip())
v = input().rstrip().split(" ")
v.sort()
#print(v)
a = (int(v[0])+int(v[1])) / 2
i = 2
while i <= (N-1):
  a = (a + int(v[i])) / 2
  i += 1
print(a)

a = int(input().rstrip())
if a >= 3200:
  print(input())
 else:
  print("red")

a = input()
a = int(a)
if a >= 3200:
  s = input()
  print(s)
 else:
  print('red')

a = input()
a = int(a)
if a >= 3200:
  s = input()
  print(s)
else:
  print('red')

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a=int(input())
s=input()
print('s' if a>=3200 else 'red')

a=int(input())
s=input()
print(s if a>=3200 else 'red')


Verdicts: Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
n = int(input())
str = input()

if n < 3200:
    print(str)
else:
    print("red")

n = int(input())
str = input()

if n < 3200:
    print("red")
else:
    print(str)

Verdicts: Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a=int(input())
s=input()
if a>=3199:
      print(a)
else:
      print("red")

a=int(input())
s=input()
if a<=3200:
      print(a)
else:
      print("red")

a=int(input())
s=input()
if a>=3200:
      print(a)
else:
      print("red")

a=int(input())
s=input()
if a>=3200:
      print(s)
else:
      print("red")

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a=int(input())
s=(input())

if a<=3200:
  print("red")
else:
  print(s)

a=int(input())
s=(input())

if a<3200:
  print("red")
else:
  print(s)

Verdicts: Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a=input()
s=input()

if a>=3200:
    print(s)

else:
    print('red')

a=input()
s=input()

if a>=3200:
    print(s)

if a<3200:
    print('red')

a=int(input())
s=input()

if a>=3200:
    print(s)

else:
    print('red')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
n=int(input())
v=input().split()
w=sorted(v)
a=1
x=int(w[0])
while a<=n-1:
  y=int(w[a])
  z=float(x)+float(y)
  x=float(z)/float(2)
  a=a+1
print(x)

A=input()
s=input()
a=int(A)
if a>=3200:
  print(s)
else:
  print('red')

Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input())
s = input()

if a<= 3200:
  print('red')
else:
  print(s)

a = int(input())
s = input()

print(s if a>=3200 else 'red')

Verdicts: Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
if a >= 3200:
	print(s)
else:
	print('red')


if a < 3200:
	print(a)
else:
	print(s)

a=int(input().split())
s=input().split()
if a >= 3200:
  print(s)
else:
  print(a)

if a < 5000 && a >= 3200:
	print(s)
elif 2800 <= a && a < 3200:
	print('red')

a = 0
s = ''
if a >= 3200:
  print(s)
elif a < 3200:
  print('red')

if a >= 3200:
  print(s)
elif a < 3200:
  print('red')

a=int(input())
s=input()
if a >= 3200:
  print(s)
else:
  print('red')

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = input()
s = input()

if a >= 3200:
	print(s)

elif a < 3200:
	print("red")

	


a = int(input())
s = input()

if a >= 3200:
	print(s)

elif a < 3200:
	print("red")




Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input())
s = input()

if >= 3200:
  print(s)
else:
  print('red')

a = int(input())
s = input()
 
if a >= 3200:
  print(s)
else:
  print('red')

Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input())
s = input()

if a > 3200:
  print(s)
else:
  print('red')

a = int(input())
s = input()

if a >= 3200:
  print(s)
else:
  print('red')

Verdicts: Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = input()
s = input() if a < 3200 else 'red'
print(s)

a = int(input())
s = input() if a < 3200 else 'red'
print(s)

a = int(input())
s = input() if a > 3200 else 'red'
print(s)

a = int(input())
s = input() if a >= 3200 else 'red'
print(s)

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
n = int(input())

a = list(map(int,input().split()))

s=0
for x in a:
    s+=1/x
ans=1/s

print(ans)

a = int(input)
s = input()

if(a>=3200):
    print(s)
else:
    print("red")

a = int(input())
s = input()

if a > 3200:
    print(s)
else:
    print("red")

a = int(input())
s = input()

if a >= 3200:
    print(s)
else:
    print("red")

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = input()
s = input()

if int(a)=>3200:
    print(s)
else:
    print("red")
~                

a = input()
s = input()

if int(a)=>3200:
    print(s)
else:
    print("red")


a = input()
s = input()

if int(a)>=3200:
    print(s)
else:
    print("red")


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input())
s = input()
if a=>3200:
  print(s)
elif a<3200:
  print('red')

a = int(input())
s = input()
if a>=3200:
  print(s)
elif a<3200:
  print('red')

Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a=int(input())
s=input()

If a>=3200:
  print(s)
else:
  print("red")

a=int(input())
s=input()

if a>=3200:
  print(s)
else:
  print("red")

Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
n = int(input())
a = list(map(float, input().split()))
c = 1
for i in range(n):
    c = c * a[i]
print(float(c) / sum(a))

a = int(input())
s = input()
if a >= 3200:
    print(s)
else:
    print('red')


Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input())
s = input()

if a >= 3200:
  print(a)
else :
  print("red")

a = int(input())
s = input()

if a >= 3200:
  print(s)
else :
  print("red")

Verdicts: Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):


# line input as int generator
def li():
    return map(int, input().split())


H, W = li()
# C = [input().split() for _ in range(H)]
C = [['' for _ in range(W)] for _ in range(H)]

route = []
for h in range(H):
    for w, c in enumerate(input()):
        C[h][w] = c
        if c == '#':
            route.append((h,w))
        # if h-1 >= 0:
        #     route[(h, w)].append((h - 1, w))
        # if h+1 < H:
        #     route[(h, w)].append((h + 1, w))
        # if w-1 >= 0:
        #     route[(h, w)].append((h, w - 1))
        # if w+1 < W:
        #     route[(h, w)].append((h, w + 1))
        if c == 's':
            start = (h, w)
# print(route)

def dfs(now):
    h, w = now
    # print(now)
    # if not ((0 <= h < H) and (0 <= w < W)):
    #     return False
    # print(route[now])
    if (h,w) in route:
        return False
    if C[h][w] == 'g':
        # OK!
        return True
    # elif C[h][w] == '#':
    #     return False
    else:
        # append
        route.append((h,w))
        if h-1 >= 0 and ((h-1,w) not in route):
            if dfs((h-1,w)):
                return True
        if h+1 < H and ((h+1,w) not in route):
            if dfs((h+1,w)):
                return True
        if w-1 >= 0 and ((h,w-1) not in route):
            if dfs((h,w-1)):
                return True
        if w+1 < W and ((h,w+1) not in route):
            if dfs((h,w+1)):
                return True
        return False

print('Yes' if dfs(start) else 'No')

a = int(input())
s = input()
print(s if a>=3200 else 'red')

Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = input()
b = input()

if b <3200:
  print("red")
else:
  print(a)

a = int(input())
s = input()
if a >= 3200:
    print(s)
else:
    print("red")

Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = input()
s = input()
if a < 3200:
  print("red")
else:
  print(s)

a = int(input())
s = input()

if a < 3200:
  print("red")
else:
  print(s)

Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
n = int(input())
num_list = map(int, input().split())
def ave(nums):
    rev_sum = 0
    for i in nums:
        rev_sum += 1/i
    ans = 1/rev_sum
    return ans

print(ave(num_list))

a = int(input())
s = str(input())
if a>= 3200: print(s)
else print("red")

N, Q = map(int, input().split())
tree = [list(map(int, input().split())) for i in range(N-1)]
process =  [list(map(int, input().split())) for i in range(Q)]

def next_node(node_num):
  next_nodes = []
  for edge in tree:
    if edge[0] == node_num:
      next_nodes.append(edge[1])
  return next_nodes
 
def all_nodes(num):
  x = [] 
  add_nodes = next_node(num)
  while add_nodes != []:
    for i in add_nodes:
      add_nodes += next_node(i) 
      x += add_nodes
      add_nodes = []
  return x


def add(score, procedure):
  "procedure = [p, x]"
  score[procedure[0]-1] += procedure[1]
  for n in all_nodes(procedure[0]):
    score[n-1] += procedure[1]
  return score


score = [0]*N
for procedure in process:
  add(score, procedure)
print(score)


def next_node(node_num):
  next_nodes = []
  for edge in tree:
    if edge[0] == node_num:
      next_nodes.append(edge[1])
  return next_nodes

def all_nodes(num):
  x = [] 
  add_nodes = next_node(num)
  while add_nodes != []:
    for i in add_nodes:
      add_nodes += next_node(i) 
      x += add_nodes
      add_nodes = []
  return x


n = int(input())
num_list = map(int, input().split())
def ave(nums):
    rev_sum = 0
    for i in nums:
        rev_sum += 1/i
    ans = 1/rev_sum
    return ans

print(ave(num_list))

def next_node(node_num):
    next_nodes = []
    for edge in tree:
        if edge[0] == node_num:
            next_nodes.append(edge[1])
    return next_nodes
 
def all_nodes(num):
  x = [] 
  add_nodes = next_node(num)
  while add_nodes != []:
    for i in add_nodes:
      add_nodes += next_node(i) 
      x += add_nodes
      add_nodes = []
  return x
 
 
def add(score, procedure):
  "procedure = [p, x]"
  score[procedure[0]-1] += procedure[1]
  for n in all_nodes(procedure[0]):
    score[n-1] += procedure[1]
  return score
 
 
score = [0]*N
for procedure in process:
    add(score, procedure)
print(score)


a = int(input()) 
s = str(input()) 
if a>= 3200: 
  print(s)
else:
  print("red")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input())
s = str(input())
if a >= 3200:
    print('s')
else:
    print('red')

a = int(input())
s = str(input())
if a >= 3200:
    print(s)
else:
    print('red')

Verdicts: Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a=int(input())
s=input()
if a<=3200:
 print('red')
else:  print( s)



a=int(input())
s=input()
if a<3200:
 print('red')
else:  print( s)



Verdicts: Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = [input(),input()]
if len(a[0]) >= 3200:
    print(a[1])
else:
    print("red")

a = [int(input()),input()]
if a[0] >= 3200:
    print(a[1])
else:
    print("red")

Verdicts: Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input())
s = input()
if a >= 3200:
  print("red")
else:
  print(s)

a = int(input())
s = input()
if a >= 3200:
  print("red")
else:
  print(s)

if int(input()) >= 3200:
  print(input())
else:
  print("red")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input())
s = str(input())
if a > 3200:
	print(s)
else:
	print('red')

a = int(input())
s = str(input())
if a >= 3200:
	print(s)
else:
	print('red')

Verdicts: Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
import numpy as np
n,q= map(int,input().split())

edges = {i+1:[] for i in range(n+1)}
for i in range(n-1):
  a,b = map(int,input().split())
  edges[a].append(b)

ans = np.zeros(n)
dp = {i:np.zeros(n) for i in range(1,n+1)}
for i in range(1,n+1):
  dp[i][i-1] = 1
for i in range(n,0,-1):
  for j in edges[i]:
    dp[i] += dp[j]

queries = [0]*(n+1)
for _ in range(q):
  p,x = map(int,input().split())
  queries[p] += x
for i in range(1,n+1):
  ans += queries[i]*dp[i]
    
st = ""
for i in range(n):
  if i != 0:
    st+=" "
  st+= str(int(ans[i]))
print(st)

n = int(input())
s = input()
if n>= 3200:
  print("red")
else:
  print(s)


n = int(input())

if n>= 3200:
  print(red)
else:
  print(input())

n = int(input())
s = input()
if n< 3200:
  print("red")
else:
  print(s)


Verdicts: Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a=int(input())
b=input()
if a<3200:
  print(b)
else:
  print('red')

a=int(input())
b=input()
if a>=3200:
  print(b)
else:
  print('red')

Verdicts: Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input())
s = input()
print(s if a>3200 else "red")

a = int(input())
s = input()
print(s if a>=3200 else "red")

Verdicts: Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
def main():
    a = int(input())

    str_s = input()

    if (a>3200):
        print(str_s)
    else:
        print("red")

if __name__ == "__main__":
    main()

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

    str_s = input()

    if (a>=3200):
        print(str_s)
    else:
        print("red")

if __name__ == "__main__":
    main()

Verdicts: Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a=int(input())
s=input()

if a>3200:
  print(s)
else:
  print("red")

a=int(input())
s=input()

if a<3200:
  print("red")
else:
  print(s)

Verdicts: Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a=int(input())
s=input()
if a=>3200:
  print('s')
else:
  print('red')

a=int(input())
s=input()
if a=>3200:
  print(s)
else:
  print('red')

a=int(input())
s=input()
if a>=3200:
  print(s)
else:
  print('red')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a=int(inpout())
b=input()
print(b if a>=3200 else "red")

a=int(input())
b=input()
print(b if a>=3200 else "red")


Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input())
s = input()

if a >= 3200:
    print("s")

elif a <= 3200:
    print("red")


a = int(input())
s = input()

if a <= 3200:
    print("s")

elif a >= 3200:
    print("red")

a = int(input())
s = input()

if a >= 3200:
    print(s)

elif a < 3200:
    print("red")


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = input()
s = input()
if a < 3200:
  print("red")
elif a >= 3200:
  print(s)

a = int(input())
s = input()
if a < 3200:
  print("red")
elif a >= 3200:
  print(s)

Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a=int(input())
s=input()
if a<=3200:
  print("red")
else:
  print(s)

a=int(input())
s=input()
if a>=3200:
  print("red")
else:
  print(s)

a=int(input())
s=input()
if a>=3200:
    print(s)
else:
    print("red")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
f=input;print('red' if int(f()) else input())

a=int(input());print([input(),'red'][a<3200])

Verdicts: Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input)
s = input
if a >= 3200:
  print(s)
else:
  print("red")

a = int(input())
s = input()
if a >= 3200:
  print(s)
else:
  print("red")

Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
def main()
  a=int(input())
  s=input()
  if 3200<=a<5000:
    print(s)
  elif 2800<=a<3200:
    print("red")
main()


a=int(input())
s=input()
if a>=3200: 
  print(a)
else:
  print("red")

a=int(input())
s=input()
if 2800<=a<3200:
  print("red")
elif 3200<=a<5000:
  print(s)

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
import sys
sys.setrecursionlimit(300000) 
n,q = map(int, sys.stdin.readline().rstrip().split())
sco = [0]*(n+1)
G =[[] for _ in range(n+1)]
for i in range(n-1):
    a,b = map(int, sys.stdin.readline().rstrip().split())
    G[a].append(b)
    G[b].append(a)

for j in range(q):
    p,x = map(int, sys.stdin.readline().rstrip().split())
    sco[p]+=x



seen = [False for _ in range(n+1)]
def dfs(G,V,score):
    global sco
    sco[V] +=score

    seen[V] = True
    for next_V in G[V]:
        if (seen[next_V]):
            continue
        dfs(G, next_V,sco[V])



dfs(G,1,0)
print(*sco[1:])



a,s = map(int, open(0).read().split())
print(s if a>=3200 else 'red')

a = int(input())
s = input()
print(s if a>=3200 else 'red')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a=int(input())
s=str(input())
if a=>3200:
  print(s)
else:
  print("red")

a=int(input())
s=str(input())
if a>=3200:
  print(s)
else:
  print("red")

Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input())
s = input()
if a < 3200:
    print("red")
else:
    print("s")

a = int(input())
s = input()
if a >= 3200:
    print("red")
else:
    print(s)

a = int(input())
s = input()
if a < 3200:
    print("red")
else:
    print(s)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a = int(input())
s = int(input())
if a >= 3200:
    print(s)
else:
    print('red')

a = int(input())
s = input()
if a >= 3200:
    print(s)
else:
    print('red')

Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
a, s =input().split()
a=int(a)

if a>=3200:
    print(s)
else:
    print('red')

a = int(input())
s = input()

if a>=3200:
    print(s)
else:
    print('red')

Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
if __name__ == '__main__':
	A,B,C = map(int, input().split())	
	if (A - B - C ) >= 0:
		print('0')
	else :
		print(C - (A-B))

if __name__ == '__main__':
	a = int(input())
	s = input()
	if a >= 3200:
		print(s)
	else :
		print('red')

Verdicts: Runtime Error

Accepted
Problem: You will be given an integer a and a string s consisting of lowercase English letters as input.  Write a program that prints s if a is not less than 3200 and prints `red` if a is less than 3200.

Submission attempts (in order):
n, q = map(int,input().split())
top_list = [list(map(int,input().split())) for i in range(n - 1)]
ope_list = [list(map(int,input().split())) for i in range(q)]
ans = [0] * n

"""
for i in ope_list:
    ans[i[0] - 1] += i[1]

for j in range(n):
    for k in top_list:
        if j + 1 == k[1]:
            ans[j] += ans[k[0] - 1]
"""

print(*ans)

a = int(input())
s = input()

if a >= 3200:
    print(s)
else:
    print('red')

Verdicts: Runtime Error

Accepted