import datetime

dt = datetime.datetime.strptime(input(), '%Y/%m/%d')
print('Heisei' if dt <= datetime.datetime(2019, 4, 30) else 'TBD') import datetime datetime dt = datetime.datetime.strptime(input(), '%Y/%m/%d') dt datetime.datetime.strptime(input(), '%Y/%m/%d') datetime.datetime.strptime datetime.datetime datetime datetime strptime input() input '%Y/%m/%d' print('Heisei' if dt <= datetime.datetime(2019, 4, 30) else 'TBD') print 'Heisei' if dt <= datetime.datetime(2019, 4, 30) else 'TBD' dt <= datetime.datetime(2019, 4, 30) dt datetime.datetime(2019, 4, 30) datetime.datetime datetime datetime 2019 4 30 'Heisei' 'TBD' dt = datetime.datetime.strptime(input(), '%Y/%m/%d') datetime.datetime.strptime(input(), '%Y/%m/%d') dt
import datetime

dt = datetime.datetime.strptime(input(), '%Y/%m/%d')
print('Heisei' if dt <= datetime.datetime(2019, 4, 30) else 'TBD')
