Y, M, D = input().split("/")

S = int(Y+M+D)

if S <= 20190430:
    print("Heisei")
else:
    print("TBD") Y, M, D = input().split("/") Y input().split("/") ().split () input split "/" M D S = int(Y+M+D) S int(Y+M+D) int Y+M+D Y+M Y M D if S <= 20190430:
    print("Heisei")
else:
    print("TBD") S <= 20190430 S 20190430 print("Heisei") print "Heisei" print("TBD") print "TBD" S = int(Y+M+D) int(Y+M+D) S Y, M, D = input().split("/") input().split("/") Y D = input().split("/") input().split("/") D M, D = input().split("/") input().split("/") M
Y, M, D = input().split("/")

S = int(Y+M+D)

if S <= 20190430:
    print("Heisei")
else:
    print("TBD")