import datetime as dt
S=input()
s=dt.datetime.strptime(S,'%Y/%m/%d')
A='2019/04/30'
a=dt.datetime.strptime(A,'%Y/%m/%d')
if s<=a:
    print('Heisei')
else:
    print('TBD') import datetime as dt datetime S=input() S input() input s=dt.datetime.strptime(S,'%Y/%m/%d') s dt.datetime.strptime(S,'%Y/%m/%d') dt.datetime.strptime dt.datetime dt datetime strptime S '%Y/%m/%d' A='2019/04/30' A '2019/04/30' a=dt.datetime.strptime(A,'%Y/%m/%d') a dt.datetime.strptime(A,'%Y/%m/%d') dt.datetime.strptime dt.datetime dt datetime strptime A '%Y/%m/%d' if s<=a:
    print('Heisei')
else:
    print('TBD') s<=a s a print('Heisei') print 'Heisei' print('TBD') print 'TBD' a=dt.datetime.strptime(A,'%Y/%m/%d') dt.datetime.strptime(A,'%Y/%m/%d') a A='2019/04/30' '2019/04/30' A S=input() input() S s=dt.datetime.strptime(S,'%Y/%m/%d') dt.datetime.strptime(S,'%Y/%m/%d') s
import datetime as dt
S=input()
s=dt.datetime.strptime(S,'%Y/%m/%d')
A='2019/04/30'
a=dt.datetime.strptime(A,'%Y/%m/%d')
if s<=a:
    print('Heisei')
else:
    print('TBD')
