# coding: utf-8
import math

str = input()
if str <= "2019/04/30":
    print("Heisei")
else:
    print("TBD")
 import math math str = input() str input() input if str <= "2019/04/30":
    print("Heisei")
else:
    print("TBD") str <= "2019/04/30" str "2019/04/30" print("Heisei") print "Heisei" print("TBD") print "TBD" str = input() input() str
# coding: utf-8
import math

str = input()
if str <= "2019/04/30":
    print("Heisei")
else:
    print("TBD")

