Problem:
 Score : 100 points    Problem Statement You are given a string S as input. This represents a valid date in the year 2019 in the yyyy/mm/dd format. (For example, April 30 , 2019 is represented as 2019/04/30 .)  Write a program that prints Heisei if the date represented by S is not later than April 30 , 2019 , and prints TBD otherwise.      Constraints  S is a string that represents a valid date in the year 2019 in the yyyy/mm/dd format.         Input Input is given from Standard Input in the following format:  S       Output Print Heisei if the date represented by S is not later than April 30 , 2019 , and print TBD otherwise.        Sample Input 1 2019/04/30      Sample Output 1 Heisei       Sample Input 2 2019/11/01      Sample Output 2 TBD

Solution (Python):
y,m,d=map(int,input().split('/'))
if y <= 2018:
    print('Heisei')
elif m <= 4:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
n = input()



l = n.split('/')

if int(l[1]) <= 4 and int(l[2]) <= 30:
	print('Heisei')
else:
	print('TBD')

Solution (Python):
y, m, d = map(int, input().split("/"))

if m >= 5:
    print("TBD")
else:
    print("Heisei")

Solution (Python):
s=input()
print("Heisei" if s <= "2019/04/30" else "TBD")

Solution (Python):
import sys
def input(): return sys.stdin.readline().strip()

def main():
    s=''.join(input().split('/'))
    if s<='20190430':
        print('Heisei')
    else:
        print('TBD')

main()

Solution (Python):
y,m,d=map(int,input().split("/"))
if m<=4:
  print("Heisei")
else:
  print("TBD")

Solution (Python):
S = list(input())
S.pop(4)
S.pop(6)
S_list = []
H = [2019, 4, 30]
for i in range(len(S)):
  S[i] = int(S[i])
  
S_list.append(S[0] * 1000 + S[1] * 100 + S[2] * 10 + S[3])
S_list.append(S[4] * 10 + S[5])
S_list.append(S[6] * 10 + S[7])
  
for i in range(len(S_list)):
  if S_list[i] - H[i] > 0:
    print('TBD')
    break
  if i == len(S_list) - 1:
    print('Heisei')

Solution (Python):

s = input()
parts = [int(c) for c in s.split('/')]
print('Heisei' if parts[0] < 2019 or (parts[0] == 2019 and parts[1] <= 4) else 'TBD')

Solution (Python):
y, m, d = [int(i) for i in input().split("/")]
print("Heisei" if m <= 4 else "TBD")

Solution (Python):
s = input()
y = int(s[:4])
m = int(s[5:7])
d = int(s[8:10])
if y > 2019:
  print("TBD")
elif y < 2019:
  print("Heisei")
else:
  if m > 4:
    print("TBD")
  else:
    print("Heisei")

Solution (Python):
import datetime;

s = input();

time_format = datetime.datetime.strptime(s, "%Y/%m/%d");
time_heisei = datetime.datetime.strptime("2019/04/30", "%Y/%m/%d");

if time_format <= time_heisei:
    print("Heisei");
else:
    print("TBD");

Solution (Python):
S = input()
if int(S[5:7]) <= 4:
  print('Heisei')
else:
  print('TBD')

Solution (Python):
import datetime
S = input()
s = datetime.datetime.strptime(S,'%Y/%m/%d')
t = datetime.datetime(2019,4,30)
if s <= t:
  print('Heisei')
else:
  print('TBD')

Solution (Python):
s=str(input())
if int(s[5:7])>4:
  print('TBD')
else:
  print('Heisei')

Solution (Python):
s = list(map(int,input().split("/")))
if s[1] < 5:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
from sys import stdin

s = stdin.readline().rstrip()

if int(s[:4]) >= 2019 and int(s[5:7]) >= 5:
    print("TBD")
else:
    print("Heisei")

Solution (Python):
if int("".join([i for i in input().split('/')])) <= 20190430:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
print("Heisei" if input()<="2019/04/30" else "TBD")

Solution (Python):
y,m,d = input().split('/')
print('Heisei' if int(y+m+d)<=20190430 else 'TBD')

Solution (Python):
import datetime

s = datetime.datetime.strptime(input(), "%Y/%m/%d")
d = datetime.datetime(2019, 4, 30)

if s <= d:
    print("Heisei")
else:
    print("TBD")

Solution (Python):
s = input()
m = int(s[5:7])
if m > 4:
  print('TBD')
else:
  print('Heisei')

Solution (Python):
a=input().split('/')
for i in range(3):
   a[i]=int(a[i])
if a[0]<=2019:
   if a[1]<=4:
      print('Heisei')
   else:
      print('TBD')
else:
   print('TBD')

Solution (Python):

y,m,d = map(int,input().split('/'))

if y <= 2019 and m <= 4 and d <= 30:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
s = input()
year,month,day = map(int,s.split("/"))

