a = list(input().split("/"))
month = int(a[1])
date = int(a[2])
if month < 4:
    print("Heisei")
elif month == 4 and date <= 30:
    print("Heisei")
else:
    print("TBD") a = list(input().split("/")) a list(input().split("/")) list input().split("/") ().split () input split "/" month = int(a[1]) month int(a[1]) int a[1] a 1 date = int(a[2]) date int(a[2]) int a[2] a 2 if month < 4:
    print("Heisei")
elif month == 4 and date <= 30:
    print("Heisei")
else:
    print("TBD") month < 4 month 4 print("Heisei") print "Heisei" elif month == 4 and date <= 30:
    print("Heisei") month == 4 and date <= 30 month == 4 month 4 date <= 30 date 30 print("Heisei") print "Heisei" print("TBD") print "TBD" date = int(a[2]) int(a[2]) date month = int(a[1]) int(a[1]) month a = list(input().split("/")) list(input().split("/")) a
a = list(input().split("/"))
month = int(a[1])
date = int(a[2])
if month < 4:
    print("Heisei")
elif month == 4 and date <= 30:
    print("Heisei")
else:
    print("TBD")
