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