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):
S=list(map(int,input().split('/')))
if S[1] < 5: print('Heisei')
else: print('TBD')

Solution (Python):
import itertools
import math
import fractions
import functools
s = input()
y = int(s[0]) * 1000 + int(s[1]) * 100 + int(s[2]) * 10 + int(s[3])

m = int(s[5]) * 10 + int(s[6])
d = int(s[8]) * 10 + int(s[9])

if (y == 2019 and m > 4) or y >= 2020:
    print('TBD')
else:
    print('Heisei')

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

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

Solution (Python):
a,b,c=map(int,input().split('/'))
if a<2019 or (a==2019 and (b==1 or b==2 or b==3 or b==4)):
    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 = map(int, input().split('/'))
if m <= 4:
  print('Heisei')
else:
  print('TBD')

Solution (Python):
_,b,c=map(int,input().split('/'));print("HTeBiDs e i"[b>4and c>0::2])

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

Solution (Python):
S = input()
ans = 'Heisei'
if int(S[5:7]) > 4:
    ans = 'TBD'
if int(S[8:10]) > 30:
    ans = 'TBD'
print(ans)

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

Solution (Python):


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

Solution (Python):
s = input()

ok = True
if int(s[0:4]) > 2019:
    ok = False

if int(s[0:4]) == 2019 and int(s[5:7] + s[8:]) > 430:
    ok = False

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

Solution (Python):
s = input()
year = s[:4]
month = s[5:7]
day = s[8:]
flag = False

if int(month) > 4:
    flag = True
if flag:
    print("TBD")
else:
    print("Heisei")

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

Solution (Python):
S = input()

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

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

Solution (Python):
S = ""
n = input().split("/")
for i in range(3):
    S += n[i]
if int(S) <= 20190430:
    print("Heisei")
else:
    print("TBD")

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

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

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

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

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

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


def main():
    S = input().rstrip()

    y, m, d = map(int, S.split("/"))
    if y <= 2018:
        ans = "Heisei"
    elif y == 2019:
        if m <= 3:
            ans = "Heisei"
        elif m == 4:
            if d <= 30:
                ans = "Heisei"
            else:
                ans = "TBD"
        else:
            ans = "TBD"
    else:
        ans = "TBD"

    print(ans)


if __name__ == "__main__":
    main()

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

Solution (Python):
import datetime

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

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

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

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

Solution (Python):
s = input()
yyyy, mm, dd = [int(n) for n in s.split("/")]
print("Heisei" if mm < 5 else "TBD")

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

Solution (Python):


S = input()

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

Solution (Python):


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

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

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

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

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

Solution (Python):
S = input()

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

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

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

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

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

Solution (Python):


S = str(input())

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

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

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

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

Solution (Python):
S = input()
y = S[:4]
m = S[5:7]
d = S[8:]
if y <= "2019" and m <= "04" and d <= "30":
    print("Heisei")
else:
    print("TBD")

Solution (Python):
S=input()

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

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

Solution (Python):
y,m,d=map(int,input().split('/'));print(["TBD","Heisei"][m<5])

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

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

Solution (Python):
S=input()
if S[5:7]=='01'or S[5:7]=='02' or S[5:7]=='03' or S[5:7]=='04':
  print('Heisei')
else:
  print('TBD')

Solution (Python):

def solve():

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


if __name__ == "__main__":
    solve()

Solution (Python):

s = list(input())
y = int(s[0]+s[1]+s[2]+s[3])
m = int(s[5]+s[6])
d = int(s[8]+s[9])

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

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

Solution (Python):
s=['2019/04/30']
s.append(input())
s.sort()
if s[0]=='2019/04/30':
    if s[1]=='2019/04/30':
        print('Heisei')
    else:
        print('TBD')
else:
    print('Heisei')

Solution (Python):
s=input()
seireki=int(s[0:4])
tsuki=int(s[5:7])
if seireki<=2018:
  print("Heisei")
elif seireki==2019 and tsuki<=4:
  print("Heisei")
