a, b, c = input().split("/")
print("Heisei" if b<="04" else "TBD") a, b, c = input().split("/") a input().split("/") ().split () input split "/" b c print("Heisei" if b<="04" else "TBD") print "Heisei" if b<="04" else "TBD" b<="04" b "04" "Heisei" "TBD" b, c = input().split("/") input().split("/") b a, b, c = input().split("/") input().split("/") a c = input().split("/") input().split("/") c
a, b, c = input().split("/")
print("Heisei" if b<="04" else "TBD")