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: def get_answer(ki):
      n = int(ki[0].split(" ")[0])
      q = int(ki[0].split(" ")[1])
      n_data = [[int(k[0]), int(k[1])] for k in [k.split(" ") for k in ki[1:-q]]]
      q_data = [[int(k[0]), int(k[1])] for k in [k.split(" ") for k in ki[-q:]]]
      tree = make_tree(n, n_data)
  
      score = [0] * n
  
      for qq in q_data:
          index = qq[0]
          add_score(tree, score, qq, n_data, index)
  
      # score = [str(s) for s in score]
      # s = " ".join(score)
      for s in score:
          print(s, end="")
          print(" ", end="")
  
      return None
  
  
  def add_score(tree, score, qq, n_data, index):
      score[index - 1] += qq[1]
      next_index = tree[index - 1]
      for n_i in next_index:
          add_score(tree, score, qq, n_data, n_i)
  
  
  def make_tree(n, n_data):
      r = {}
      for i in range(n):
          r[i] = []
      for n in n_data:
          k = n[0] - 1
          if k in r.keys():
              r[k].append(n[1])
          else:
              r[k] = [n[1]]
      return r
  
  
  def make_index(n, tree):
      index = {}
      r0 = [0] * n
      for i in range(n):
          r0[i] = i
      index[0] = r0
  
      for i in range(1, n):
          r = []
          add_index(tree, i, r)
          index[i] = r
  
      return index
  
  
  def add_index(tree, index, r):
      r.append(index)
      next_index = tree[index]
      for n_i in next_index:
          add_index(tree, n_i - 1, r)
  
  
  if __name__ == "__main__":
      input_ki = []
      while True:
          try:
              input1 = input()
              if not input1:
                  break
              if len(input1) == 0:
                  break
              input_ki.append(input1)
          except EOFError:
              break
      get_answer(input_ki)
  
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`."}]