else:
  print("TBD")

Solution (Python):
S = input()

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

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

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

Solution (Python):

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

Solution (Python):


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

Solution (Python):
moji = str(input())
if int(moji[0:4]) < 2019:
  print("Heisei")
elif int(moji[0:4]) == 2019:
  if int(moji[5:6]) == 0 and int(moji[6:7])<=4:
    print("Heisei")
  else:
    print("TBD")
else:
  print("TBD")

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

Solution (Python):

s = input()
mm = int(s[5:7])
dd = int(s[9:11])
if mm <=4:
    print("Heisei")
else:
    print("TBD")

Solution (Python):
def resolve():
    s=input()
    nen=int(s[:4])
    getu=0
    if s[5]==0:
        getu=int(s[6])
    else:
        getu=int(s[5:7])

    if nen>2019:
        print('TBD')
    elif nen==2019 and getu>=5:
        print('TBD')
    else:
        print('Heisei')
resolve()

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

Solution (Python):
s=input()

j = 0
if int(s[0:4]) < 2019:
    j=1
elif (int(s[0:4]) == 2019) and (int(s[5:7]) <= 4):
    j=1
else:
    pass

if j==1:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
Y, M ,T = input().split("/")
Y = int(Y)
M = int(M)
if Y < 2019:
    print("Heisei")
elif Y > 2019:
    print("TBD")
else:
    if M <= 4:
        print("Heisei")
    else:
        print("TBD")

Solution (Python):
import datetime

d = datetime.datetime.strptime(input(), "%Y/%m/%d")
t = datetime.datetime.strptime('2019/04/30', "%Y/%m/%d")
print('HTeBiDs e i'[d > t::2])

Solution (Python):
S=input()

if S[5:7]>'04':
    print('TBD')
else:
    print('Heisei')

Solution (Python):
def still_tdb(s):

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

if __name__ == '__main__':
    main()

Solution (Python):
s = input()

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

yup = False
if y < 2019:
  yup = True
elif y == 2019:
  if m < 4:
    yup = True
  elif m == 4:
    if d <= 30:
      yup = True
    
      
      
if not yup:print('TBD')
else : print('Heisei')

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

Solution (Python):
import time
def main():
    S = input()
    h = time.strptime("2019/04/30", "%Y/%m/%d")
    target = time.strptime(S, "%Y/%m/%d")
    if target <= h:
        print("Heisei")
    else:
        print("TBD")
if __name__ == "__main__":
    main()

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

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()
if int(s[5:7]) <=4:
  print('Heisei')
else:
  print('TBD')

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

Solution (Python):
s = input().split('/')
if int(s[0]) >= 2020:
    print('TBD')
elif int(s[0]) == 2019 and int(s[1]) >= 5:
    print('TBD')
else:
    print('Heisei')

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

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

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

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

Solution (Python):


def main():
    s = input()
    m = int(s[5:7])
    d = int(s[8:10])
    if m * 100 + d <= 430:
        print("Heisei")
    else:
        print("TBD")

if __name__ == "__main__":
    main()

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

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

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

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

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

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

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

Solution (Python):
S = input()
if int(S[5])<=0 and int(S[6])<=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()

y=int(s[0:4])
m=int(s[5:7])

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

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

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

Solution (Python):
S=list(input())
year=int(''.join(S[0:4]))
month=int(''.join(S[5:7]))
day=int(''.join(S[8:10]))
if year<2019:
    print('Heisei')
elif year==2019 and month<=4:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
s = input()
tmp = int(s[0]+s[1]+s[2]+s[3])



if tmp <= 2019 and int(s[5]+s[6]) < 5:
    if int(s[6]) < 5:
        print("Heisei")

else:
    print("TBD")

Solution (Python):
print("TBD" if eval(input().replace('/',''))>20190500 else "Heisei")

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

Solution (Python):
s = input()

m = int(s[5] + s[6])

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

else:
  print("Heisei")

Solution (Python):
from datetime import datetime

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

