fun main (args : Array<String>) {
	val s = readLine()
	val S : String = s.toString()
	var str : String = ""
	for (i in S) {
		if (i in listOf('0','1','2','3','4','5','6','7','8','9')) {
			str += i.toString()
		}
	}
	if (str.toInt() <= 20190430) {
		println("Heisei")
	} else {
		println("TBD")
	}
	
}