s = input()
s1 = s.split("/")

ans = "Heisei"
if int(s1[0]) >= 2019:
    if int(s1[1]) >= 5:
        ans = "TBD"

print(ans) s = input() s input() input s1 = s.split("/") s1 s.split("/") s.split s split "/" ans = "Heisei" ans "Heisei" if int(s1[0]) >= 2019:
    if int(s1[1]) >= 5:
        ans = "TBD" int(s1[0]) >= 2019 int(s1[0]) int s1[0] s1 0 2019 if int(s1[1]) >= 5:
        ans = "TBD" int(s1[1]) >= 5 int(s1[1]) int s1[1] s1 1 5 ans = "TBD" ans "TBD" print(ans) print ans s = input() input() s s1 = s.split("/") s.split("/") s1 ans = "TBD" "TBD" ans ans = "Heisei" "Heisei" ans
s = input()
s1 = s.split("/")

ans = "Heisei"
if int(s1[0]) >= 2019:
    if int(s1[1]) >= 5:
        ans = "TBD"

print(ans)
