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):
a = list(input().split("/"))
month = int(a[1])
date = int(a[2])
if month < 4:
    print("Heisei")
elif month == 4 and date <= 30:
    print("Heisei")
else:
    print("TBD")

Solution (Python):
s = input()

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

Solution (Python):
s = input()

year = int(s[:4])
mo = int(s[5:7])

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

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

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

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

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

if m < 4:
  print('Heisei')
else:
  if m == 4 and d < 31:
    print('Heisei')
  else:
    print("TBD")

Solution (Python):
a =input()

b = a[0:4]+a[5:7]+a[8:10]

if int(b) <=20190430:
    print("Heisei")

else:
    print("TBD")

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

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

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

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

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

Solution (Python):




s = input()

month = int(s[5:7])
if month < 4:
    ans = 'Heisei'
elif month == 4:
    day = int(s[8:])
    if day <= 30:
        ans = 'Heisei'
else:
    ans = 'TBD'
print(ans)

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

Solution (Python):

S = input()
if int(S[0:4]) > 2019:
    print('TBD')
    exit()
elif int(S[0:4]) == 2019:
    if int(S[5:7]) >= 5:
        print('TBD')
        exit()
print('Heisei')

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


ans="TBD"

if s[0]<=2018:
    ans="Heisei"
    
elif s[0]==2019 and s[1]<=4:
    ans="Heisei"
    
print(ans)

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

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

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

Solution (Python):
s=input()
if int(s[0:4])<2019:
    print("Heisei")
elif int(s[0:4])>2019:
    print("TBD")
else:
    if int(s[5])==1 or int(s[6])>4:
        print("TBD")
    elif int(s[6])<=4:
        print("Heisei")

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

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

Solution (Python):
S = list(input())
y = 1000*int(S[0])+100*int(S[1])+10*int(S[2])+int(S[3])
m = 10*int(S[5])+int(S[6])
d = 10*int(S[8])+int(S[9])

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

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

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

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

Solution (Python):
def mapt(fn, *args):
    return tuple(map(fn, *args))


def main():
    s = mapt(int, input().split("/"))
    print("Heisei" if s <= (2019, 4, 30) else "TBD")

main()

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

if '__main__' == __name__:
    resolve()

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

Solution (Python):
S = input()
y = int(S[:4])
m = int(S[5:7])
d = int(S[8:])
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):
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):
date = input()
list_date = date.split('/')
if int(list_date[0]) <= 2018:
    print('Heisei')
elif int(list_date[0]) <= 2019 and int(list_date[1]) <= 4:
    print('Heisei')
else:
    print('TBD')

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

Solution (Python):

s = input()
print("Heisei" if s <= "2019/04/30" else "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 sys
import math


def input():
    return sys.stdin.readline().rstrip()


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

if __name__ == "__main__":
    main()

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

Solution (Python):

y,m,d=map(int,input().split('/'))
if y < 2020 and m < 5:
    print('Heisei')
else:
    print('TBD')

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

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

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

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

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

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) and (m >= 5):
    print('TBD')
else:
    print('Heisei')

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

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

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

Solution (Python):
import bisect, collections, copy, heapq, itertools, math, string, sys
input = lambda: sys.stdin.readline().rstrip() 
sys.setrecursionlimit(10**7)
INF = float('inf')
def I(): return int(input())
def F(): return float(input())
def SS(): return input()
def LI(): return [int(x) for x in input().split()]
def LI_(): return [int(x)-1 for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LSS(): return input().split()

def resolve():
    S = SS()

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

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

if __name__ == '__main__':
    resolve()

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

Solution (Python):
a, b, c = input().split("/")
if int(a) < 2019:
    print("Heisei")
elif int(a) == 2019 and int(b) <= 4:
    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):
y,m,d = input().split('/')
if int(m) > 4:
  print("TBD")
else:
  print("Heisei")

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

Solution (Python):
S=input()
print(["Heisei","TBD"][int(S[5:7]+S[8:10])>430])

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

Solution (Python):
S = input()
if int(S[5]) == 0 and int(S[6]) < 4:
    print('Heisei')
