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: Accepted

Solution code:
import sys
sys.setrecursionlimit(5 * 10**5)
input = sys.stdin.readline

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#2019/09/25
S = input()
S_num = int(S[0:4] + S[5:7] + S[8:])
last_heisei = 20190430

print("Heisei" if(S_num - last_heisei) <= 0 else "TBD" )

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

if m.startswith("0"):
  m = m[1]

if d.startswith("0"):
  d = d[1]

m = int(m)
d = int(d)

ans = None

if m >= 5:
  ans = "TBD"
else:
  ans = "Heisei"

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

s = s[:4] + s[5:7] + s[8:]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
d=int(input().replace("/",""))
print("Heisei" if 20190430 - d >= 0 else "TBD")

Submission status: Accepted

Solution code:
import datetime


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


ref = "2019/04/30"
ref_date = datetime.datetime.strptime(ref, '%Y/%m/%d')

if s_date <= ref_date:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from datetime import datetime

S = datetime.strptime(input(), "%Y/%m/%d")
target = datetime(2019, 4, 30)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()
T=int(S[0]+S[1]+S[2]+S[3]+S[5]+S[6]+S[8]+S[9])

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

Submission status: Accepted

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

if a >= 2019 and b > 4:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split('/'))

if a >=2019 and b >4:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input().split("/")

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

Submission status: Accepted

