output_description: Print `Heisei` if the date represented by S is not later than April 30, 2019,
  and print `TBD` otherwise.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      S
attempt: import numpy as np
  
  
  def check(x, al, bl):
      rcost = np.inf
      for a in al:
          tmp_c = abs(a - x)
          for b in bl:
              t = abs(b - a)
              rcost = min(rcost, tmp_c + t, abs(b - x) + t)
  
      print(int(rcost))
  
  
  n = [int(each) for each in input().split()]
  a, b, q = n[0], n[1], n[2]
  
  sl = np.zeros(a)
  tl = np.zeros(b)
  xl = np.zeros(q)
  
  for i in range(a):
      sl[i] = int(input())
  for i in range(b):
      tl[i] = int(input())
  for i in range(q):
      xl[i] = int(input())
  
  result = []
  for x in xl:
      check(x, sl, tl)
  
problem_description: Statement
  
  You are given a string S as input. This represents a valid date in the year
  2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented
  as `2019/04/30`.)
  
  Write a program that prints `Heisei` if the date represented by S is not later
  than April 30, 2019, and prints `TBD` otherwise.
samples: [{"input": "2019/04/30", "output": "Heisei\n    \n\n* * *"}, {"input": "2019/11/01", "output": "TBD"}]