open Printf
open Scanf
open Str

let solve s =
  let l = split (regexp "/") s in
  let m = int_of_string @@ List.nth l 1
  in if m <= 4 then "Heisei" else "TBD"
    
let () =
  scanf "%s " solve |> printf "%s\n"
