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 == 2019):
    if(M > 4):
        print('TBD')
    else:
        print('Heisei')

elif(Y > 2019):
    print('TBD')
elif(Y < 2019):
    print('Heisei')

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

Solution (Python):



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

h='Heisei'
t = 'TBD'

if m > 4:
    print(t)
elif m < 4:
    print(h)
else:
    if m > 30:
        print(t)
    else:
        print(h)

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

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

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

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

Solution (Python):
n=input()

if int(n[5]+n[6])>4:
    print("TBD")

elif int(n[5]+n[6])==4 and int(n[8]+n[9])>30:
    print("TBD")

else:
    print("Heisei")

Solution (Python):
yy, mm, dd = map(int,input().split('/'))

if yy <= 2019 and mm <= 4:
    print('Heisei')
else:
    print('TBD')

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

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

Y, M, D = map(int, input().split('/'))
if Y < 2019 :
    print('Heisei')
elif Y == 2019 and M < 3:
    print('Heisei')
elif Y == 2019 and M == 4 and D <= 30:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
S = input()
s = list(S)
year = int(s[0] + s[1] + s[2] + s[3])
month = int(s[5] + s[6])
day = int(s[8] + s[9])
if year <2019:
    print('Heisei')
elif month < 5:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
S = str(input())

S = S.split("/")

if int(S[0]) <= 2019:
  if int(S[0])==2019 and (int(S[1])*100+int(S[2]))<=430:
    print("Heisei")
  else:
    print("TBD")
else:
  print("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 S<='2019/04/30':
  print('Heisei')
else:
  print('TBD')

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

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

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

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

Solution (Python):
import datetime
date_str = input()
input_date = datetime.datetime.strptime(date_str, "%Y/%m/%d")
comp = datetime.datetime(2019,4,30,0,0,0)
if input_date <= comp:
    print("Heisei")
else:
    print("TBD")

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

Solution (Python):
import datetime

input = input()

date = datetime.datetime.strptime(input, "%Y/%m/%d")

if date <= datetime.datetime(2019, 4, 30):
	print("Heisei")
else:
	print("TBD")

Solution (Python):
S = input()
if S <= "2019/04/30":
    print("Heisei")
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):
from datetime import datetime


def main():
    S = datetime.strptime(input(), "%Y/%m/%d")
    if(S <= datetime(2019, 4, 30)):
        print("Heisei")
    else:
        print("TBD")


if __name__ == "__main__":
    main()

Solution (Python):

S = input()

year = int(S[0:4])
month = int(S[5:7])

ans = "TBD"

if year < 2019:
    ans = "Heisei"

if (year == 2019) and (month <= 4):
    ans = "Heisei"

print(ans)

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

Solution (Python):
list_num = [int(num) for num in input().split("/")]

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

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

Solution (Python):
import math
def f():
    string = input()
    number = string[0:4] + string[5:7] + string[-2:]
    number = int(number)

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

f()

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

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

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

Solution (Python):
ymd=input().split("/")
m=["01","02","03","04"]
if ymd[1] in m:
    print("Heisei")
else:
    print("TBD")

Solution (Python):
S = input()

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

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


if __name__ == "__main__":
    main()

Solution (Python):


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

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

Solution (Python):
import datetime

S = input()

dt_base = datetime.datetime.strptime("2019/04/30", "%Y/%m/%d")
dt = datetime.datetime.strptime(S, "%Y/%m/%d")

td = dt - dt_base

if td.total_seconds() <= 0:
    print("Heisei")
else:
    print("TBD")

Solution (Python):
import datetime
str=input()
in_day = datetime.datetime.strptime(str, '%Y/%m/%d')
d_day = datetime.datetime(2019,4,30)

count = in_day - d_day
if count.days>0:
  print('TBD')
else:
  print('Heisei')

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

Solution (Python):
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b



def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)



def lcm(a, b):
    g = gcd(a, b)
    return a / g * b


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

    for a, b in [(y, 2019), (m, 4), (d, 30)]:
        if a < b:
            print("Heisei")
            return
        elif a > b:
            print("TBD")
            return

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