datetime_20190430 = datetime(2019, 4, 30)
datetime_S = datetime(S[0], S[1], S[2])

answer = 'Heisei' if datetime_S <= datetime_20190430 else 'TBD'

print(answer)

Solution (Python):

import sys

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

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

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

Solution (Python):
S = input()

year = int(S[0:4])
if (S[5] == '0'):
    month = int(S[6])
else:
    month = int(S[5:7])

if (year >= 2019 and month >= 5):
    print('TBD')
else:
    print('Heisei')

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

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

Solution (Python):
n = ["2019","04","30"]
a=list(map(str,input().split('/')))
f = 0
if a[0]<=n[0] and a[1]<=n[1] and a[2]<=n[2]:
        f=1
        print("Heisei")
if f==0:
    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):
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):
print("Heisei" if input() <= '2019/04/30' else "TBD")

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

Solution (Python):
S = input().split('/')
if int(S[0])*365+int(S[1])*30+int(S[2])<=737085:
    print('Heisei')
else:
    print('TBD')

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

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

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

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

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

else:ans="TBD"
print(ans)

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

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

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

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

if a[0]==2019:
    if a[1]==4:
        if 30>=a[2]:
            print("Heisei")
        else:
            print("TBD")
    elif 5>a[1]:
        print("Heisei")
    else:
        print("TBD")
elif 2019>=a[0]:
    print("Heisei")
else:
        print("TBD")

Solution (Python):
S = input()
def solve(S):
    if int(S[0])*1000+int(S[1])*100+int(S[2])*10+int(S[3]) > 2019:
        return 'TBD'
    if int(S[0])*1000+int(S[1])*100+int(S[2])*10+int(S[3]) < 2019:
        return 'Heisei'
    if int(S[5])*10+int(S[6]) > 4:
        return 'TBD'
    if int(S[5])*10+int(S[6]) < 4:
        return 'Heisei'
    return 'Heisei'
print(solve(S))

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

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

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

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

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

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

Solution (Python):
import math
import collections
import sys


def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def LI2(): return [int(input()) for i in range(n)]
def MXI(): return [[LI()]for i in range(n)]

s=input()
val=int(s[5:7]+s[8:10])

if val<=430:
    print("Heisei")
else:
    print("TBD")

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

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

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

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

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

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

Solution (Python):
a = input()
b =a[0]+a[1]+a[2]+a[3]+a[5]+a[6]+a[8]+a[9]
c =int(b)
if c <= 20190430:
  print('Heisei')
else:
  print('TBD')

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

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

Solution (Python):

s = list(input())

if (int(s[5])*10 + int(s[6])) <= 4 and (int(s[8])*10 + int(s[9])) <=30:
    print("Heisei")
else:
    print("TBD")

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

Solution (Python):
import numpy as np
import sys

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

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

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

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

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

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

Solution (Python):
s = input()

if int(s[5]) == 0 and int(s[6])<=4:
    ans = "Heisei"
else:
    ans = "TBD"

print(ans)

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

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

Solution (Python):
S = input()

print("Heisei" if int(S[5])*10+int(S[6]) <= 4 else "TBD" )

Solution (Python):
S = input()
print('Heisei' if S[5:7] < '04' or (S[6] == '4' and S[8:] < '31') else 'TBD')

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

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

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

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

Solution (Python):




from datetime import date









y,m,d = map(int,input().split("/"))
S = date(y,m,d)
F = date(2019,4,30)

ans = "TBD"
if S<=F:
    ans = "Heisei"

print(ans)

Solution (Python):
import sys
IS = lambda: sys.stdin.readline().rstrip()
II = lambda: int(IS)
MII = lambda: list(map(int, IS.split()))

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

if __name__ == '__main__':
    main()

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

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

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

Solution (Python):
s = 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):
import sys
input = lambda: sys.stdin.readline().rstrip()


S = input()

y = S[:4]
m = S[5:7]
d = S[8:10]

new_S = y + m + d

if int(new_S) > 20190430:
    print("TBD")