if year < 2019:
    print("Heisei")
    exit()
if month < 5:
    print("Heisei")
    exit()

print("TBD")

Solution (Python):
y, m, d = [int(x) for x in input().split('/')]
print('Heisei' if (y, m, d) <= (2019, 4, 30) else 'TBD')

Solution (Python):
year, month, day = map(int, input().split('/'))
ans = year < 2019
ans |= year == 2019 and month <= 4

print("Heisei" if ans else "TBD")

Solution (Python):
y, m, d=map(int, input().split('/'))
if y<=2019 and m<=4 and d<=30:
    print("Heisei")
else:
    print("TBD")

Solution (Python):


s = input()


s = s.replace("/", "")
if int(s) <= 20190430:
	print("Heisei")
else:
	print("TBD")

Solution (Python):
S = input()
if int(S[0:4]) <= 2019 and int(S[5:7]) <= 4 and int(S[8:]) <= 30:
    print('Heisei')
else: print('TBD')

Solution (Python):
from datetime import datetime
d=datetime.strptime(input(),"%Y/%m/%d")
print("TBD" if d>datetime(2019,4,30)else "Heisei")

Solution (Python):
S=input()

YYYY=int(S[0:4])
MM=int(S[5:7])
DD=int(S[8:10])

ans='Heisei'

if YYYY > 2020 or (YYYY==2019 and MM >= 5) :
    ans='TBD'

print(ans)

Solution (Python):
S = str(input())
S = S.replace('/','')

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

Solution (Python):
S = input()
S = int(S.replace('/', ''))

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

Solution (Python):
s=input()
s=s.replace("/","")
if int(s) > 20190430:
    print("TBD")
else:
    print("Heisei")

Solution (Python):
y, m, d = [int(x) for x in input().split('/')]
print('Heisei' if (m <= 4) else 'TBD')

Solution (Python):
import sys
input = sys.stdin.readline

Y, M, D = input().split('/')
if int(M) >= 5:
    print('TBD')
else:
    print('Heisei')

Solution (Python):
S=input().split('/')
for n in range(3):
    S[n]=int(S[n])
if S[0]>=2020 or (S[0]==2019 and S[1]>=5):
    print('TBD')
else:
    print('Heisei')

Solution (Python):
s=input()
if(int(s[5:7])>4):
  print('TBD')
else:
  print('Heisei')

Solution (Python):
from datetime import datetime

target = datetime(2019,4,30)

S = str(input())
S_date = datetime.strptime(S,'%Y/%m/%d')

if S_date <= target:
	print('Heisei')
else:
	print('TBD')

Solution (Python):
import datetime
S = datetime.datetime.strptime(input(), '%Y/%m/%d')
if S <= datetime.datetime(2019,4,30):
  print('Heisei')
else:
  print('TBD')

Solution (Python):
S = input()
print('Heisei' if S<='2019/04/30' else 'TBD')

Solution (Python):
from datetime import datetime
a = datetime.strptime(input(), '%Y/%m/%d')
b = datetime(2019,4,30)
if a > b:
    print('TBD')
else:
    print('Heisei')

Solution (Python):
s = input()
print('Heisei' if s<='2019/04/30' else 'TBD')

Solution (Python):
s=str(input())
print('Heisei' if int(s[5:7]) <= 4 else 'TBD')

Solution (Python):
print('Heisei' if '2019/04/30' >= input() else 'TBD')

Solution (Python):
S = input()
s_new = int(S.replace("/", ""))

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

Solution (Python):
import datetime

def main():
    date = datetime.datetime.strptime(input(), '%Y/%m/%d')
    base = datetime.datetime.strptime('2019/04/30', '%Y/%m/%d')
    if date <= base :
        print('Heisei')
    else:
        print('TBD') 

if __name__ == "__main__":
    main()

Solution (Python):
S=input()
print('Heisei' if(int(S[5:7])<=4) else 'TBD')

Solution (Python):
s=input()
if s[5]=='0':
  m=int(s[6])
else:
  m=int(s[5:7])
if s[8]=='0':
  d=int(s[9])
else:
  d=int(s[8:10])
x='TBD'
if m<4:
  x='Heisei'
elif m==4 and d<=30:
  x='Heisei'
print(x)

Solution (Python):
S = input().split("/")
if int(S[1]) >= 5:
    print("TBD")
else:
    print("Heisei")

Solution (Python):
s = input()
before = ("Heisei")
after = ("TBD")
if s[6] == "1" and s[5] == "0":
    print(before)
elif s[6] == "2" and s[5] == "0":
    print(before)
elif s[6] == "3":
    print(before)
elif s[6] == "4":
    print(before)
else:
    print(after)

Solution (Python):
s = input().split("/")

if int(s[0]) <= 2018:
    print("Heisei")
