import sys
sys.setrecursionlimit(10**6)
input = lambda: sys.stdin.readline().rstrip()
inf = float("inf") # 無限

import datetime
chk = datetime.datetime.strptime("2019/5/1","%Y/%m/%d")
s   = datetime.datetime.strptime(input(),"%Y/%m/%d")
if s<chk:
    print("Heisei")
else:
    print("TBD") import sys sys sys.setrecursionlimit(10**6) sys.setrecursionlimit sys setrecursionlimit 10**6 10 6 input = lambda: sys.stdin.readline().rstrip() input lambda: sys.stdin.readline().rstrip() sys.stdin.readline().rstrip() sys.stdin.readline().rstrip sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline rstrip inf = float("inf") inf float("inf") float "inf" import datetime datetime chk = datetime.datetime.strptime("2019/5/1","%Y/%m/%d") chk datetime.datetime.strptime("2019/5/1","%Y/%m/%d") datetime.datetime.strptime datetime.datetime datetime datetime strptime "2019/5/1" "%Y/%m/%d" s   = datetime.datetime.strptime(input(),"%Y/%m/%d") s datetime.datetime.strptime(input(),"%Y/%m/%d") datetime.datetime.strptime datetime.datetime datetime datetime strptime input() input "%Y/%m/%d" if s<chk:
    print("Heisei")
else:
    print("TBD") s<chk s chk print("Heisei") print "Heisei" print("TBD") print "TBD" inf = float("inf") float("inf") inf chk = datetime.datetime.strptime("2019/5/1","%Y/%m/%d") datetime.datetime.strptime("2019/5/1","%Y/%m/%d") chk input = lambda: sys.stdin.readline().rstrip() lambda: sys.stdin.readline().rstrip() input s   = datetime.datetime.strptime(input(),"%Y/%m/%d") datetime.datetime.strptime(input(),"%Y/%m/%d") s
import sys
sys.setrecursionlimit(10**6)
input = lambda: sys.stdin.readline().rstrip()
inf = float("inf") # 無限

import datetime
chk = datetime.datetime.strptime("2019/5/1","%Y/%m/%d")
s   = datetime.datetime.strptime(input(),"%Y/%m/%d")
if s<chk:
    print("Heisei")
else:
    print("TBD")