date = input()
list_date = date.split('/')
if int(list_date[0]) <= 2018:
    print('Heisei')
elif int(list_date[0]) <= 2019 and int(list_date[1]) <= 4:
    print('Heisei')
else:
    print('TBD') date = input() date input() input list_date = date.split('/') list_date date.split('/') date.split date split '/' if int(list_date[0]) <= 2018:
    print('Heisei')
elif int(list_date[0]) <= 2019 and int(list_date[1]) <= 4:
    print('Heisei')
else:
    print('TBD') int(list_date[0]) <= 2018 int(list_date[0]) int list_date[0] list_date 0 2018 print('Heisei') print 'Heisei' elif int(list_date[0]) <= 2019 and int(list_date[1]) <= 4:
    print('Heisei') int(list_date[0]) <= 2019 and int(list_date[1]) <= 4 int(list_date[0]) <= 2019 int(list_date[0]) int list_date[0] list_date 0 2019 int(list_date[1]) <= 4 int(list_date[1]) int list_date[1] list_date 1 4 print('Heisei') print 'Heisei' print('TBD') print 'TBD' list_date = date.split('/') date.split('/') list_date date = input() input() date
date = input()
list_date = date.split('/')
if int(list_date[0]) <= 2018:
    print('Heisei')
elif int(list_date[0]) <= 2019 and int(list_date[1]) <= 4:
    print('Heisei')
else:
    print('TBD')