elif int(s[0]) == 2019:
    if int(s[1]) <= 4:
        print("Heisei")
    else:
        print("TBD")
else:
    print("TBD")

Solution (Python):
print("Heisei" if input()<="2019/04/30" else "TBD")

Solution (Python):
s = str(input())
if int(s[5]) == 0:
  m = int(s[6])
else:
  m = int(s[5:7])
if m not in [1,2,3,4]:
  print('TBD')
else:
  print('Heisei')

Solution (Python):
s = str(input())
y = int(s[0:4])
if int(s[5]) == 0:
    m = int(s[6])
else:
    m = int(s[5:7])
if int(s[8]) == 0:
    d = int(s[9])
else:
    d = int(s[8:10])
if y < 2019:
    print('Heisei')
elif y == 2019 and m not in [1,2,3,4]:
    print('TBD')
else:
    print('Heisei')

Solution (Python):
from sys import stdin
S = int(stdin.read().replace('/',''))
if S <= 20190430:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
s = int(input().replace('/', ''))

if s <= 20190430 :
    print('Heisei')
else :
    print('TBD')

Solution (Python):
S = input()
m1 = int(S[5])
m2 = int(S[6])

if m2 >= 5:
  print('TBD')
  exit()
if m1 == 1:
  print('TBD')
  exit()

print('Heisei')

Solution (Python):
a=input()
if a <= '2019/04/30':
    print('Heisei')
else:
    print('TBD')

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    s = str(input().rstrip('\n').replace("/", ""))
    print("Heisei" if int(s) <= 20190430 else "TBD")


if __name__ == '__main__':
    slove()

Solution (Python):
n=input()
if n <= '2019/04/30':
    print('Heisei')
else:
    print('TBD')

Solution (Python):
S = list(input())
num = int("".join(S[5:7]))

if num <= 4:
    print("Heisei")
else:
    print("TBD")

Solution (Python):
import datetime
S = input()
dt = datetime.date(*list(map(int, S.split('/'))))
base = datetime.date(2019, 4, 30)
if dt<=base:
    print("Heisei")
else:
    print("TBD")

Solution (Python):
S = input()
if int(S[5:7])<=4:
    print("Heisei")
else:
    print("TBD")

Solution (Python):
print('Heisei' if int(input()[5:7])<5 else 'TBD')

Solution (Python):
s = input()
if int(s[5: 7]) < 5:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
import datetime
S = list(map(int,input().split("/")))
tmp = datetime.date(S[0],S[1],S[2])
if tmp <= datetime.date(2019,4,30):
    print("Heisei")
else:
    print("TBD")

Solution (Python):
S = list(map(int, input().split("/")))

if S[0] >= 2019 and S[1] >= 5:
  print("TBD")
else:
  print("Heisei")

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    s = int(input().rstrip('\n').replace("/", ""))
    print("Heisei" if s <= 20190430 else "TBD")


if __name__ == '__main__':
    slove()

Solution (Python):
from datetime import datetime
dt = datetime.strptime(input(),'%Y/%m/%d')

dt_limit = datetime(2019, 4, 30)
                       
                       
if dt <= dt_limit:
	print('Heisei')
elif dt > dt_limit:
    print('TBD')

Solution (Python):
s = list(map(int, input().split('/')))
if s[0]==2019:
  if s[1]>4:
    print('TBD')
  else:
    print('Heisei')
elif s[0]>2019:
  print('TBD')
else:
  print('Heisei')

Solution (Python):
S = list(map(int, input().split("/")))
if S[0] < 2019:
    print("Heisei")
elif S[0] > 2019:
    print("TBD")
else:
    if S[1] > 4:
        print("TBD")
    elif S[1] < 4:
        print("Heisei")
    else:
        print("Heisei")

Solution (Python):
'''A - Still TBD
https://atcoder.jp/contests/abc119/tasks/abc119_a

>>> main("2019/04/30")
Heisei
>>> main("2019/11/01")
TBD'''

from datetime import datetime


def main(s):
    base_data = datetime(2019, 4, 30)
    year, month, day = map(int, s.split('/'))

    if datetime(year, month, day) <= base_data:
        print('Heisei')
    else:
        print('TBD')


if __name__ == "__main__":
    s = input()
    main(s)

Solution (Python):
y, m, d = ((int(x) for x in input().split("/")))
if y <= 2018: print("Heisei")
else:
    if m <= 4: print("Heisei")
    else: print("TBD")

Solution (Python):
import datetime

S=input()
date_formatted = datetime.datetime.strptime(S, "%Y/%m/%d")
kijun = datetime.datetime(2019, 4, 30)

if date_formatted <= kijun:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
n=int(input().replace("/",""))
print("Heisei" if n<=20190430 else "TBD")

Solution (Python):
a,b,c = map(int,input().split('/'))
if b <= 4:
  print('Heisei')
