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):
x=input()
y=int(x[:4])
z=int(x[5:7])
zz=int(x[8:10])
zzz=z*100+zz

if y<2019:
  print("Heisei")
elif y>2019:
  print("TBD")
else:
  if zzz<=430:
    print("Heisei")
  else:
    print("TBD")

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

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:
  if m > 4:
    print ("TBD") 
  else:
    print ("Heisei")
else:
  print ("Heisei")

Solution (Python):
import datetime
s=input()

date="2019/04/30"

tdata= datetime.datetime.strptime(date, "%Y/%m/%d")
sdata= datetime.datetime.strptime(s, "%Y/%m/%d")

if sdata<=tdata :
    print("Heisei")
else:
    print("TBD")

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

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

Solution (Python):


import numpy as np
import string
s = input()
s = list(map(int,s.split("/")))

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

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

Solution (Python):
import sys

y, m, d = map(int, sys.stdin.readline().split("/"))
if (y == 2019 and m <= 4) or y < 2019:
    print('Heisei')
else:
    print('TBD')

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

Solution (Python):

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

Solution (Python):
S = input()
y, m, d = map(int, S.split('/'))
last_heisei = 365*2019 + 31*4 + 30

if 365*y + 31*m + d > last_heisei:
  print("TBD")
else:
  print("Heisei")

Solution (Python):
import re
S = input()
y, m, d = map(int, re.sub("/", " ", S).split())
ans = "Heisei"
if y > 2019:
  ans = "TBD"
elif y == 2019:
  if m > 4:
    ans = "TBD"
  elif m == 4:
    if d > 30:
      abs = "TBD"
print(ans)

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

month = int(day[1])

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

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

n = int(S[0:4]+S[5:7]+S[8:10])
if n <= 20190430:
    ans = 'Heisei'
else:
    ans = 'TBD'
print(ans)

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

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

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

Solution (Python):
L = list(input().split('/'))
v = int(L[0] + L[1] + L[2])
if v <= 20190430:
    print("Heisei")
else:
    print("TBD")

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

Solution (Python):
s=[int(x) for x in input().split("/")]
if(s[0]<=2018 or (s[0] == 2019 and s[1]<=4)):
        print("Heisei")
else:
        print("TBD")

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

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

Solution (Python):
s = input().strip()
y, m, d = int(s[:4]), int(s[5:7]), int(s[8:])
if y >= 2019 and m >= 5:
  print('TBD')
else:
  print('Heisei')

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

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

Solution (Python):
S = input()

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

Solution (Python):


S = str(input())

List = list(S.split('/'))

num = '0'
for i in range(len(List)):
    num += List[i]
num = int(num)

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

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

Solution (Python):
a=input();print('Heisei' if int(a[5:7]+a[8:])<500 else'TBD')

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

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

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

Solution (Python):
import datetime
 
t = datetime.datetime.strptime(input(), "%Y/%m/%d")
if t < datetime.datetime(year=2019, month=5, day=1):
    print("Heisei")
else:
    print("TBD")

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

Solution (Python):
s = input()

if int(s[5]) == 1:
    print("TBD")
    exit()

if int(s[6]) > 4:
    print("TBD")
else:
    print("Heisei")

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

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

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

Solution (Python):
from datetime import datetime

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

Solution (Python):
s = input()

intli = [int(i) for i in s.split("/")]
if intli[1] > 4:
    print("TBD")
else:
    print("Heisei")

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

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

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

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

Solution (Python):
import re, datetime
pattern = r"(\d{4})/(\d{2})/(\d{2})"
res = re.search(pattern, input())
day = [int(i) for i in res.groups()]
default = datetime.datetime(year=2019, month=4, day=30)
time = datetime.datetime(year=day[0], month=day[1], day=day[2])
print("TBD" if default.timestamp() < time.timestamp() else "Heisei")

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

year = int(''.join(s[:4]))
month = int(''.join(s[5:7]))
day = int(''.join(s[8:10]))



if year < 2019 or (year == 2019 and month <= 4):
    print('Heisei')

else:
    print('TBD')

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

Solution (Python):



def main():
    from datetime import datetime

    s = input()

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


if __name__ == '__main__':
    main()

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):
S = list(map(int, input().split('/')))

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

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

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

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

Solution (Python):
import sys

def main():
  input = sys.stdin.readline
  y, m, d = map(int, input().split('/'))

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


