# 初期入力
import sys
#input = sys.stdin.readline  #文字列では使わない
tstr =input().strip()
from datetime import datetime as dt

#tstr = '2012-12-29 13:49:37'
tdatetime = dt.strptime(tstr, '%Y/%m/%d')
standard ="2019/4/30"
dt_standard =dt.strptime(standard, '%Y/%m/%d')
if tdatetime <= dt_standard:
    print("Heisei")
else:
    print("TBD") import sys sys tstr =input().strip() tstr input().strip() ().strip () input strip from datetime import datetime as dt tdatetime = dt.strptime(tstr, '%Y/%m/%d') tdatetime dt.strptime(tstr, '%Y/%m/%d') dt.strptime dt strptime tstr '%Y/%m/%d' standard ="2019/4/30" standard "2019/4/30" dt_standard =dt.strptime(standard, '%Y/%m/%d') dt_standard dt.strptime(standard, '%Y/%m/%d') dt.strptime dt strptime standard '%Y/%m/%d' if tdatetime <= dt_standard:
    print("Heisei")
else:
    print("TBD") tdatetime <= dt_standard tdatetime dt_standard print("Heisei") print "Heisei" print("TBD") print "TBD" dt_standard =dt.strptime(standard, '%Y/%m/%d') dt.strptime(standard, '%Y/%m/%d') dt_standard tdatetime = dt.strptime(tstr, '%Y/%m/%d') dt.strptime(tstr, '%Y/%m/%d') tdatetime tstr =input().strip() input().strip() tstr standard ="2019/4/30" "2019/4/30" standard
# 初期入力
import sys
#input = sys.stdin.readline  #文字列では使わない
tstr =input().strip()
from datetime import datetime as dt

#tstr = '2012-12-29 13:49:37'
tdatetime = dt.strptime(tstr, '%Y/%m/%d')
standard ="2019/4/30"
dt_standard =dt.strptime(standard, '%Y/%m/%d')
if tdatetime <= dt_standard:
    print("Heisei")
else:
    print("TBD")