else:
  print('TBD')

Solution (Python):
S = input()
if int(S[5:7]) >= 5:
    print('TBD')
else:
    print('Heisei')

Solution (Python):
s = input()
if int(s[5:7]) > 4:
  print("TBD")
else:
  print("Heisei")

Solution (Python):
n=input()
if int(n[5]+n[6]) >=5:
  print('TBD')
else:
  print('Heisei')

Solution (Python):
S=input()
S=''.join(S.split('/'))

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

Solution (Python):
S = input()
h = '2019/04/30'
if S <= h:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
s=input()
if int(s[:4])>2019 or (s[:4]=='2019' and int(s[5:7])>4):
  print('TBD')
else:
  print('Heisei')

Solution (Python):
s = input()
if int(s[:4])<=2019 and int(s[5:7])<=4 and int(s[8:])<=30:
    print("Heisei")
else:
    print("TBD")

Solution (Python):
s=input()
s1=int(s[5:7])
s2=int(s[8:])
if (s1<=4 and s2<=30):
    print('Heisei')
else:
    print('TBD')

Solution (Python):
s = input()

print("Heisei" if "2019/04/30" >= s else "TBD")

Solution (Python):
S = input()
if S <= "2019/04/30":
    print("Heisei")
else:
    print("TBD")

Solution (Python):
s = input()
print("Heisei" if "2019/04/30" >= s else "TBD")

Solution (Python):
import sys

input = sys.stdin.readline


def main():
    print("Heisei" if int("".join(input().split("/"))) <= 20190430 else "TBD")


if __name__ == "__main__":
    main()

Solution (Python):
S = input()
A = sorted([S,"2019/04/30"])
if A[0] == A[1]:
    print("Heisei")
elif A[0] == "2019/04/30":
    print("TBD")
else:
    print("Heisei")

Solution (Python):
s = int(input().replace('/', ''))
print("Heisei" if s <= 20190430 else "TBD")

Solution (Python):
s = input()
if s[3] == "9":
  if s[5] == 1:
    print("TBD")
  else:
    if int(s[5]) == 1:
      print("TBD")
    else:
      if int(s[6]) > 4:
        print("TBD")
      else:
        print("Heisei")
    
else:
  print("Heisei")

Solution (Python):
s = int(input().replace('/', ''))
print('Heisei' if s <= 20190430 else 'TBD')

Solution (Python):
print("Heisei" if input()<="2019/04/30" else "TBD")

Solution (Python):
a=input()
print("Heisei" if int(a.replace("/", ""))<=20190430 else "TBD")

Solution (Python):
s=input()
if s[5]=="0":
    if int(s[6])>4:
        print('TBD')
    else:
        print('Heisei')
else:
    print('TBD')

Solution (Python):
s = input()
if 10*int(s[5])+int(s[6]) <= 4:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
S = input()
print(['TBD','Heisei'][int(S[5]+S[6])*30 + int(S[8]+S[9])<=150])

Solution (Python):


s = raw_input()

Heisei = "Heisei"
TBD = "TBD"
ans = Heisei

l = s.split("/")

if int(l[0]) > 2019:
    ans = TBD
elif int(l[0]) < 2019:
    ans = Heisei
else:
    if int(l[1]) > 4:
        ans = TBD
    else:
        ans = Heisei

print ans

Solution (Python):
y,m,d = map(int,input().split("/"))
if m > 4:
  print("TBD")
else:
  print("Heisei")

Solution (Python):
s = input()
print('Heisei' if '2019/04/30' >= s else 'TBD')

Solution (Python):
import sys 
stdin = sys.stdin
ns = lambda : stdin.readline().rstrip()

s = "".join(ns().split("/"))
if s <= "20190430":
  print("Heisei")
else:
  print("TBD")

Solution (Python):
s = list(map(int, input().split(sep="/")))
flag = 1
if s[0] < 2019:
    flag = 0
elif s[0] == 2019 and s[1] <= 4:
    flag = 0
print("TBD" if flag else "Heisei")

Solution (Python):
T=input()
x=int(T[:4])
if x>2019:
  print("TBD")
elif x>2018:
  y=int(T[5:7])
  if y>4:
    print("TBD")
  else:
    print("Heisei")
else:
  print("Heisei")

Solution (Python):
S = input().split('/')
if int(S[1]) <= 4:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
s,t,u=map(int, input().split("/"))
if t<=4:
  print('Heisei')
else:
  print('TBD')

Solution (Python):
import sys
sys.setrecursionlimit(5 * 10**5)
input = sys.stdin.readline
 
y, m, d = map(int, input().split("/"))
 
if y == 2019:
    if m >= 5:
        print("TBD")
    else:
        print("Heisei")
elif y > 2019:
    print("TBD")
else:
    print("Heisei")

