output_description: If a is not less than 3200, print s; if a is less than 3200, print `red`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      a
      s
attempt: P, n = map(int, input().split())
  struct = [list(map(int, input().split())) for x in range(P - 1)]
  act = [list(map(int, input().split())) for y in range(n)]
  
  A = []
  
  
  def add_val(action):
      idx = action[0]
      val = action[1]
  
      A[idx][0] += val
  
      if A[idx][1]:
          for r in A[idx][1]:
              add_val([r, val])
  
  
  for a in range(P + 1):
      A.append(list([0, []]))
  
  for z in struct:
      p = z[0]
      p_ = z[1]
      A[p][1].append(p_)
  
  for _ in act:
      add_val(_)
  
  
  As = []
  for _ in range(1, len(A)):
      As.append(A[_][0])
  
  print(*As, sep=" ")
  
problem_description: Statement
  
  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.
samples: [{"input": "3200\n    pink", "output": "pink\n    \n\na = 3200 is not less than 3200, so we print s = `pink`.\n\n* * *"}, {"input": "3199\n    pink", "output": "red\n    \n\na = 3199 is less than 3200, so we print `red`.\n\n* * *"}, {"input": "4049\n    red", "output": "red\n    \n\na = 4049 is not less than 3200, so we print s = `red`."}]