elif int(S[6]) == 4 and int(S[-2:-1]) <= 30:
    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):
s=input()
s=int(s.replace("/",""))
print(["Heisei","TBD"][s>20190430])

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

Solution (Python):
import datetime

s=input()

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

last_date = '2019/05/01'

t_date = datetime.datetime.strptime(last_date, '%Y/%m/%d')

if s_date < t_date:
    print('Heisei')

else:
    print('TBD')

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

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

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

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

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

Solution (Python):

import math

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

Solution (Python):
t=20190430
s=input()

if int(s.replace('/', '')) > t:
    print("TBD")
else:
    print("Heisei")

Solution (Python):
s = input()

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

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

Solution (Python):
Y, M, D = input().split("/")

S = int(Y+M+D)

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

Solution (Python):
S = input().rstrip()
if int(S[:4]) >=2020:
    print("TBD")
    exit()
elif int(S[:4]) ==2019:
    if int(S[5:7]) >= 5:
        print("TBD")
        exit()
    elif int(S[5:7]) >= 4:
        if int(S[8:]) >= 31:
            print("TBD")
            exit()
print("Heisei")

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

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

Solution (Python):
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    S = readline().strip()

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

    return


if __name__ == '__main__':
    main()

Solution (Python):
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    S = readline().strip()

    y, m, d = map(int, S.split('/'))
    if m <= 4:
        print('Heisei')
    elif m > 4:
        print('TBD')

    return


if __name__ == '__main__':
    main()

Solution (Python):
def readinput():
    s=input()
    return s

def main(s):
    y=int(s[:4])
    m=int(s[5:7])
    d=int(s[9:])
    if m<=4:
        return 'Heisei'
    else:
        return 'TBD'

if __name__=='__main__':
    s=readinput()
    ans=main(s)
    print(ans)

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

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

Solution (Python):
a,b,c = map (int, input ().split ('/'))
if a > 2019:
  print ('TBD')
else:
  if b*100+c > 430:
    print ('TBD')
  else:
    print ('Heisei')

Solution (Python):
a = input()

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

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

Solution (Python):
from datetime import datetime

S = input()
heiei = datetime(2019, 4, 30)
date = datetime.strptime(S, '%Y/%m/%d')

if heiei >= date:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
s=input()

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

Solution (Python):
a = input()

if a[5:7] in ["01", "02", "03", "04"]:
    print("Heisei")
else:
    print("TBD")

Solution (Python):
import datetime

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

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

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

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

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

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

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

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

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

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

year = ''
for i in range(4):
    y = s[i]
    flag1 = True
    if y == '0':
        if len(year) == 0:
            flag1 = False
        if flag1:
            year += y
    else:
        year += y
year = int(year)

month = ''
for i in range(5, 7):
    m = s[i]
    if i == 5 and m == '0':
        continue
    else:
        month += m
month = int(month)


if year < 2019:
    answer = 'Heisei'

elif year == 2019 and month <= 4:
    answer = 'Heisei'

else:
    answer = 'TBD'

print(answer)

Solution (Python):








s = input()

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



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

Solution (Python):
import datetime


def main():
    s = datetime.datetime.strptime(input(), "%Y/%m/%d")
    if s <= datetime.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])
day = int(S[8:])

if year<=2018:
    ans = 'Heisei'
elif year == 2019:
    if month<=4:
        ans = 'Heisei'
    else:
        ans = 'TBD'
else:
    ans = 'TBD'

print(ans)

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

Solution (Python):
ss = input().split('/')
yyyy = int(ss[0])
mm = int(ss[1])
dd = int(ss[2])

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

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


if S[5] == '1':
    print('TBD')

elif S[6] == '1' or S[6] == '2' or S[6] == '3' or S[6] == '4':
    print('Heisei')

else:
    print('TBD')

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

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

Solution (Python):

def main():
    s = input().split('/')
    result = int(s[0] + s[1] + s[2])
    if result <= 20190430:
        print('Heisei') 
    else:
        print('TBD')


if __name__ == "__main__":
    main()

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

Solution (Python):
s = input()

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