Solution (Python):
import sys
sys.setrecursionlimit(5 * 10**5)
input = sys.stdin.readline

y, m, d = map(int, input().split("/"))

if y == 2019:
    if m >= 5:
        print("TBD")
    else:
        print("Heisei")
elif y > 2019:
    print("TBD")
else:
    print("Heisei")

Solution (Python):
s=input()
if int(s[:4])<2019:
  print('Heisei')
elif int(s[5:7])<=4:
  print('Heisei')
else:
  print('TBD')

Solution (Python):

S = input()
S_num = int(S[0:4] + S[5:7] + S[8:])
last_heisei = 20190430

print("Heisei" if(S_num - last_heisei) <= 0 else "TBD" )

Solution (Python):
s=input()
s_list=s.split('/') 
s1=list(map(int,s_list))
st=[2019,4,30]
if s1[0]<st[0]:
    print('Heisei')
elif s1[0]==st[0] and s1[1]<=st[1]:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
S = input()

y,m,d = S.split("/")

if m.startswith("0"):
  m = m[1]

if d.startswith("0"):
  d = d[1]

m = int(m)
d = int(d)

ans = None

if m >= 5:
  ans = "TBD"
else:
  ans = "Heisei"

print(ans)

Solution (Python):
yyyy, mm, dd = map(int, input().split('/'))
ans = 'TBD'
if yyyy <= 2019:
    if mm <= 4:
        ans = 'Heisei'
print(ans)

Solution (Python):
s = input()

s = s[:4] + s[5:7] + s[8:]

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

Solution (Python):
print("Heisei" if 20190430 - int(input().replace("/","")) >= 0 else "TBD")

Solution (Python):
d=int(input().replace("/",""))
print("Heisei" if 20190430 - d >= 0 else "TBD")

Solution (Python):
import datetime


s = input()
s_date = datetime.datetime.strptime(s, '%Y/%m/%d')


ref = "2019/04/30"
ref_date = datetime.datetime.strptime(ref, '%Y/%m/%d')

if s_date <= ref_date:
  print("Heisei")
else:
  print("TBD")

Solution (Python):
S=str(input())
mm=int(S[5]+S[6])
if mm<=4:
  print('Heisei')
else:
  print('TBD')

Solution (Python):
S = int("".join(input().split("/")))
print("Heisei" if S <= 20190430 else "TBD")

Solution (Python):
from datetime import datetime

S = datetime.strptime(input(), "%Y/%m/%d")
target = datetime(2019, 4, 30)

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

Solution (Python):
x=int(input().replace('/',''))
print('Heisei' if x <= 20190430 else 'TBD')

Solution (Python):
S=input()
T=int(S[0]+S[1]+S[2]+S[3]+S[5]+S[6]+S[8]+S[9])

if T<=20190430:
  print('Heisei')
else:
  print('TBD')

Solution (Python):
a,b,c = map(int,input().split("/"))

if a >= 2019 and b > 4:
    print("TBD")
else:
    print("Heisei")

Solution (Python):
S = input()
A = sorted([S,"2019/04/30"])
if A[0] == A[1]:
    print("Heisei")
elif A[0] == "2019/04/30":
    print("TBD")
else:
    print("Heisei")

Solution (Python):
a,b,c=map(int,input().split('/'))

if a >=2019 and b >4:
    print('TBD')
else:
    print('Heisei')

Solution (Python):
s = input()
print('Heisei' if "2019/04/30" >= s else 'TBD')

Solution (Python):
S = input().split("/")

if int(S[0]) >=2020:
  print("TBD")
elif int(S[0]) == 2019 and int(S[1]) > 4:
  print("TBD")
else:
  print("Heisei")

Solution (Python):
from datetime import datetime as dt
a = dt.strptime(input(), '%Y/%m/%d')
b = dt.strptime('2019/04/30', '%Y/%m/%d')
print('Heisei' if (a-b).days <= 0 else 'TBD')

Solution (Python):
s=input()
print("Heisei" if s<="2019/04/30" else "TBD")

Solution (Python):
S=str(input())
if int(S[:4])<2019:
    print('Heisei')
else:
    if int(S[5:7])<=4:
        print('Heisei')
    else:
        print('TBD')

Solution (Python):
import datetime

S = str(input())
s = datetime.datetime.strptime(S, '%Y/%m/%d')
target = datetime.datetime.strptime("2019/04/30", '%Y/%m/%d')

if target >= s:
    print("Heisei")
else:
    print("TBD")

Solution (Python):
s = list(map(int, input().split('/')))

if s[0] < 2019:
    print('Heisei')
elif s[0] > 2019:
    print('TBD')
elif s[1] < 4:
    print('Heisei')
elif s[1] > 4:
    print('TBD')
elif s[2] <= 30:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
a=int(input().replace('/',''))
print('Heisei' if a<=20190430 else 'TBD')

