import Foundation

extension String {
    func split(separator: String) -> [Int] {
        return self.componentsSeparatedByString(separator).map { Int($0)! }
    }
}

let input = readLine()!.split("/")
let month = input[1]

var result = "TBD"
if month <= 4 {
    result = "Heisei"
}

print(result)