date = int(input().replace('/', ''))
print('Heisei' if date <= 20190430 else 'TBD') date = int(input().replace('/', '')) date int(input().replace('/', '')) int input().replace('/', '') ().replace () input replace '/' '' print('Heisei' if date <= 20190430 else 'TBD') print 'Heisei' if date <= 20190430 else 'TBD' date <= 20190430 date 20190430 'Heisei' 'TBD' date = int(input().replace('/', '')) int(input().replace('/', '')) date
date = int(input().replace('/', ''))
print('Heisei' if date <= 20190430 else 'TBD')