Solution (Python):

n = int(input()[5:7])
if n < 5:
  print('Heisei')
else:
  print('TBD')

Solution (Python):
yyyy, mm, dd = map(int, input().split("/"))
print('Heisei' if yyyy <= 2019 and mm <= 4 and dd <= 30 else 'TBD')

Solution (Python):
S=str(input())
month=10*int(S[5])+int(S[6])
day=10*int(S[8])+int(S[9])

if month<=4:
    print("Heisei")
else:
    print("TBD")

Solution (Python):
year, month, day = map(str, input().split('/'))

num = int(year + month + day)

if num <= 20190430:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
s = list(input().split("/"))
if s[1] == "01" or s[1] == "02" or s[1] == "03" or s[1] == "04":
  print("Heisei")
else :
  print("TBD")

Solution (Python):
A,B,C = map(str,input().split("/"))
if int(A) <= 2018:
  print("Heisei")
elif int(A) == 2019 and int(B) <=4 and int(C)<=30:
  print("Heisei")
else:
  print("TBD")

Solution (Python):

b = 0
s = input()
if int(s[:4]) < 2019:
    b = 1
elif int(s[:4]) == 2019:
    if int(s[5:7]) < 4:
        b = 1
    elif int(s[5:7]) == 4:
        if int(s[9:11]) <=30:
            b = 1

if b:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
S = input()

print('Heisei' if S <= '2019/04/30' else 'TBD')

Solution (Python):
S=list(input().split('/'))
if int(S[0])>=2019 and int(S[1])>4:
    print('TBD')
else:
    print('Heisei')

Solution (Python):
s = input()
print("Heisei" if int(s[0:4] + s[5:7] + s[8:10]) <= 20190430 else "TBD")

Solution (Python):
S = list(map(int,input().split("/")))
m = S[1]
d = S[2]
if m<=4:
    print("Heisei")
elif m>=5:
    print("TBD")

Solution (Python):
s = input()

if int(s[5])>0 or int(s[6])>4:
  print('TBD')
else:
  print('Heisei')

Solution (Python):
import datetime

s = input()

print ("TBD") if (datetime.datetime.strptime(s, "%Y/%m/%d")) > (datetime.datetime(2019, 4, 30)) else print ("Heisei")

Solution (Python):
Y,M,D = [int(x) for x in input().split("/")]
if Y==2019:
    print("Heisei" if M<5 else "TBD")
elif Y<2019:
    print("Heisei")
else:
    print("TBD")

Solution (Python):
S=input()
if int(S[0:4]+S[5:7]+S[8:])<=20190430:
  print('Heisei')
else:
  print('TBD')

Solution (Python):
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    
S=input()

if S<="2019/04/30":
	print("Heisei")
else:
	print("TBD")

Solution (Python):
s = input()
s = int(s[0:4] + s[5:7] + s[8:10])
print("Heisei" if s <= 20190430 else "TBD")

Solution (Python):
s=input()
print('Heisei' if s<='2019/04/30' else 'TBD')

Solution (Python):
import datetime
y,m,d=map(int, input().split("/"))
print("Heisei" if datetime.date(y, m, d)<=datetime.date(2019, 4, 30) else "TBD")

Solution (Python):
s = input()
month = int(s[5:7])
print("Heisei" if month < 5 else "TBD")

Solution (Python):
y,m,d=map(int,input().split('/'))
if y>=2019 and m>=5:
  print('TBD')
else:
  print('Heisei')

Solution (Python):
s=input()
if int(s[5]+s[6])>=5:
  print('TBD')
else:
  print('Heisei')

Solution (Python):
s=input()
a=s[:4]+s[5:7]+s[8:10]
if int(a)<=20190430:
  print('Heisei')
else:
  print('TBD')

Solution (Python):
n = input()
a,b,c = n.split('/')

if int(a) < 2019:
    print('Heisei')
elif int(b) > 4:
    print('TBD')
else:
    print('Heisei')

Solution (Python):
print(["Heisei","TBD"][input()[5:7]>"04"])

Solution (Python):
S = input()
A = S[0:4] + S[5:7] + S[8:10]
if int(A) <= 20190430:
  print('Heisei')
else:
  print('TBD')

Solution (Python):
y, m, d = map(int, input().split("/"))

if y < 2019:
    print("Heisei")
elif y == 2019:
    if m < 4:
        print("Heisei")
    elif m == 4:
        if d <= 30:
            print("Heisei")
        else:
            print("TBD")
    else:
        print("TBD")
else:
    print("TBD")

Solution (Python):
import sys
input = sys.stdin.readline
S = input()
S2 = int(S.replace('/', ''))
if S2 <= 20190430:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
print("Heisei" if input().replace("/","") <= "20190430" else "TBD")

Solution (Python):
y,m,d = map(int, input().split("/"))
print("TBD" if y > 2019 or m > 4 else "Heisei")

