import datetime
date_str = "2019/04/30"
date_formatted = datetime.datetime.strptime(date_str, "%Y/%m/%d")
s = input()
s = datetime.datetime.strptime(s, "%Y/%m/%d")

if s <= date_formatted:
    print('Heisei')
else:
    print('TBD') import datetime datetime date_str = "2019/04/30" date_str "2019/04/30" date_formatted = datetime.datetime.strptime(date_str, "%Y/%m/%d") date_formatted datetime.datetime.strptime(date_str, "%Y/%m/%d") datetime.datetime.strptime datetime.datetime datetime datetime strptime date_str "%Y/%m/%d" s = input() s input() input s = datetime.datetime.strptime(s, "%Y/%m/%d") s datetime.datetime.strptime(s, "%Y/%m/%d") datetime.datetime.strptime datetime.datetime datetime datetime strptime s "%Y/%m/%d" if s <= date_formatted:
    print('Heisei')
else:
    print('TBD') s <= date_formatted s date_formatted print('Heisei') print 'Heisei' print('TBD') print 'TBD' s = datetime.datetime.strptime(s, "%Y/%m/%d") datetime.datetime.strptime(s, "%Y/%m/%d") s date_str = "2019/04/30" "2019/04/30" date_str s = input() input() s date_formatted = datetime.datetime.strptime(date_str, "%Y/%m/%d") datetime.datetime.strptime(date_str, "%Y/%m/%d") date_formatted
import datetime
date_str = "2019/04/30"
date_formatted = datetime.datetime.strptime(date_str, "%Y/%m/%d")
s = input()
s = datetime.datetime.strptime(s, "%Y/%m/%d")

if s <= date_formatted:
    print('Heisei')
else:
    print('TBD')