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: from collections import defaultdict, deque, Counter
  from heapq import heappush, heappop, heapify
  from itertools import (
      permutations,
      accumulate,
      combinations,
      combinations_with_replacement,
  )
  from math import sqrt, ceil, floor, factorial
  from bisect import bisect_left, bisect_right, insort_left, insort_right
  from copy import deepcopy
  from operator import itemgetter
  from functools import reduce
  from fractions import gcd
  import sys
  
  
  def input():
      return sys.stdin.readline().rstrip()
  
  
  def I():
      return int(input())
  
  
  def Is():
      return map(int, input().split())
  
  
  def LI():
      return list(map(int, input().split()))
  
  
  def TI():
      return tuple(map(int, input().split()))
  
  
  def IR(n):
      return [I() for _ in range(n)]
  
  
  def LIR(n):
      return [LI() for _ in range(n)]
  
  
  def TIR(n):
      return [TI() for _ in range(n)]
  
  
  def S():
      return input()
  
  
  def Ss():
      return input().split()
  
  
  def LS():
      return list(input())
  
  
  def SR(n):
      return [S() for _ in range(n)]
  
  
  def SsR(n):
      return [Ss() for _ in range(n)]
  
  
  def LSR(n):
      return [LS() for _ in range(n)]
  
  
  sys.setrecursionlimit(10**6)
  MOD = 10**9 + 7
  INF = float("inf")
  # ----------------------------------------------------------- #
  
  s = S()
  y = int(s[:4])
  m = int(s[5:7])
  d = int(s[8:])
  if y < 2019 or (y == 2019 and m < 5):
      print("Heisei")
  else:
      print("TBD")
  
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"}]