Solution (Python):
S = int(''.join(input().split('/')))

print ('Heisei' if S <= 20190430 else 'TBD')

Solution (Python):
S = input()

if S <= '2019/04/30':
    print('Heisei')

else:
    print('TBD')

Solution (Python):
s = input()
print('Heisei' if s<="2019/04/30" else 'TBD')

Solution (Python):

S = input().split()[0]
s = ''.join(S.split('/'))

if int(s) <= 20190430:
    ans = 'Heisei'
else:
    ans = 'TBD'

print(ans)

Solution (Python):
if __name__ == '__main__':
    S = str(input())
    if int(S[0:4]) < 2019:
        print('Heisei')
    else:
        if int(S[5:7]) <= 4:
            print('Heisei')
        else:
            print('TBD')

Solution (Python):
S = input()
mm = int(S[5:7])
dd = int(S[8:10])
if mm>4:
  print("TBD")
elif mm<=4:
  print("Heisei")

Solution (Python):
List=list(input())
ylist=List[:4]
mlist=List[5:7]
dlist=List[8:]
y=int("".join(ylist))
m=int("".join(mlist))
d=int("".join(dlist))
if m<=3:
  print("Heisei")
elif m==4 and d<=30:
  print("Heisei")
else:print("TBD")

Solution (Python):
S = input()
m = int(S.split("/")[1])
if m > 4:
  print("TBD")
else:
  print("Heisei")

Solution (Python):
s = input()
y = int(s[:4])
m = int(s[5:7])
d = int(s[8:10])
if (y>=2019 and m >=5) or (y>2019):
    print("TBD")
else:
    print("Heisei")

Solution (Python):
S = input()
S[6:8]
print("Heisei" if int(S[5:7]) <= 4 else "TBD")

Solution (Python):
s=input()
if s <= '2019/04/30':
    print('Heisei')
else:
    print('TBD')

Solution (Python):
a,b,c=map(int,input().split("/"))
if a<=2018:
  print("Heisei")
elif a>=2019 and b<=4:
  print("Heisei")
else:
  print("TBD")

Solution (Python):
s = input()
y = int(s[0:4])
m = int(s[5:7])
d = int(s[8:])

if y < 2019 or (y == 2019 and m < 4 ) or (y == 2019 and m == 4 and d <= 30):
  print("Heisei")
else:
  print("TBD")

Solution (Python):
S=input().replace("/","")
print("Heisei" if S <= "20190430" else "TBD")

Solution (Python):
if input() <= "2019/04/30":
  print("Heisei")
else:
  print("TBD")

Solution (Python):
S = input()
T = [c for c in S]
if int(T[0]) * 1000 + int(T[1]) * 100 + int(T[2]) * 10 + int(T[3]) <= 2018 or  (int(T[0]) * 1000 + int(T[1]) * 100 + int(T[2]) * 10 + int(T[3]) == 2019 and int(T[5]) * 1000 + int(T[6]) * 100 + int(T[8]) * 10 + int(T[9]) <= 430 ):
  print('Heisei')
  exit()
print('TBD')

Solution (Python):
print('Heisei' if int(input().replace('/',''))<=20190430 else 'TBD')

Solution (Python):
S = input()
S_list = S.split("/", 2)
if int(S_list[0]) > 2019:
    ans = "TBD"
elif int(S_list[1]) > 4:
    ans = "TBD"
else:
    ans = "Heisei"
print(ans)

Solution (Python):
print("Heisei" if int(input()[5:7]) < 5 else "TBD")

Solution (Python):
from datetime import datetime

S = input()
sDate = datetime.strptime(S, '%Y/%m/%d')
heiseiDate = datetime.strptime('2019/04/30', '%Y/%m/%d')

if sDate <= heiseiDate:
  print('Heisei')
else:
  print('TBD')

Solution (Python):
s=input()
s=s.split("/")
m=int(s[1])
d=int(s[2])
if m >= 5:
    print("TBD")
else:
    print("Heisei")

Solution (Python):
print('Heisei' if input() <= '2019/04/30' else 'TBD')

Solution (Python):
S = input()

year = int(S[:4])
month = int(S[5:7])
day = int(S[-2:])

if year < 2019:
    print('Heisei')
else:
    if 1 <= month < 4:
        print('Heisei')
    elif month == 4:
            print('Heisei')
    else:
        print('TBD')

Solution (Python):
from datetime import datetime

s=list(input().split())
''.join(s)
day=s[0]
dt = datetime.strptime(day, '%Y/%m/%d')
main_dt = datetime(2019, 4, 30)
if dt <= main_dt:
  print('Heisei')
else:
  print('TBD')

Solution (Python):
yyyy,mm,dd=map(int,input().split("/"))
ymd=yyyy*10000+mm*100+dd
if ymd >20190430:
  print("TBD")
