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



Sample input:
2019/04/30


Sample output:
Heisei

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!
ans = input().split("/")
for i in range(3):
    ans[i] =int(ans[i])

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

Submission status: Wrong Answer

Solution code:
date = input()
year = date[:4]
month = date[5:7]
if int(year) < 2019:
        print("Heisei")
elif month == "01" or "02" or "03" or "04":
        print("Heisei")
else:
        print(TBD)

Submission status: Wrong Answer

Solution code:
#coding:utf-8

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

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

Submission status: Wrong Answer

Solution code:
s = input()
li = s.split('/')
date = int(li[0])*10000 + int(li[1])*100 + int(li[2])*100
if date <= 20190430:
    print('Heisei')
else:
    print('TBD')

Submission status: Wrong Answer

Solution code:
import sys
 
v = []
for line in sys.stdin:
    v.append([i for i in line.split()])
 
m = 0
for a, b in v[1:]:
  a = float(a)
  if b == "JPY":
    m += a
  else:
    m += 380000.0 * a
print(m)

Submission status: Wrong Answer

Solution code:
a, b, c = [int(i) for i in input().split("/")]
if a == 2019 and b >= 4 and c > 30:
    print("TBD")
else:
    print("Heisei")

Submission status: Wrong Answer

Solution code:
def solver():
	a = input().rstrip('\n').split('/')
	if int(a[0]) >= 2019:
		if int(a[1]) >= 4:
			if int(a[2]) >= 30:
				print('TBD')
	else:
		print('Heisei')
solver()

Submission status: Wrong Answer

Solution code:
date = "2019/04/30"
year = date[:4]
month = date[5:7]
if int(year) < 2019:
        print("Heisei")
elif month == "01" or "02" or "03" or "04":
        print("Heisei")
else:
        print(TBD)

Submission status: Wrong Answer

Solution code:
S=input()
N,M,T=S.split("/")
N=int(N)
M=int(M)
T=int(T)
if(N<2019):
    print("Heisei")
elif(N==2019):
    if(M<=4):
        print("Heisei")
    else:
        print("TDB")
else:
    print("TDB")

Submission status: Wrong Answer

Solution code:
from datetime import datetime as dt

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

Heisei = dt.strptime("2019/04/30", '%Y/%m/%d')

if date < Heisei:
    print("Heisei")
else:
    print("TBD")

Submission status: Wrong Answer

Solution code:
#coding:utf-8

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

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

Submission status: Wrong Answer

Solution code:
def main():
    x, y, z = (int(i) for i in input().split('/'))

    if(x>2019):
        print("TBD")
        return
    elif(y>4):
        print("TBD")
        return
    elif(z>30):
        print("TBD")
        return
    else:
        print("heisei")
        return

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
from datetime import datetime

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

d1 = datetime(year=y, month=m, day=d)
d2 = datetime(year=2019, month=4, day=30)

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

Submission status: Wrong Answer

Solution code:
#A


s = input().split("/")
if (s[1] == "04" or s[1] == "4" )and s[2] == "30":
    print("Heisei")
else:
    print("TBD")

#B
"""
n = int(input())
ans = 0
for i in range(n):
    a = input().split()
    if a[1] == "JPY":
        ans += int(a[0])
    else:
        ans += int(a[0]) * 380000
print(ans)
"""

Submission status: Wrong Answer

Solution code:
import sys

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

if y < 2019:
    print("Heisei")
    sys.exit()
elif m < 5:
    print("Heisei")
    sys.exit()
elif d < 31:
    print("Heisei")
    sys.exit()
else:
    print("TBD")

Submission status: Wrong Answer

Solution code:
#coding: utf-8
y, m, d = map(int, input().split("/"))

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = list(input())

b = a[0:4]

c = a[5:7]

d = a[8:10]

su = 0
bb = 0
cc =0
dd = 0
for i in range(4):
	bb = 10*bb + int(b[i])
for i in range(2):
	cc = 10*cc + int(c[i])
for i in range(2):
	dd = 10*dd + int(d[i])


if bb == 2019:
	if cc >= 5:
		print("TBD")
	elif cc == 4:
		if dd == 30:
			print("Heisei")
	else:
		print("Heisei")
elif bb > 2019:
	print("TBD")
else:
	print("Heisei")

Submission status: Wrong Answer

Solution code:
#coding: utf-8
y, m, d = map(int, input().split("/"))

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

Submission status: Wrong Answer

Solution code:
S=input()
Stmp=S.split('/')

YY=int(Stmp[0])
MM=int(Stmp[1])
DD=int(Stmp[2])

if YY<2019:
    print('TBD')
else:
    if MM<4:
        print('TBD')
    else:
        if DD<30:
            print('TBD')
        else:
            print('Heisei')

Submission status: Wrong Answer

Solution code:
from datetime import datetime

S = input()
date = datetime.strptime(S, "%Y/%m/%d")
if date > datetime(2019, 4, 30):
  print("TDB")
else:
  print("HEISEI")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#coding: utf-8
y, m, d = map(int, input().split("/"))

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