if __name__ == '__main__':
    main()

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

if int(S) >= 20190501:
    print('TBD')
else:
    print('Heisei')

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

Solution (Python):
import datetime
if '2019-04-30' >= input().replace('/','-'):
    print('Heisei')
else:
    print('TBD')

Solution (Python):
y,m,d = input().split("/")
flag = False
if(int(y) > 2019) :
  flag = True
elif(int(y) == 2019):
  if(int(m)>=5):
    flag = True
print("TBD" if flag else "Heisei")

Solution (Python):
def main():
    yyyy, mm, dd = map(int, input().split('/'))

    if yyyy == 2019 and mm >= 5:
        print('TBD')
    else:
        print('Heisei')

if __name__ == "__main__":
    main()

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

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

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

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

Solution (Python):
a,b,c=map(str,input().split('/'))
d=int(a+b+c)
if d>20190430:
    print('TBD')
else:
    print('Heisei')

Solution (Python):
a,b,c=map(str,input().split('/'))
d=int(a+b+c)
if d>20190430:
    print('TBD')
else:
    print('Heisei')

Solution (Python):
a,b,c=map(str,input().split('/'))
d=int(a+b+c)
if d>20190430:
    print('TBD')
else:
    print('Heisei')

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

Solution (Python):
Y, M, D = [int(s) for s in input().split('/')]
print('TBD' if M >= 5 else 'Heisei')

Solution (Python):
S = str(input())

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


if YYYY>=2019 and MM>=5:
  print("TBD")
else:
  print("Heisei")

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

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

Solution (Python):
S = input()

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

Solution (Python):
s=input()

a=int(s[5])
b=int(s[6])

if a==1 or b>=5:
  print("TBD")
  
else:
  print("Heisei")

Solution (Python):
s = input()
l = s.split("/", 2 )
if int(l[0]) >= 2019 and int(l[1]) >= 5:
    print("TBD")
else:
    print("Heisei")

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

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

Solution (Python):
S = list(input().split('/'))
S = [int(a) for a in S]
if S[1]<=3:
    print('Heisei')
elif S[1]==4 and S[2]<=30:
    print('Heisei')
else:
    print('TBD')

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

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

if S[1] >= '05':
    print('TBD')
else:
    print('Heisei')

Solution (Python):
from datetime import datetime

s = str(input())

year = int(s[:4])
month = int(s[5:7])
day = int(s[8:])

if datetime(2019, 4, 30) < datetime(year, month, day):
    print("TBD")
else:
    print("Heisei")

Solution (Python):
s = input()
s = s.split('/')
if (s[1] <= '04' and s[2] <= '30'):
    print('Heisei')
else:
    print('TBD')

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

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

Solution (Python):

import sys


def solve(S: str):
    t = S.split("/")
    hi = int("".join(t))

    if hi > 20190430:
        print("TBD")
    else:
        print("Heisei")


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  
    solve(S)

if __name__ == '__main__':
    main()

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

Solution (Python):
S = input()

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

Solution (Python):
S=list(input().split("/"))
S_i="".join(S)
ANS=int(S_i)
N=20190430
if ANS>N:
     print("TBD")
else:
     print("Heisei")

Solution (Python):
S = input()

y = int(S[:4])
m = int(S[5:7])
d = int(S[8:])

flag = True
if y < 2019:
    flag = False
if y == 2019 and m < 5:
    flag = False

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

Solution (Python):
from sys import stdin
S = stdin.readline().rstrip()
heisei = '2019/04/30'
if S > heisei:
    print('TBD')
else:
    print('Heisei')

Solution (Python):
y,m,d=[int(i) for i in input().split('/')]

if y < 2019:
    print('Heisei')
elif y > 2019:
    print('TBD')
else:
    if m <= 4:
        print('Heisei')
    else:
        print('TBD')

Solution (Python):
S = input()

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

Solution (Python):
import datetime
S = datetime.datetime.strptime(input(), '%Y/%m/%d')
H = datetime.datetime.strptime("2019/04/30", '%Y/%m/%d')

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