if __name__ == '__main__':
  main()

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):
S = input()

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

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

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

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

ans = "TBD"
if y <= 2019 and m <= 4 and d <= 30:
    ans = "Heisei"

print(ans)

Solution (Python):
import sys
S=input()
yy, mm, dd = S.split('/')
if int(yy) > 2019 or (int(yy) == 2019 and int(mm) >= 5):
  print('TBD')
else:
  print('Heisei')

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

Solution (Python):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**10
mod = 10**9+7
dd = [(-1,0),(0,1),(1,0),(0,-1)]
ddn = [(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
def pf(s): return print(s, flush=True)


def main():
    s = S()
    if s > '2019/04/30':
        return 'TBD'

    return 'Heisei'



print(main())

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

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

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

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

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

Solution (Python):
year,month,day=( int(x) for x in input().split('/') )

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

else:
    print("TBD")

Solution (Python):
year, month, date = map(int, input().split('/'))
if year <= 2019 and month <= 4:
    print('Heisei')
else:
    print('TBD')

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

Solution (Python):



import sys  
import os
import time
import re
from pydoc import help
import string
import math
from operator import itemgetter
from collections import Counter
from collections import deque
from collections import defaultdict as dd
import fractions
from heapq import heappop, heappush, heapify
import array
from bisect import bisect_left, bisect_right, insort_left, insort_right
from copy import deepcopy as dcopy
import itertools



sys.setrecursionlimit(10**7)
INF = 10**20
GOSA = 1.0 / 10**10
MOD = 10**9+7
ALPHABETS = [chr(i) for i in range(ord('a'), ord('z')+1)]  
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def DP(N, M, first): return [[first] * M for n in range(N)]
def DP3(N, M, L, first): return [[[first] * L for n in range(M)] for _ in range(N)]
from inspect import currentframe
def dump(*args):
    names = {id(v):k for k,v in currentframe().f_back.f_locals.items()}
    print(', '.join(names.get(id(arg),'???')+' => '+repr(arg) for arg in args), file=sys.stderr)


def local_input():
    from pcm.utils import set_stdin
    import sys
    from pathlib import Path
    parentdir = Path(os.path.dirname(__file__)).parent
    inputfile = parentdir.joinpath('test/sample-1.in')
    if len(sys.argv) == 1:
        set_stdin(inputfile)


def solve():
    s = input()
    yyyy = int(s[:4])
    mm = int(s[5:7])
    
    if (yyyy>=2019 and mm>=5):
        print("TBD")
    else:
        print("Heisei")
    return 0

if __name__ == "__main__":
    try:
        local_input()
    except:
        pass
    solve()

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

Solution (Python):
year,month,day = input().split('/')
year = int(year)
month = int(month)
dau = int(day)

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

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

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

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

Solution (Python):
S = input().split("/")
N = S[0] + S[1] + S[2]
if int(N) <= 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")
    else:
        print("TBD")
else:
    print("TBD")

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

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

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

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

if y <=2018:
    print("Heisei")
elif y >=2020:
    print("TBD")
elif m<=3:
    print("Heisei")
elif m>=5:
    print("TBD")
else:
    if d<=30:
        print("Heisei")
    else:
        print("TBD")

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

Solution (Python):
from datetime import datetime

inputLine = input()

transDatatime = datetime.strptime(inputLine, '%Y/%m/%d')

baseDatatime = datetime(2019, 4, 30)

if transDatatime <= baseDatatime:
  print("Heisei")
else:
  print("TBD")

Solution (Python):
import datetime

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

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

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

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

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

Solution (Python):


from collections import deque
import itertools as it
import sys
import math

sys.setrecursionlimit(1000000)

INF = 10 ** 18

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

d1 = y * 100000 + m * 1000 + d
d2 = 2019 * 100000 + 4 * 1000 + 30

print 'Heisei' if d1 <= d2 else 'TBD'

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

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

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

Solution (Python):
yyyy, mm, dd = input().split('/')





if int(yyyy) >= 2020:
    print('TED')
elif int(yyyy) <= 2018:
    print('Heisei')
else:
    if int(mm) >= 5:
        print('TBD')
    else:
        print('Heisei')

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

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

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

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

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

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

Solution (Python):
import datetime

s = input()
year, month, day = map(int, s.split('/'))
d = datetime.date(year, month, day)
if d <= datetime.date(2019, 4, 30):
    print('Heisei')
else:
    print('TBD')

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

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

A = None

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

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

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

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

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

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

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

Solution (Python):


s=raw_input()
ss=s[5:7]
if int(ss)>4:
 print 'TBD'
else:
 print 'Heisei'

Solution (Python):
def solve(s):
    return "Heisei" if (s <= "2019/04/30") else "TBD"
assert solve("2019/04/30") == "Heisei"
assert solve("2019/11/01") == "TBD"
print(solve(input()))

Solution (Python):
from datetime import date
y,m,d=map(int,input().split('/'))
f=date(y,m,d)>=date(2019,5,1)
print('TBD' if f else 'Heisei')

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

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

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

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

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

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

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

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

Solution (Python):
s = input()

splited = s.split("/")

if int(splited[0]) > 2019:
    print("TBD")
elif int(splited[1]) > 4:
    print("TBD")
elif int(splited[2]) > 30:
    print("TBD")
else:
    print("Heisei")

Solution (Python):
d = str(input())
y = int(d[0:4])
m = int(d[5:7])
d = int(d[8:])
if y <= 2018:
    print("Heisei")
    exit()
else:
    if y == 2019 and m <= 4 and d <= 30:
        print("Heisei")
        exit()
print("TBD")

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

Solution (Python):
S = input()

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

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

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

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

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

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

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

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

Solution (Python):
s = int(input().replace("/",""))
if s<= 20190430:
  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):
s = input()
print("Heisei" if s <= "2019/04/30" else "TBD")

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

Solution (Python):
print(["Heisei","TBD"][input().split("/")[1]>"04"])

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

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


def heisei(y, m, d):
    if int(y) < 2019:
        return 'Heisei'
    elif int(y) > 2019:
        return 'TBD'
    elif int(y) == 2019:
        if int(m) > 4:
            return 'TBD'
        elif int(m) < 4:
            return 'Heisei'
        elif int(m) == 4:
            if int(d) == 30:
                return 'Heisei'
            elif int(d) > 30:
                return 'TBD'
            else:
                return 'Heisei'


print(heisei(y, m, d))

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

Solution (Python):
S = input()
if S <= '2019/04/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 int(m) <= 4:
    print('Heisei')
else:
    print('TBD')

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

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

Solution (Python):
S = input()

Y = S[:4]
M = S[5:7]
D = S[-2:]

if int(M) >= 5:
    print('TBD')
elif int(M) <= 4:
    print('Heisei')

Solution (Python):
S = input()

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

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

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

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

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

Solution (Python):
import datetime 
  

date_entry = input()
year, month, day = map(int, date_entry.split('/'))

d1 = datetime.datetime(year, month, day) 
d2 = datetime.datetime(2019, 4, 30) 
  



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

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

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

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

Solution (Python):
import sys

if __name__ == '__main__':
    a = input()
    a = a.split('/')
    year = int(a[0])
    month = int(a[1])
    date = int(a[2])
    if year > 2019:
        print('TBD')
    elif year < 2019:
        print('Heisei')
    elif month < 4:
        print('Heisei')
    elif month > 4:
        print('TBD')
    elif date <= 30:
        print('Heisei')
    else:
        print('TBD')

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

Solution (Python):
print('TBD'*(input()[5:7]>'04')or'Heisei')

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

if num1[0] <= 2018:
    print("Heisei")

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

Solution (Python):
import datetime


S = input()

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

if datetime.date(year, month, day) <= datetime.date(2019, 4, 30):
  print('Heisei')
else:
  print('TBD')

Solution (Python):
S = input()

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

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

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



if a[0]== 2019 and a[1]<5:
    print("Heisei")
elif a[0]<2019 and a[1]< 12:
    print("Heisei")
else:
    print("TBD")

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

Solution (Python):
S = input()

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

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

Solution (Python):
s=input()
a="2"
if int(s[0])!=2:
        ans="TBD"
else:
        for i in range(1,4):
                a=a+s[i]
        for j in range(5,7):
                a=a+s[j]
        for l in range(8,10):
                a=a+s[l]
        if 20190430>=int(a):
                ans="Heisei"
        else:
                ans="TBD"
print(ans)

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

Solution (Python):
def A():
    year, month, day = (int(x) for x in input().split('/'))
    if year <= 2018:
        print("Heisei")
    elif year <=2019 and month <= 4 and day <= 30:
        print("Heisei")
    else:
        print("TBD")
    return 0

if __name__== '__main__':
    A()

Solution (Python):
S=list(input())
a=int(S[0]+S[1]+S[2]+S[3])
b=int(S[5]+S[6])
if a<=2019 and b<=4:
    print("Heisei")
else:
    print("TBD")

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

Solution (Python):
S = input()
Year = S[0:4]
Month = S[5:7]
Day = S[8:10]

if int(Year) <= 2018:
    print('Heisei')
elif (int(Year) == 2019) and (int(Month) <=4):
    print('Heisei')
else:
    print('TBD')

Solution (Python):
input_date = input()
date_array = input_date.split('/')

year = int(date_array[0])
month = int(date_array[1])
day = int(date_array[2])

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

Solution (Python):
s = list(map(int, input().split("/")))
flag = True
if s[0] == 2019:
    if s[1] >= 5:
        flag = False
elif s[0] > 2019:
    flag = False
if flag:
    print("Heisei")
else:
    print("TBD")

Solution (Python):
S = input()

yyyy = int(S[:4])
mm = int(S[5:7])
dd = int(S[8:10])

if yyyy < 2019:
    print('Heisei')
elif yyyy == 2019:
    if mm <= 4:
        print('Heisei')
    else:
        print('TBD')
else:
    print('TBD')

Solution (Python):
import datetime

date = datetime.datetime.strptime(raw_input(),'%Y/%m/%d')
cri_date = datetime.datetime(2019,4,30)

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

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


if m=='01'or m=='02' or m=='03' or m=='04':
    print('Heisei')
else:
    print('TBD')

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

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

if y <= 2018:
  print('Heisei')
  exit()
elif m <= 4:
  print('Heisei')
  exit()
print('TBD')

Solution (Python):
S = input()
s = S.split('/')
ss = int(s[1])
res = 'aaa'

if ss<=4:
	res = "Heisei"

if ss >=5:
	res = "TBD"
print(res)

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

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

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

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


if int(a) > 20190430:
    print('TBD')
else:
    print('Heisei')

Solution (Python):
S = input()

A = S.split('/')

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

Solution (Python):
SEIREKI = '2019/04/30'

inputData = input()
ans = ""
if inputData <= SEIREKI:
    ans = 'Heisei'
else:
    ans = 'TBD'
print(ans)

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

Solution (Python):
import sys
from datetime import datetime

def main():
    line = sys.stdin.readline().strip()
    today = datetime.strptime(line, "%Y/%m/%d")
    TBD = datetime(2019, 5, 1)
    if today < TBD:
        print("Heisei")
    else:
        print("TBD")

if __name__ == "__main__":
    main()

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

Solution (Python):




def solveProblem(HeiseiOrTBD):
	if(HeiseiOrTBD <= "2019/04/30"):
		answer="Heisei"
	else:
		answer="TBD"
	return answer


if __name__ == '__main__':
	S = str(input().strip())
	solution = solveProblem(S)
	print("{}".format(solution))

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

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

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

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

Solution (Python):
s = [int(x) for x in input().split("/")]
f = (s[0] < 2019) or (s[0] == 2019 and s[1] <= 4)
if f:
  print("Heisei")
else:
  print("TBD")

Solution (Python):
s = input()
sp = s.split('/')

year = 2019 - int(sp[0])
month =int(sp[1]) -4
day = 30 - int(sp[2])

if year == 0 and month == 0 and day == 0:
  print("Heisei")
else:
  if year >= 0:
    if month > 0:
      print("TBD")
    else:
      print("Heisei")
  else:
    print("Heisei")

Solution (Python):

import sys
from datetime import date



def solve(lines):
    y,m,d = map(int, lines.pop(0).split('/'))
    d = date(y,m,d)
    heisei_end = date(2019,4,30)
    if heisei_end >= d:
        print('Heisei')
    else:
        print('TBD')





lines = [x.strip() for x in sys.stdin.readlines()]




solve(lines)

Solution (Python):
import datetime
time = input()
time_object = datetime.datetime.strptime(time, '%Y/%m/%d')
timestamp = int(time_object.timestamp())
print('TBD' if timestamp > 1556550000 else 'Heisei')

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