'use strict'

const main = input => {
	const args = input.split('\n')
	const yyyy = args[0].slice(0, 4)
	const mm = args[0].slice(5, 7)
	const dd = args[0].slice(8, 10)
	if (parseInt(`${yyyy}${mm}${dd}`, 10) <= 20190430) console.log('Heisei')
	else console.log('TBD')
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'))