Solution (Python):
S = input()

year   = S[0:4]
month  = S[5:7]
day    = S[8:10]

if int(year) <= 2019 and int(month) <= 4 and int(day) <= 30:
    print("Heisei")
else:
    print("TBD")

Solution (Python):
import datetime
y,m,d = map(int,input().split('/'))
a = datetime.date(y,m,d)
b = datetime.date(2019,4,30)
c = (a-b).days
if c <= 0:
  print('Heisei')
else:
  print('TBD')

Solution (Python):
import datetime
y,m,d = input().split('/')
y = int(y)
m = int(m)
d = int(d)
a = datetime.date(y,m,d)
b = datetime.date(2019,4,30)
c = (a - b).days
if c <= 0:
  print('Heisei')
else:
  print('TBD')

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

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

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

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

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

if  s[1] > 4:
    print('TBD')
else:
    print('Heisei')

Solution (Python):
import sys


def input():
    return sys.stdin.readline()[:-1]








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

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

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

Solution (Python):


S = input()
if S[-5:-3] <= '04':
    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()
m = int(S.split("/")[1])
HEISEI = "Heisei"
TBD = "TBD"
if m <= 4:
    ret = HEISEI
else:
    ret = TBD
print(ret)

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

Solution (Python):
import datetime

s = input()


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

date1 = datetime.datetime(2019, 4, 30)
date2 = datetime.datetime(y, m, d)

if date1 < date2:
    print('TBD')
else:
    print('Heisei')

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

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

Solution (Python):
import datetime

S = list(map(int, input().split('/')))

Sdate = datetime.date(S[0], S[1], S[2])
Heisei = datetime.date(2019, 4, 30)

if Sdate <= Heisei:
    print("Heisei")
else:
    print("TBD")

Solution (Python):

"""
Created on Mon May 13 21:30:18 2019

@author: avina
"""

s = input().strip()
a = int(s[:4]); b = int(s[5:7]);c = int(s[8:])
f = 2019 - a + (4 - b)//100 + (30 - c)//10000
if f >=0:
  print('Heisei')
else:
  print('TBD')

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

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

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

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

if a <= 2019 and b <= 4 and c <= 30:
    print("Heisei")
else:
    print("TBD")

Solution (Python):
s = input()

if int(s[5:7]) < 5:
  print("Heisei")
else:
  print("TBD")

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

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

Solution (Python):
from sys import stdin


def main():
    y, m, d = [int(x) for x in stdin.readline().rstrip().split('/')]
    print('Heisei' if m <= 4 else 'TBD')


if __name__ == "__main__":
    main()

Solution (Python):
S = input()
month = S.split("/")[1]

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

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

Solution (Python):

year, month, day = map(int, input().split("/"))
if month <= 4:
 print("Heisei")
else:
 print("TBD")

"""
from datetime import datetime
S=input()
to_dt=datetime.strptime(S,'%Y/%m/%d')

from_dt=datetime(2019,4,30)


if to_dt <= from_dt:
 print("Heisei")
else:
 print("TBD")
"""

Solution (Python):

from datetime import datetime
S=input()
to_dt=datetime.strptime(S,'%Y/%m/%d')

from_dt=datetime(2019,4,30)


if to_dt <= from_dt:
 print("Heisei")
else:
 print("TBD")

Solution (Python):

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

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

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

Solution (Python):
import datetime

S = input()
a = "2019/04/30"

S_dateformated = datetime.datetime.strptime(S, "%Y/%m/%d")
a_dateformated = datetime.datetime.strptime(a, "%Y/%m/%d")

if S_dateformated<=a_dateformated:
    print("Heisei")
else:
    print("TBD")

Solution (Python):
print(["TBD","Heisei"][input()<="2019/04/30"])

Solution (Python):
S = input()

y = int(S[0:4])
m = int(S[5:7])
d = int(S[8:10])


if y >= 2019 and m >= 5:
    print('TBD')
else:
    print('Heisei')

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

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

