import datetime

S = datetime.date(*map(int, input().split('/')))
x = datetime.date(2019, 4, 30)

print('Heisei' if S <= x else 'TBD') import datetime datetime S = datetime.date(*map(int, input().split('/'))) S datetime.date(*map(int, input().split('/'))) datetime.date datetime date *map(int, input().split('/')) map(int, input().split('/')) map int input().split('/') ().split () input split '/' x = datetime.date(2019, 4, 30) x datetime.date(2019, 4, 30) datetime.date datetime date 2019 4 30 print('Heisei' if S <= x else 'TBD') print 'Heisei' if S <= x else 'TBD' S <= x S x 'Heisei' 'TBD' S = datetime.date(*map(int, input().split('/'))) datetime.date(*map(int, input().split('/'))) S x = datetime.date(2019, 4, 30) datetime.date(2019, 4, 30) x
import datetime

S = datetime.date(*map(int, input().split('/')))
x = datetime.date(2019, 4, 30)

print('Heisei' if S <= x else 'TBD')