else:
    print("Heisei")

Solution (Python):
S = str(input())
s = [S[i] for i in range(len(S))]

yer = int(S[0])*1000 + int(S[1])*100 + int(S[2])*10 + int(S[3])
mon = int(S[5])*1000 + int(S[6])*100 + int(S[8])*10 +int(S[9])
if mon > 430:
    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()
if int(s[:4])<2019:
    print("Heisei")
    print("3")
elif int(s[:4])>2019:
    print("TBD")
elif int(s[5])==1 or int(s[6])>4:
    print("TBD")
else:
    print("Heisei")

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

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

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

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

Solution (Python):
from datetime import datetime

S = input()

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

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

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

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

if y < 2020:
  if m < 5:
    print("Heisei")
  else:
    print("TBD")
else:
  print("TBD")

Solution (Python):
import sys
import os

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
fl = lambda: list(map(float, sys.stdin.buffer.readline().split()))
iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
sl = lambda: list(map(str, sys.stdin.buffer.readline().decode().split()))
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

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


if __name__ == '__main__':
    main()

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

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

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

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

Solution (Python):

S = input().split("/")
ans = ""

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

Solution (Python):


import sys
import math
from bisect import bisect_right as br
from bisect import bisect_left as bl
sys.setrecursionlimit(2147483647)
from heapq import heappush, heappop,heappushpop
from collections import defaultdict
from itertools import accumulate
from collections import Counter
from collections import deque
from operator import itemgetter
from itertools import permutations
mod = 10**9 + 7
inf = float('inf')
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))

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

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

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

Solution (Python):
s = input()
import datetime
ans = '2019/04/30'
s = datetime.datetime.strptime(s, "%Y/%m/%d")
ans = datetime.datetime.strptime(ans, "%Y/%m/%d")
print('Heisei' if s<= ans else '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):
S = input()

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



Y=int(y)
M=int(m)
D=int(d)

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):
def main():
    s = input()
    year = int(s[0:4])
    month = int(s[5:7])
    day = int(s[8:10])
    if(year<=2019 and month <= 4 and day <= 30):
        print("Heisei")
    else:
        print("TBD")
if __name__ == '__main__':
    main()

Solution (Python):

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

Solution (Python):

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

Solution (Python):
a,b,c= input().split('/')
x,y,z=(int(a),int(b),int(c))
ans_list = [2019, 4, 30]
if ans_list[0] > x:
    print('Heisei')
elif ans_list[0] == 2019:
    if y >= 5:
        print('TBD')
    else:
        print('Heisei')

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

Solution (Python):
from collections import deque
from collections import Counter
from itertools import product, permutations,combinations
from operator import itemgetter
from heapq import heappop, heappush
from bisect import bisect_left, bisect_right, bisect




from fractions import gcd
from math import ceil,floor, sqrt, cos, sin, pi, factorial
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10**8)
INF = float('inf')
from datetime import datetime as dt

def main():
  s = input()
  s_time = dt.strptime(s, '%Y/%m/%d')
  dt1 = dt(2019, 4, 30)
  if s_time<=dt1:
    print('Heisei')
  else:
    print('TBD')
  
  
  
if __name__ == '__main__':
  main()

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):
S=input()
if S<="2019/04/30":
    print("Heisei")
else:
    print("TBD")

Solution (Python):
def main():
    s = input()

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

if __name__ == '__main__':
    main()

Solution (Python):
import datetime

s = input()


a = datetime.datetime.strptime(s, '%Y/%m/%d')
b = datetime.datetime(2019, 4, 30)

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

Solution (Python):
import itertools
import fractions
def main():
  a = input().split('/')
  all = int(a[0]) * 10000 + int(a[1]) * 100 + int(a[2])
  print("Heisei" if all <= 20190430 else "TBD")
if __name__ == '__main__':
  main()

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

if int(s[0:4]) <= 2019 and int(s[5:7]) <= 4 and int(s[8:10]) <= 30:
  print('Heisei')
else:
  print('TBD')

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