from datetime import datetime

S = input()
heiei = datetime(2019, 4, 30)
date = datetime.strptime(S, '%Y/%m/%d')

if heiei >= date:
    print('Heisei')
else:
    print('TBD') from datetime import datetime S = input() S input() input heiei = datetime(2019, 4, 30) heiei datetime(2019, 4, 30) datetime 2019 4 30 date = datetime.strptime(S, '%Y/%m/%d') date datetime.strptime(S, '%Y/%m/%d') datetime.strptime datetime strptime S '%Y/%m/%d' if heiei >= date:
    print('Heisei')
else:
    print('TBD') heiei >= date heiei date print('Heisei') print 'Heisei' print('TBD') print 'TBD' S = input() input() S heiei = datetime(2019, 4, 30) datetime(2019, 4, 30) heiei date = datetime.strptime(S, '%Y/%m/%d') datetime.strptime(S, '%Y/%m/%d') date
from datetime import datetime

S = input()
heiei = datetime(2019, 4, 30)
date = datetime.strptime(S, '%Y/%m/%d')

if heiei >= date:
    print('Heisei')
else:
    print('TBD')