import sys

rr = lambda: sys.stdin.readline().rstrip()

s = rr()
if s[5:5+2] > '04':
  print('TBD')
else:
  print('Heisei') import sys sys rr = lambda: sys.stdin.readline().rstrip() rr lambda: sys.stdin.readline().rstrip() sys.stdin.readline().rstrip() sys.stdin.readline().rstrip sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline rstrip s = rr() s rr() rr if s[5:5+2] > '04':
  print('TBD')
else:
  print('Heisei') s[5:5+2] > '04' s[5:5+2] s 5:5+2 5 5+2 5 2 '04' print('TBD') print 'TBD' print('Heisei') print 'Heisei' s = rr() rr() s rr = lambda: sys.stdin.readline().rstrip() lambda: sys.stdin.readline().rstrip() rr
import sys

rr = lambda: sys.stdin.readline().rstrip()

s = rr()
if s[5:5+2] > '04':
  print('TBD')
else:
  print('Heisei')