Solution (Python):
import re
s = input()
a = re.search(r'\d{4}/(\d)(\d)/\d{2}', s)
if a.group(1) == '0' and (a.group(2) == '1' or a.group(2) == '2' or a.group(2) == '3' or a.group(2) == '4'):
    print('Heisei')
else:
    print('TBD')

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

Solution (Python):
import sys


stdin = sys.stdin
def ns(): return stdin.readline().rstrip()
def ni(): return int(stdin.readline().rstrip())
def nm(): return map(int, stdin.readline().split())
def nl(): return list(map(int, stdin.readline().split()))


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


if __name__ == '__main__':
    main()

Solution (Python):
import sys


stdin = sys.stdin
def ns(): return stdin.readline().rstrip()
def ni(): return int(stdin.readline().rstrip())
def nm(): return map(int, stdin.readline().split())
def nl(): return list(map(int, stdin.readline().split()))


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


if __name__ == '__main__':
    main()

Solution (Python):
S=input()
month=int(S[5:7])
day=int(S[8:10])
if (month==4 and day<=30) or month<4 :
  print("Heisei")
else :
  print("TBD")

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

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

Solution (Python):
s = input()
year = int(s[:4])
month = int(s[5:7])
date = int(s[8:10])

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

Solution (Python):
S = input()

if int(S[0:4]) <= 2018 or (int(S[0:4]) == 2019 and int(S[5:7]) < 5):
    print('Heisei')
else:
    print('TBD')

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

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

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

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

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

Solution (Python):
import re
s=input()
a=re.search('([0-9]{4})/([0-9]{2})/([0-9]{2})',s)
if int(a.group(2))>4:
    print('TBD')
else:
    print('Heisei')

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

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

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

Solution (Python):
a,b,c=map(int,input().split('/'));print(['TBD','Heisei'][a<=2019 and b<=4 and c<=30])

Solution (Python):
S = input()
month = int(S[5]) * 10 + int(S[6])
if month > 4:
    print("TBD")
else:
    print("Heisei")

Solution (Python):



S = input()
date = S[0:4]+S[5:7]+S[8:10] 

tag = 20190430

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

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

Solution (Python):
S = input()

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

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

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

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

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

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

Solution (Python):
S,T,U=map(int,input().split("/"))
if S==2019:
  if T<=4:
    print("Heisei")
  else:
    print("TBD")
elif S<2019:
  print("Heisei")
else:
  print("TBD")

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

Solution (Python):
import datetime
date_str = "2019/04/30"
date_formatted = datetime.datetime.strptime(date_str, "%Y/%m/%d")
s = input()
s = datetime.datetime.strptime(s, "%Y/%m/%d")

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

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

Solution (Python):



































def calculation(lines):
    line = lines[0]
    
    
    
    
    
    

    yyyymmdd = int(line.replace('/', ''))
    if yyyymmdd <= 20190430:
        result = 'Heisei'
    else:
        result = 'TBD'

    return [result]



def get_input_lines(lines_count):
    lines = list()
    for _ in range(lines_count):
        lines.append(input())
    return lines



def get_testdata(pattern):
    if pattern == 1:
        lines_input = ['2019/04/30']
        lines_export = ['Heisei']
    if pattern == 2:
        lines_input = ['2019/11/01']
        lines_export = ['TBD']
    return lines_input, lines_export



def get_mode():
    import sys
    args = sys.argv
    if len(args) == 1:
        mode = 0
    else:
        mode = int(args[1])
    return mode



def main():
    import time
    started = time.time()
    mode = get_mode()
    if mode == 0:
        lines_input = get_input_lines(1)
    else:
        lines_input, lines_export = get_testdata(mode)

    lines_result = calculation(lines_input)

    for line_result in lines_result:
        print(line_result)

    
    
    
    
    
    
    
    
    
    
    



if __name__ == '__main__':
    main()

Solution (Python):
s=input()

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

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

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

Solution (Python):
s = list(input().split('/'))
s = [int(ss) for ss in s]

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

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

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

if s <= [2019, 4, 30]:
    print('Heisei')
else:
    print('TBD')

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

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

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

Solution (Python):

import sys

tstr =input().strip()
from datetime import datetime as dt