Submission status: Wrong Answer

Solution code:
S = input()

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

print(y)
print(m)

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

Submission status: Wrong Answer

Solution code:
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("Heisai")
else:
  print("TBD")

Submission status: Wrong Answer

Solution code:
s = str(input())

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

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

Submission status: Wrong Answer

Solution code:
x, y, z = (int(i) for i in input().split('/'))

if(x>2019):
    print("TBD")
elif(y>4):
    print("TBD")
elif(z>30):
    print("TBD")
else:
    print("heisei")

Submission status: Wrong Answer

Solution code:
day = list(map(int, raw_input().split("/")))

if day[0] > 2019: print 'TBD'
elif day[0] < 2019: print 'Heisei'
elif day[1] > 4: print 'TBD'
elif day[1] < 4: print 'Heisei'
elif day[2] < 30: print 'Heisei'
else: print 'TBD'

Submission status: Wrong Answer

Solution code:
a = list(input())

b = a[0:4]

c = a[5:7]

d = a[8:10]

su = 0
bb = 0
cc =0
dd = 0
for i in range(4):
	bb = 10*bb + int(b[i])
for i in range(2):
	cc = 10*cc + int(c[i])
for i in range(2):
	dd = 10*dd + int(d[i])


if bb >= 2019:
	if cc >= 5:
		print("TBD")
	elif cc == 4:
		if dd == 30:
			print("Heisei")
	else:
		print("Heisei")

else:
	print("Heisei")

Submission status: Wrong Answer

Solution code:
s = input()
date = int(s[:4])*10000 + int(s[5:7])*100 + int(s[9:11])*100
if date <= 20190430:
    print('Heisei')
else:
    print('TBD')

Submission status: Wrong Answer

Solution code:
S = input().split("/")
tuki = S[1]
hi = S[2]
print(int(tuki))
if int(tuki)<4:
    print("Heisei")
else:
    if int(tuki)==4 and int(hi)<=30:
        print("Heisei")
    else:
        print("TBD")

Submission status: Wrong Answer

Solution code:
A,B,C=(int(i) for i in input().split("/"))
if B>4:
    print("TBD")
elif B<=4:
    print("heisei")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import datetime

if not (datetime.datetime.strptime('2019/04/30', '%Y/%m/%d') - datetime.datetime.strptime(input(), '%Y/%m/%d')):
    print('Heisei')
else:
    print('TBD')

Submission status: Wrong Answer

Solution code:
s = str(input())

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8
s = input()
s if s <='2019/04/30' else print("TBD")

Submission status: Wrong Answer

Solution code:
y, m, d = map(int, input().split("/"))
if y >= 2019:
    if m >= 5:
        print("TDB")
    elif m >= 4 and d > 30:
        print("TDB")
    else:
        print("Heisei")
else:
    print("Heisei")

Submission status: Wrong Answer

Solution code:
a = input().rstrip().split("/")
if(int(a[1]) <=4):
    print("heisei")
else:
    print("TBD")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

def main():
    arr = list(map(lambda x: int(x), input().split("/")))
    if arr[0] > 2019:
        print("TBD")
    elif arr[0] == 2019 and arr[1] > 5:
        print("TBD")
    elif arr[0] == 2019 and arr[1] == 4 and arr[2] > 30:
        print("TBD")
    else:
        print("Heisei")

main()

Submission status: Wrong Answer

Solution code:
#coding: utf-8
heisei = 0
y, m, d = map(int, input().split("/"))

if y >= 2019:
    if m >= 4:
        if d >= 30:
            heisei += 1
else:
    heisei += 1

if heisei > 0:
    print("Heisei")
else:
    print("TBD")

Submission status: Wrong Answer

Solution code:
s = input()

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


if year < 2019:
	print("Heisei")
	quit()

if year >= 2020:
	print("TBD")
	quit()

if year==2020 and month >= 5:
	print("TBD")
	quit()
else:
	print("Heisei")

Submission status: Wrong Answer

Solution code:
a, b, c = [int(i) for i in input().split("/")]
if a >= 2019:
    if b >= 4:
        if c >=30:
            print("TBD")
        else:
            print("Heisei")
    else:
        print("Heisei")
else:
    print("Heisei")

Submission status: Wrong Answer

Solution code:
S = input()
m = int(S[-5:-3])
d = int(S[-2:])

def f(m, d):
    if m > 5:
        return False
    elif m < 4:
        return True
    else:
        return d <= 30


print("Heisei" if f(m, d) else "TBD")

Submission status: Wrong Answer

Solution code:
a = input()
a = int(str.replace(a, "/", ""))
if a <= 20190430:
    print("heisei")
else:
    print("TBD")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()
b = a.split("/")
if (int(b[0]) <= 2019):
  if(int(b[1])<=4):
    print("Heisei")
else:
  print("TBD")

Submission status: Wrong Answer

Solution code:
DY,DM,DD = 2019,4,30
y,m,d = (int(x) for x in input().split("/"))

if DY<=y and DM<=m and DD<=d:
    print("Heisei")