else:
  print("Heisei")

Solution (Python):
a = input().split("/")
if int(a[1]) < 4:
  print("Heisei")
elif int(a[1]) == 4 and int(a[2]) <= 30:
  print("Heisei")
else:
  print("TBD")

Solution (Python):
def MAP(): return list(map(int,input().split("/")))

y,m,d = MAP()
if y<2019:
    print("Heisei")
elif y>2019:
    print("TBD")
elif m<=4:
    print("Heisei")
else:
    print("TBD")

Solution (Python):
import sys
input=sys.stdin.readline

def main():
    S = input().strip()
    y = int(S[:4])
    m = int(S[5:7])
    if y == 2019 and m >= 5:
        print("TBD")
    else:
        print("Heisei")

if __name__ == '__main__':
    main()

Solution (Python):
S = input()
m = int(S.split("/")[1])
if m <= 4:
  print("Heisei")
else:
  print("TBD")

Solution (Python):
y,m,d=map(int,input().split("/"))
if y<=2018:
  ans="Heisei"
else:
  if m<=4:
    ans="Heisei"
  else:
    ans="TBD"
print(ans)

Solution (Python):
S = list(input())
a = int(S[5]+S[6])

if a <= 4:
    ans = "Heisei"
else:
    ans = "TBD"
print(ans)

Solution (Python):
S = list(input())
a = int(S[5]+S[6])
b = int(S[8]+S[9])

if a <= 4:
    ans = "Heisei"
else:
    ans = "TBD"
print(ans)

Solution (Python):
print('Heisei' if int(input().replace('/',''))<=20190430 else 'TBD')

Solution (Python):
s = list(map(int, input().split('/')))
print('TBD' if s[0] >= 2019 and s[1] > 4 else 'Heisei')

Solution (Python):
S = input()

S = int(S.replace('/',''))

if S > 20190430:
    print('TBD')
else:
    print('Heisei')

Solution (Python):
S=input().split("/")
S=("").join(S)
print("Heisei" if int(S) <= 20190430 else "TBD")

Solution (Python):
s = ''.join(input().strip().split('/'))
if s <= '20190430':
    print('Heisei')
else:
    print('TBD')

Solution (Python):
print("Heisei" if input() <= "2019/04/30" else "TBD")

Solution (Python):
import datetime

s = input()
base = datetime.datetime.strptime("2019/4/30", '%Y/%m/%d')
dt = datetime.datetime.strptime(s, '%Y/%m/%d')
print("Heisei" if base >= dt else "TBD")

Solution (Python):
print(['TBD','Heisei'][input()[5:7]<'05'])

Solution (Python):
year, month, day = map(int, input().split("/"))
 
if (year == 2019 and 1 <= month and 4 >= month) or (year < 2019):
  print("Heisei")
else:
  print("TBD")

Solution (Python):
a = int("".join(input().split("/")))
if a <= 20190430:
  print("Heisei")
else:
  print("TBD")

Solution (Python):
a,b,c = map(int,input().split('/'))
if b <= 4:
    print("Heisei")
else:
    print("TBD")

Solution (Python):
S = input()

if int(S[5:7]) <= 4:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
a,b,c = map(int, input().split('/'))

if a < 2019:
  print('Heisei')
elif a == 2019:
  if b <= 4:
    print('Heisei')
  else:
    print('TBD')
else:
  print('TBD')

Solution (Python):
n = input()

M = int(n[5:7])
if M >= 5:
    print('TBD')
else:
    print('Heisei')

Solution (Python):
a,b,c  = map(int,input().split('/'))
if b <= 4:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
s = input()
if int(s[5:7]) <= 4:
  print('Heisei')
else:
  print('TBD')

Solution (Python):
s = input()
y = int(s[0]+s[1]+s[2]+s[3])
m = int(s[5]+s[6])
if y >= 2019 and m >= 5:
  print("TBD")
else:
  print("Heisei")

Solution (Python):
s = list(input().split('/'))
if s[0] < '2019':
  print('TBD')
elif s[0] == '2019':
  if s[1] > '04':
    print('TBD')
  else:
    print('Heisei')
else:
  print('Heisei')

Solution (Python):
a = input()
if a<="2019/04/30":
  print("Heisei")
else:
  print("TBD")

Solution (Python):
y, m, d = map(int, input().split("/"))
print("TBD" if m >= 5 else "Heisei")

Solution (Python):
s = input()
if s <= '2019/04/30':
  print('Heisei')
else:
  print('TBD')

Solution (Python):
year,month,day = map(int, input().split('/'))
if year >= 2019:
  if month >= 5:
    print('TBD')
  else:
    print('Heisei')
else:
  print('Heisei')

Solution (Python):
s = input()
print('Heisei' if s <= '2019/04/30' else 'TBD')