import sys

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

s = rr()
if int(s[5:7]) > 4:
  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 int(s[5:7]) > 4:
  print('TBD')
else:
  print('Heisei') int(s[5:7]) > 4 int(s[5:7]) int s[5:7] s 5:7 5 7 4 print('TBD') print 'TBD' print('Heisei') print 'Heisei' rr = lambda: sys.stdin.readline().rstrip() lambda: sys.stdin.readline().rstrip() rr s = rr() rr() s
import sys

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

s = rr()
if int(s[5:7]) > 4:
  print('TBD')
else:
  print('Heisei')