Solution code:
from datetime import datetime as dt
a = dt.strptime(input(), '%Y/%m/%d')
b = dt.strptime('2019/04/30', '%Y/%m/%d')
print('Heisei' if (a-b).days <= 0 else 'TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime

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

if target >= s:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#18:49
n = int(input()[5:7])
if n < 5:
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

Solution code:
yyyy, mm, dd = map(int, input().split("/"))
print('Heisei' if yyyy <= 2019 and mm <= 4 and dd <= 30 else 'TBD')

Submission status: Accepted

Solution code:
S=str(input())
month=10*int(S[5])+int(S[6])
day=10*int(S[8])+int(S[9])

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

Submission status: Accepted

Solution code:
year, month, day = map(str, input().split('/'))

num = int(year + month + day)

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

Submission status: Accepted

Solution code:
s = list(input().split("/"))
if s[1] == "01" or s[1] == "02" or s[1] == "03" or s[1] == "04":
  print("Heisei")
else :
  print("TBD")

Submission status: Accepted

Solution code:
A,B,C = map(str,input().split("/"))
if int(A) <= 2018:
  print("Heisei")
elif int(A) == 2019 and int(B) <=4 and int(C)<=30:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
b = 0
s = input()
if int(s[:4]) < 2019:
    b = 1
elif int(s[:4]) == 2019:
    if int(s[5:7]) < 4:
        b = 1
    elif int(s[5:7]) == 4:
        if int(s[9:11]) <=30:
            b = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = list(map(int,input().split("/")))
m = S[1]
d = S[2]
if m<=4:
    print("Heisei")
elif m>=5:
    print("TBD")

Submission status: Accepted

Solution code:
s = input()

if int(s[5])>0 or int(s[6])>4:
  print('TBD')
else:
  print('Heisei')

Submission status: Accepted

Solution code:
import datetime

s = input()

print ("TBD") if (datetime.datetime.strptime(s, "%Y/%m/%d")) > (datetime.datetime(2019, 4, 30)) else print ("Heisei")

Submission status: Accepted

Solution code:
Y,M,D = [int(x) for x in input().split("/")]
if Y==2019:
    print("Heisei" if M<5 else "TBD")
elif Y<2019:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    
S=input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
month = int(s[5:7])
print("Heisei" if month < 5 else "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()
if int(s[5]+s[6])>=5:
  print('TBD')
else:
  print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

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

if int(a) < 2019:
    print('Heisei')
elif int(b) > 4:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
S = input()
S2 = int(S.replace('/', ''))
if S2 <= 20190430:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print ('Heisei' if S <= 20190430 else '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:
#!/usr/bin/env python
S = input().split()[0]
s = ''.join(S.split('/'))

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
mm = int(S[5:7])
dd = int(S[8:10])
if mm>4:
  print("TBD")
elif mm<=4:
  print("Heisei")

Submission status: Accepted

Solution code:
List=list(input())
ylist=List[:4]
mlist=List[5:7]
dlist=List[8:]
y=int("".join(ylist))
m=int("".join(mlist))
d=int("".join(dlist))
if m<=3:
  print("Heisei")
elif m==4 and d<=30:
  print("Heisei")
else:print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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().replace("/","")
print("Heisei" if S <= "20190430" else "TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
T = [c for c in S]
if int(T[0]) * 1000 + int(T[1]) * 100 + int(T[2]) * 10 + int(T[3]) <= 2018 or  (int(T[0]) * 1000 + int(T[1]) * 100 + int(T[2]) * 10 + int(T[3]) == 2019 and int(T[5]) * 1000 + int(T[6]) * 100 + int(T[8]) * 10 + int(T[9]) <= 430 ):
  print('Heisei')
  exit()
print('TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
S_list = S.split("/", 2)
if int(S_list[0]) > 2019:
    ans = "TBD"
elif int(S_list[1]) > 4:
    ans = "TBD"
else:
    ans = "Heisei"
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from datetime import datetime

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

if sDate <= heiseiDate:
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

Solution code:
s=input()
s=s.split("/")
m=int(s[1])
d=int(s[2])
if m >= 5:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
S = input()

year = int(S[:4])
month = int(S[5:7])
day = int(S[-2:])

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

Submission status: Accepted

Solution code:
from datetime import datetime

s=list(input().split())
''.join(s)
day=s[0]
dt = datetime.strptime(day, '%Y/%m/%d')
main_dt = datetime(2019, 4, 30)
if dt <= main_dt:
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

Solution code:
yyyy,mm,dd=map(int,input().split("/"))
ymd=yyyy*10000+mm*100+dd
if ymd >20190430:
  print("TBD")
else:
  print("Heisei")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def MAP(): return list(map(int,input().split("/")))

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

Submission status: Accepted

Solution code:
import sys
input=sys.stdin.readline

def main():
    S = input().strip()
    y = int(S[:4])
    m = int(S[5:7])
    if y == 2019 and m >= 5:
        print("TBD")
    else:
        print("Heisei")

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = list(input())
a = int(S[5]+S[6])

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

Submission status: Accepted

Solution code:
S = list(input())
a = int(S[5]+S[6])
b = int(S[8]+S[9])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime

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

Submission status: Accepted

Solution code:
print(['TBD','Heisei'][input()[5:7]<'05'])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split('/'))
if b <= 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:
a,b,c = map(int, input().split('/'))

if a < 2019:
  print('Heisei')
elif a == 2019:
  if b <= 4:
    print('Heisei')
  else:
    print('TBD')
else:
  print('TBD')

Submission status: Accepted

Solution code:
n = input()

M = int(n[5:7])
if M >= 5:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

Solution code:
a,b,c  = map(int,input().split('/'))
if b <= 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 = input()
y = int(s[0]+s[1]+s[2]+s[3])
m = int(s[5]+s[6])
if y >= 2019 and m >= 5:
  print("TBD")
else:
  print("Heisei")

Submission status: Accepted

Solution code:
s = list(input().split('/'))
if s[0] < '2019':
  print('TBD')
elif s[0] == '2019':
  if s[1] > '04':
    print('TBD')
  else:
    print('Heisei')
else:
  print('Heisei')

Submission status: Accepted

Solution code:
a = input()
if a<="2019/04/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:
year,month,day = map(int, input().split('/'))
if year >= 2019:
  if month >= 5:
    print('TBD')
  else:
    print('Heisei')
else:
  print('Heisei')

Submission status: Accepted

Solution code:
import datetime
y,m,d = map(int, input().split('/'))
d_in = datetime.date(y,m,d)
d_border = datetime.date(2019,4,30)
print('TBD' if d_in > d_border else 'Heisei')

Submission status: Accepted

Solution code:
ymd = int(input().replace("/", ""))

if ymd <= 20190430:
    ans = "Heisei"
else:
    ans = "TBD"

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
num = int("1" + S[:4] + S[5:7] + S[8:10])
if num >120190430:
    print("TBD")
else: print("Heisei")

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
from datetime import datetime
s = input()
inputDate = datetime.strptime(s,'%Y/%m/%d')
heiseiDate = datetime.strptime('20190430','%Y%m%d')

if inputDate > heiseiDate:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

Solution code:
s = input()


def solve(s):
    y, m, d = map(int, s.split("/"))
    if y < 2019:
        return "Heisei"
    if m < 5:
        return "Heisei"
    return "TBD"


print(solve(s))

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:
s=input().split("/")
m="".join(s)
if int(m)<=20190430:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
A = []
tmp = ""
for i in S:
    if i == "/":
        A.append(int(tmp))
        tmp = ""
    else:
        tmp += i

A.append(int(tmp))
m = A[1]
d = A[2]

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

Submission status: Accepted

Solution code:
source = input().split('/')
year, month, day = int(source[0]), int(source[1]), int(source[2])
if year < 2019:
    print('Heisei')
elif year == 2019:
    if month < 4:
        print('Heisei')
    elif month == 4:
        if day <= 30:
            print('Heisei')
    else:
        print('TBD')
else:
    print('TBD')

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline


S = input().split()
S = list(S[0].split("/"))
Flag = False
if int(S[0]) < 2019:
    Flag = True
elif int(S[1]) <= 4:
    Flag = True
if Flag:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input().split('/')
S_to_int = [int(n) for n in S]
if S_to_int[0]==2019:
  if S_to_int[1]>=5:
    print('TBD')
  if S_to_int[1]==4 and S_to_int[2]<=30:
    print('Heisei')
  if S_to_int[1]<=3:
    print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()
m=int(S[5]+S[6])
if m <= 4:
  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:
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

Solution code:
def main():
    S = list(input().split('/'))

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

    

main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7

S = input()
S = int("".join(S.split("/")))

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

Submission status: Accepted

Solution code:
from datetime import datetime
S = input()

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

if d <= d_kijun:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from datetime import datetime as dt

a = dt.strptime(str(input()), "%Y/%m/%d")

if a <= dt.strptime('2019/04/30', "%Y/%m/%d"):
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

Solution code:
s=list(input())
a=int(s[5])*10+int(s[6])
if(a<5):
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
d = int(s[:4] + s[5:7] + s[8:10])
if d <= 20190430:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime

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

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

Submission status: Accepted

Solution code:
_, M, _ = map(int, input().split("/"))
print("TBD") if 5 <= M else print("Heisei")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8
s = input()
#print(s[5:7])

#年は2019年固定なので、月だけ抜いて5以上ならTBD
if int(s[5:7])  >= 5:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
s = s.split("/")
s[0]=int(s[0])
s[1]=int(s[1])
s[2]=int(s[2])
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')

Submission status: Accepted

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

if __name__ == '__main__':
    print(main())

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime


def main():
    print("TBD" if datetime.datetime.strptime(input(), '%Y/%m/%d') >
          datetime.datetime.strptime("20190430", '%Y%m%d') else "Heisei")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
s = str(input())
datetime = s.split('/')
if int(datetime[0]) >= 2019 and int(datetime[1]) >= 5 and int(datetime[2]) >= 1:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=str(input())
if (int(S[0:4])==2019 and int(S[5:7])>=5) or int(S[0:4])>=2020:
  print('TBD')
else:
  print('Heisei')

Submission status: Accepted

Solution code:
l = str(input()).split('/')
if int(l[0]) < 2019:
    print('Heisei')
elif int(l[0]) == 2019:
    if int(l[1]) < 4:
        print('Heisei')
    elif int(l[1]) == 4 and int(l[2]) <=30:
        print('Heisei')
    else:
        print('TBD')
else:
    print('TBD')

Submission status: Accepted

Solution code:
ans = "TBD"
S = list(map(int, input().split("/")))
if S[1] <= 4:
    ans = "Heisei"
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()

if int(s[6]) >= 5 or int(s[5:7:1]) >=10:
    if int(s[0:4:1]) >= 2019:
        print('TBD')
else:
    print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ymd=list(map(int,input().split("/")))
print("Heisei" if ymd<=[2019,4,30] else "TBD")

Submission status: Accepted

Solution code:
yyyy, mm, dd = map(int, input().split("/"))
if yyyy < 2019:
  print("Heisei")
elif yyyy > 2019:
  print("TBD")
else:
  if mm < 5:
    print("Heisei")
  else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

yyyy, mm, dd = S.split('/')
yyyy = int(yyyy)
mm = int(mm)
dd = int(dd)

if yyyy > 2019:
  print('TBD')

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

Submission status: Accepted

Solution code:
s = input()
d = s.split('/')
if int(d[0]) >= 2019 and int(d[1]) > 4 and int(d[2]) >= 1:
    print('TBD')
else:
    print('Heisei')