Solution (Python):
s = input()

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

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

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

Solution (Python):
s=input()
S=s.split('/')
for i in range(3):
    S[i]=int(S[i])

if S[1]<=4:
    print('Heisei')
else:
    print('TBD')

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

Solution (Python):
_, m, d = map(int, input().split('/'))

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

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

date_1 = datetime.datetime(2019,4,30)
date_2 = datetime.datetime(y,m,d)

if date_1 < date_2:
  print('TBD')
else:
  print('Heisei')

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

Solution (Python):
from _datetime import datetime

def main():
    S = list(map(int, input().split('/')))
    year = S[0]
    month = S[1]
    day = S[2]
    converted_datetime = datetime(year, month, day).strftime('%s')
    flg_datetime = datetime(2019, 4, 30).strftime('%s')
    if converted_datetime <= flg_datetime:
        print('Heisei')
    else:
        print('TBD')
main()

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

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

Solution (Python):
S = input()
if S[5] == '0' and int(S[6]) < int('5'):
    print('Heisei')
else:
    print('TBD')

Solution (Python):
import datetime

str = input()
dte = datetime.datetime.strptime(str, '%Y/%m/%d')
dte = datetime.date(dte.year, dte.month, dte.day)

if dte <= datetime.date(2019, 4, 30):
  print("Heisei")
else:
  print("TBD")

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

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

Solution (Python):
from datetime import datetime
f = datetime.strptime
if (f('2019/04/30', '%Y/%m/%d') - f(input(), '%Y/%m/%d')).days >= 0:
    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):
s = input()
a  = s.split('/')
b = int(a[0])
c = int(a[1])
if (b == 2019 and c <= 4) or b < 2019:
  print('Heisei')
else:
  print('TBD')

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

Solution (Python):
S = input()

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

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

Solution (Python):
from datetime import datetime as dt
s = input()

date = dt.strptime(s,'%Y/%m/%d')

if date <= dt(2019,4,30):
  print('Heisei')
else:
  print('TBD')

Solution (Python):
from datetime import datetime as dt


if __name__ == '__main__':
    S = str(input())

    last_day = dt.strptime('2019/04/30', '%Y/%m/%d')
    S_datetime = dt.strptime(S, '%Y/%m/%d')


    if S_datetime <= last_day:
        print('Heisei')
    else:
        print('TBD')

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

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

Solution (Python):

from datetime import date


def main():
    year, month, day = map(int, input().split('/'))
    given = date(year, month, day)
    border = date(2019, 4, 30)

    if given <= border:
        print('Heisei')
    else:
        print('TBD')

if __name__ == "__main__":
    main()

Solution (Python):
from datetime import date

y, m, d = map(int, input().split('/'))
given = date(y, m, d)
threshold = date(2019, 4, 30)
if given <= threshold:
    print('Heisei')
else:
    print('TBD')

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

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

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

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

s = datetime.date(y, m, d)
h = datetime.date(2019, 4, 30)

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

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

Solution (Python):
S = input()

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

Solution (Python):
s = input()
m = int(s[5:7])

if m > 4:
    print("TBD")
else:
    print("Heisei")

Solution (Python):
Y,M,D=[int(s) for s in input().split("/")]
print("Heisei" if Y<2019 or (Y==2019 and M<4) or (Y==2019 and M==4 and D<=30) else  "TBD")

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

Solution (Python):
S = input()
year = int(S[:4])
month = int(S[5:7])
day = int(S[8:])

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

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

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

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

Solution (Python):


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

x = 'TBD'
if y <= 2019:
    if m <= 4:
        x = 'Heisei'

print(x)

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

Solution (Python):
S = str(input())
lists = []
for i in range(len(S)):
    if i == 4 or i == 7:
        continue
    else:
        lists.append(S[i])
m = "".join(lists)
if int(m) > 20190430:
    print("TBD")
else:
    print("Heisei")

Solution (Python):
S = input()
year = int(S[0:4])
month = int(S[5:7])
day = int(S[8:])
if(year < 2019):
    print("Heisei")