else:
    print("TBD")

Submission status: Wrong Answer

Solution code:
a, b, c = input().split("/")

x = b+c
x = int(x)
print(x)
if x > 430:
    print("TBD")
else:
    print("Heisei")

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# -*- coding:utf-8 -*-

from datetime import datetime

def main():
  date = input().strip()
  date = datetime.strptime(date, '%Y/%m/%d')
  if date <= datetime.strptime('2019/4/30', '%Y/%m/%d'):
    print('Heisei')
  else:
    print('TDB')
  pass

if __name__=='__main__':
  main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
S1 = S[0:4]
if int(S1) < 2019:
    print("TBD")
else:
    if int(S[5]) < 5 and S[6] != "1" and S[6] != "2":
        print("TBD")
    else:
        print("Heisei")

Submission status: Wrong Answer

Solution code:
import collections

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

Submission status: Wrong Answer

Solution code:
import sys
input_lines = sys.stdin.readline()
y,m,d = input_lines.split("/")



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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
b=input()
print("TBD" if int(b[:4])>=2019 or int(b[5:7])>=5else"Heisei")

Submission status: Wrong Answer

Solution code:
def main():
    s = input()
    
    m = int(s[5]+s[6])
    d = int(s[8]+s[9])

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




if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
s = input()

if s[5] == 0:
    if s[6] > 4:
        print("TBD")
    else:
        print("Heisei")
        
print("TBD")

Submission status: Wrong Answer

Solution code:
s = str(input())
t = int(s[0:4]+s[5:7]+s[8:10])
if t > 2019430:
  print("TBD")
else:
  print("Heisei")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

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

print(month)

if year < 2019:
	print("Heisei")
	quit()

if year >= 2020:
	print("TBD")
	quit()

if year==2020 and month >= 5:
	print("TBD")
	quit()
else:
	print("Heisei")

Submission status: Wrong Answer

Solution code:
s=input()
m=s[5:7]
d=s[8:]
check=True
if int(m)>5:
    check=False
if check:
    print('Heisei')
else:
    print('TBD')

Submission status: Wrong Answer

Solution code:
#A
s = input().split("/")
if s[1] == "04" and s[2] == "30":
    print("Heisei")
else:
    print("TBD")

Submission status: Wrong Answer

Solution code:
# -*- coding utf-8 -*-

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

def main():
    arr = list(map(lambda x: int(x), input().split("/")))
    if arr[0] > 2019:
        print("TBD")
        return
    elif arr[0] == 2019 and arr[1] > 5:
        print("TBD")
    else:
        print("Heisei")

main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
S=input()
N,M,T=S.split("/")
N=int(N)
M=int(M)
T=int(T)
if(N<=2019 and M<=4 and T<=30):
    print("Heisei")
else:
    print("TDB")

Submission status: Wrong Answer

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

if y < 2019:
    print("Heisei")
elif m < 5:
    print("Heisei")
elif d < 31:
    print("Heisei")
else:
    print("TBD")

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-


def main():
  year, month, _ = map(int, input().split('/'))
  ans = 'TBF'

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

  print(ans, flush=True)


if __name__ == '__main__':
  main()

Submission status: Wrong Answer

Solution code:
s=input()

s_date = list(map(int,s.split('/')))

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

Submission status: Wrong Answer

Solution code:
s = int(input().replace('/',''))
if s > 20190420:
    print("TBD")
else:
    print("Heisei")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

v = ""
for line in sys.stdin:
    v = [int(i) for i in line.split("/")]

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
s = input()

if s[5] == 0:
    if s[6] > 4:
        print("TBD")
    else:
        print("Heisei")
        
print("Heisei")

Submission status: Wrong Answer

Solution code:
#119-A
def IL(): return list(map(int,input().split()))
def SL(): return input().split()
def I(): return int(input())
def S(): return input()
s=input().split("/")
s=s[0]+s[1]+s[2]
s=int(s)
if s<=2019430:
    print("Heisei")
else:
    print("TBD")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
print("Heisei") if s[6] == 4 else print("TBD")

Submission status: Wrong Answer

Solution code:
def getN():
    return int(input())
def getNM():
    return map(int, input().split())
def getList():
    return list(map(int, input().split()))

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

if int(s[0]) <= 2018:
    print("Heisei")
elif int(s[1]) <= 3:
    print("Heisei")
elif int(s[2]) <= 30:
    print("Heisei")
else:
    print("TBD")

Submission status: Wrong Answer

Solution code:
s = input()
t = '2019/04/30'
if s <= t:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a =input()

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

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

else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# n=int(input())
# a,b=map(int,input().split())
# l=list(map(int,input().split()))
#l=[list(map(int,input().split())) for i in range(n)]
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)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC119
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')

Submission status: Accepted

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

ans="TBD"

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
s=input()
s=int(s.replace("/",""))
print(["Heisei","TBD"][s>20190430])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
import math

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

Submission status: Accepted

Solution code:
t=20190430
s=input()

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

Submission status: Accepted

Solution code:
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")