import datetime


s = input()

target = datetime.datetime.strptime(s, '%Y/%m/%d')
heisei = datetime.datetime(2019, 4, 30)


if (target - heisei).days <= 0:
    print('Heisei')
else:
    print('TBD') import datetime datetime s = input() s input() input target = datetime.datetime.strptime(s, '%Y/%m/%d') target datetime.datetime.strptime(s, '%Y/%m/%d') datetime.datetime.strptime datetime.datetime datetime datetime strptime s '%Y/%m/%d' heisei = datetime.datetime(2019, 4, 30) heisei datetime.datetime(2019, 4, 30) datetime.datetime datetime datetime 2019 4 30 if (target - heisei).days <= 0:
    print('Heisei')
else:
    print('TBD') (target - heisei).days <= 0 (target - heisei).days target - heisei target heisei days 0 print('Heisei') print 'Heisei' print('TBD') print 'TBD' heisei = datetime.datetime(2019, 4, 30) datetime.datetime(2019, 4, 30) heisei s = input() input() s target = datetime.datetime.strptime(s, '%Y/%m/%d') datetime.datetime.strptime(s, '%Y/%m/%d') target
import datetime


s = input()

target = datetime.datetime.strptime(s, '%Y/%m/%d')
heisei = datetime.datetime(2019, 4, 30)


if (target - heisei).days <= 0:
    print('Heisei')
else:
    print('TBD')
