s=[int(i) for i in input().split("/")]
#print(s)

ans="TBD"

if s[0]<=2018:
    ans="Heisei"
    
elif s[0]==2019 and s[1]<=4:
    ans="Heisei"
    
print(ans) int(i) for i in input().split("/") for i in input().split("/") i input().split("/") ().split () input split "/" for i in input().split("/") int(i) int i s=[int(i) for i in input().split("/")] s [int(i) for i in input().split("/")] ans="TBD" ans "TBD" if s[0]<=2018:
    ans="Heisei"
    
elif s[0]==2019 and s[1]<=4:
    ans="Heisei"
     s[0]<=2018 s[0] s 0 2018 ans="Heisei" ans "Heisei" elif s[0]==2019 and s[1]<=4:
    ans="Heisei"
     s[0]==2019 and s[1]<=4 s[0]==2019 s[0] s 0 2019 s[1]<=4 s[1] s 1 4 ans="Heisei" ans "Heisei" print(ans) print ans s=[int(i) for i in input().split("/")] [int(i) for i in input().split("/")] s ans="Heisei" "Heisei" ans ans="Heisei" "Heisei" ans ans="TBD" "TBD" ans
s=[int(i) for i in input().split("/")]
#print(s)

ans="TBD"

if s[0]<=2018:
    ans="Heisei"
    
elif s[0]==2019 and s[1]<=4:
    ans="Heisei"
    
print(ans)