line = list(input().split("/"))
if int(line[0]) <= 2019 and int(line[1]) <= 4:
    print("Heisei") 
else:
    print("TBD")    line = list(input().split("/")) line list(input().split("/")) list input().split("/") ().split () input split "/" if int(line[0]) <= 2019 and int(line[1]) <= 4:
    print("Heisei") 
else:
    print("TBD")    int(line[0]) <= 2019 and int(line[1]) <= 4 int(line[0]) <= 2019 int(line[0]) int line[0] line 0 2019 int(line[1]) <= 4 int(line[1]) int line[1] line 1 4 print("Heisei") print "Heisei" print("TBD") print "TBD" line = list(input().split("/")) list(input().split("/")) line
line = list(input().split("/"))
if int(line[0]) <= 2019 and int(line[1]) <= 4:
    print("Heisei") 
else:
    print("TBD")   