a, b, c = input().split("/")
print("TBD" if int(b) > 4 else "Heisei") a, b, c = input().split("/") a input().split("/") ().split () input split "/" b c print("TBD" if int(b) > 4 else "Heisei") print "TBD" if int(b) > 4 else "Heisei" int(b) > 4 int(b) int b 4 "TBD" "Heisei" c = input().split("/") input().split("/") c a, b, c = input().split("/") input().split("/") a b, c = input().split("/") input().split("/") b
a, b, c = input().split("/")
print("TBD" if int(b) > 4 else "Heisei")
