import sys
sys.setrecursionlimit(10**7)
input = sys.stdin.readline

s = input()

if int(s[0:4]) <= 2019:
    if int(s[5:7]) <= 4:
        if int(s[8:]) <= 30:
            print("Heisei")
            exit()

print("TBD") import sys sys sys.setrecursionlimit(10**7) sys.setrecursionlimit sys setrecursionlimit 10**7 10 7 input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline s = input() s input() input if int(s[0:4]) <= 2019:
    if int(s[5:7]) <= 4:
        if int(s[8:]) <= 30:
            print("Heisei")
            exit() int(s[0:4]) <= 2019 int(s[0:4]) int s[0:4] s 0:4 0 4 2019 if int(s[5:7]) <= 4:
        if int(s[8:]) <= 30:
            print("Heisei")
            exit() int(s[5:7]) <= 4 int(s[5:7]) int s[5:7] s 5:7 5 7 4 if int(s[8:]) <= 30:
            print("Heisei")
            exit() int(s[8:]) <= 30 int(s[8:]) int s[8:] s 8: 8 30 print("Heisei") print "Heisei" exit() exit print("TBD") print "TBD" s = input() input() s input = sys.stdin.readline sys.stdin.readline input
import sys
sys.setrecursionlimit(10**7)
input = sys.stdin.readline

s = input()

if int(s[0:4]) <= 2019:
    if int(s[5:7]) <= 4:
        if int(s[8:]) <= 30:
            print("Heisei")
            exit()

print("TBD")
