function main(arg) {
	arg = arg.split("\n")[0]
	arg = Number(arg.split("/").join(""))

	if (arg <= 20190430) {
		console.log("Heisei")
	} else {
		console.log("TBD")
	}
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));