tdatetime = dt.strptime(tstr, '%Y/%m/%d')
standard ="2019/4/30"
dt_standard =dt.strptime(standard, '%Y/%m/%d')
if tdatetime <= dt_standard:
    print("Heisei")
else:
    print("TBD")

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

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

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

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

Solution (Python):
S = input()
Sint = int(S[:4])*10000 + int(S[5:7])*100 + int(S[8:])
if Sint > 20190430:
    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):
date = int(input().replace('/', ''))
print('Heisei' if date <= 20190430 else 'TBD')

Solution (Python):
s = input()
m = s.split("/")[1]
d = s.split("/")[2]

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

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

def main():
    s = list(map(int, input().split('/')))
    if s[0] < 2019:
        print("Heisei")
    elif s[0] > 2019:
        print("TBD")
    else:
        if s[1] < 4:
            print("Heisei")
        elif s[1] > 4:
            print("TBD")
        else:
            if s[2] <= 30:
                print("Heisei")
            else:
                print("TBD")
        
if __name__ == '__main__':
    main()

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

Solution (Python):
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    s = input()
    m = int(s[5:7])
    if m <= 4:
        print("Heisei")
    else:
        print("TBD")


if __name__ == '__main__':
    main()

Solution (Python):






def main():
    S = input()
    m = int(S[5:7])
    
    if m <= 4:
        return "Heisei"
    else:
        return "TBD"


print(main())

Solution (Python):





def main():
    S = input()
    m = int(S[5:7])
    
    if m <= 4:
        return "Heisei"
    else:
        return "TBD"


print(main())

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

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

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

s = input()

if int(s[0:4]) <= 2019:
    if int(s[5:7]) <= 4:
        if int(s[8:]) <= 30:
            print("Heisei")
            exit()

print("TBD")

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

Solution (Python):
S = input()

year,month,day = map(int,S.split("/"))

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

Solution (Python):
import sys
def LS2():
    return list(sys.stdin.readline().rstrip())  

S = LS2()

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

Solution (Python):
s = input()

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

Solution (Python):
def main():
 s = input()
 if s[5] == '0' and ord(s[6]) <= ord('4'):
     print('Heisei')
 else:
     print('TBD')
main()

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) or Y<= 2018):
  print("Heisei")
else:
  print("TBD")

Solution (Python):
import sys
sys.setrecursionlimit(10**8)
def ii(): return int(sys.stdin.readline())
def mi(): return map(int, sys.stdin.readline().split())
def li(): return list(map(int, sys.stdin.readline().split()))
def li2(N): return [list(map(int, sys.stdin.readline().split())) for _ in range(N)]
def dp2(ini, i, j): return [[ini]*i for _ in range(j)]





S = input()

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

Solution (Python):
import datetime
a,b,c = map(int,input().split("/"))
now = datetime.datetime(a,b,c)
d = now-datetime.datetime(2019,4,30)
print("TBD" if d.days > 0 else "Heisei")

Solution (Python):
import sys, os, math, bisect, itertools, collections, heapq, queue

from decimal import Decimal
from collections import defaultdict, deque

sys.setrecursionlimit(10000000)

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)]

lcm = lambda x, y: (x * y) // math.gcd(x, y)

MOD = 10 ** 9 + 7
MAX = float('inf')

import datetime


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

    S = iss()
    s = datetime.datetime(2019, 4, 30)
    d = datetime.datetime(int(S[:4]), int(S[5:7]), int(S[8:10]))
    if d <= s:
        print('Heisei')
    else:
        print('TBD')


if __name__ == '__main__':
    main()

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

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

base = datetime(2019, 4, 30, 0, 0)
compare = datetime(S[0], S[1], S[2], 0, 0)

print('Heisei') if compare <= base else print('TBD')

Solution (Python):
import re
a=input()
b=re.fullmatch(r"(\d{4})/(\d{2})/(\d{2})",a)
if int(b.group(1))<2019:
    print("Heisei")

elif int(b.group(1))==2019:
    if int(b.group(2))<=4:
        print("Heisei")

    else:
        print("TBD")

else:
    print("TBD")

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

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

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

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

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