#!/usr/bin/env python3
import datetime
s = input()
tdatetime = datetime.datetime.strptime(s, '%Y/%m/%d')
tdate = datetime.date(tdatetime.year, tdatetime.month, tdatetime.day)
d = datetime.date(2019, 4, 30)
if tdate <= d:
    print('Heisei')
else:
    print('TBD') import datetime datetime s = input() s input() input tdatetime = datetime.datetime.strptime(s, '%Y/%m/%d') tdatetime datetime.datetime.strptime(s, '%Y/%m/%d') datetime.datetime.strptime datetime.datetime datetime datetime strptime s '%Y/%m/%d' tdate = datetime.date(tdatetime.year, tdatetime.month, tdatetime.day) tdate datetime.date(tdatetime.year, tdatetime.month, tdatetime.day) datetime.date datetime date tdatetime.year tdatetime year tdatetime.month tdatetime month tdatetime.day tdatetime day d = datetime.date(2019, 4, 30) d datetime.date(2019, 4, 30) datetime.date datetime date 2019 4 30 if tdate <= d:
    print('Heisei')
else:
    print('TBD') tdate <= d tdate d print('Heisei') print 'Heisei' print('TBD') print 'TBD' tdatetime = datetime.datetime.strptime(s, '%Y/%m/%d') datetime.datetime.strptime(s, '%Y/%m/%d') tdatetime s = input() input() s tdate = datetime.date(tdatetime.year, tdatetime.month, tdatetime.day) datetime.date(tdatetime.year, tdatetime.month, tdatetime.day) tdate d = datetime.date(2019, 4, 30) datetime.date(2019, 4, 30) d
#!/usr/bin/env python3
import datetime
s = input()
tdatetime = datetime.datetime.strptime(s, '%Y/%m/%d')
tdate = datetime.date(tdatetime.year, tdatetime.month, tdatetime.day)
d = datetime.date(2019, 4, 30)
if tdate <= d:
    print('Heisei')
else:
    print('TBD')