elif(year >= 2019):
    if(month < 5):
        print("Heisei")
    elif(month >= 5):
        print("TBD")

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

Solution (Python):
def main():
  j = list(map(int, input().split("/")))

  if j[0] <= 2019:
    if j[1] <= 4:
      if j[2] <= 30:
        print("Heisei")
        return 0
  print("TBD")

main()

Solution (Python):
a, b, c = input().split("/")
print("Heisei" if b in ["01","02","03","04"] else "TBD")

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

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

if s[0] <= 2019 and s[1] <= 4 and s[2] <= 30:
    print("Heisei")
else:
    print("TBD")

Solution (Python):
import datetime
S=input().split("/")
S=''.join(S)
S = datetime.datetime.strptime(S, '%Y%m%d')
HEISEI =datetime.datetime(2019,4,30)

if HEISEI<S:
    print('TBD')
else:
    print('Heisei')

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

result = 'Heisei'
if S[0] < 2019:
    print(result)
    exit(0)

if S[0] == 2019 and S[1] < 4:
    print(result)
    exit(0)

if S[0] == 2019 and S[1] == 4 and S[2] <= 30:
    print(result)
    exit(0)
result = 'TBD'
print(result)

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

if m <= 4:
    print ('Heisei')
else:
    print ('TBD')

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

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

Solution (Python):
S = input().split("/")
md = int(S[0] +S[1] + S[2])
if md > 20190430:
  print("TBD")
else:
  print("Heisei")

Solution (Python):


def solve():
    S = input()
    y, m, d = list(map(int, S.split("/")))

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

if __name__ == "__main__":
    solve()

Solution (Python):
y, m, d = map(int, input().split('/'))
if y*10000+m*100+d > 20190430:
    print('TBD')
else:
    print('Heisei')

Solution (Python):
_, M, _ = map(int, input().split('/'))

if M <= 4:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
a=input()
b=int(a[0:4])
c=int(a[5:7])
d=int(a[8:10])

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

Solution (Python):
import sys

s = input().split('/')

y = int(s[0])
m = int(s[1])
d = int(s[2])

if y < 2019:
    print('Heisei')
    sys.exit(0)
if y > 2019:
    print('TBD')
    sys.exit(0)

if m < 4:
    print('Heisei')
    sys.exit(0)
if m > 4:
    print('TBD')
    sys.exit(0)


if d <= 30:
    print('Heisei')
    sys.exit(0)
if m > 30:
    print('TBD')
    sys.exit(0)

Solution (Python):
Y,M,D = map(int, input().strip().split('/'))
if M > 4:
  print('TBD')
else:
  print('Heisei')

Solution (Python):

import sys
from math import *
from itertools import *
from collections import *
from functools import *
try:
    from math import gcd
except Exception:
    from fractions import gcd


def solve(S: str):
    y, m, d = [int(x) for x in S.split('/')]
    if y < 2019:
        return 'Heisei'
    if y == 2019 and m <= 4:
        return 'Heisei'
    return 'TBD'


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  
    result = solve(S)
    print(result)

if __name__ == '__main__':
    main()

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

Solution (Python):
Y,M,D = map(int,input().split('/'))
if Y < 2019 or (Y == 2019 and M <= 4):
    print('Heisei')
else:
    print('TBD')

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

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

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

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

Solution (Python):
s = input()
y = s[:4]
m = s[5:7]
d = s[-2:]
if int(y) < 2019 or (int(y) == 2019 and int(m) < 4) or (int(y) == 2019 and int(m) == 4 and int(d) <= 30):
  print('Heisei')
else:
  print('TBD')

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

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

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

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

Solution (Python):
a,b,c = map(int,input().split('/'))
if a > 2019 or a == 2019 and b >= 5:
    print('TBD')
else:
    print('Heisei')

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

Solution (Python):
import datetime

Y, M, D = map(int, input().split('/'))

d1 = datetime.date(Y,M,D)
d2 = datetime.date(2019, 4, 30)

if d1 <= d2:
  print('Heisei')
else:
  print('TBD')