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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if s[0] >= 2019:
    if s[1] > 4:
        print('TDB')
    else:
        print('Heisei')
else:
    print('Heisei')

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
S = input()
M = int(S[6])
if M > 4 :
    print("TBD")
elif M == 4 :
    D = int(S[8:9])
    if D < 30 :
        print("Heisei")
    else :
        print("TBD")
else :
    print("TBD")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
s = input()
s1 = [s[0], s[1], s[2], s[3]]
s2 = [s[5], s[6]]

t1 = int(''.join(s1))
t2 = int(''.join(s2))

if t1 > 2019:
    print('TBD')

elif t1 == 2018 and t2 > 4:
    print('TBD')

else:
    print('Heisei')

Submission status: Wrong Answer

Solution code:
s = list(input())
k = [s[0], s[1], s[2], s[3]]
l = [s[5], s[6]]
a = int(''.join(k))
b = int(''.join(l))

if a > 2019:
    print('TBD')

elif a == 2018 and b > 4:
    print('TBD')

else:
    print('Heisei')

Submission status: Wrong Answer

Solution code:
import datetime

tbd_dt =str("2019/04/30")
S = str(input())
ans = "TBD"
S = datetime.datetime.strptime(S, '%Y/%M/%d')
tbd_dt=datetime.datetime.strptime(tbd_dt, '%Y/%M/%d')

if S <= tbd_dt:
    ans="Heisei"
print(ans)

Submission status: Wrong Answer

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

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

if int(a[6])<=4:
  print("Heisei")
else:
  print("TBD")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=input()
b=a.split("/")
if int(b[1])>5:
    print("TBD")
else:
    print("Heisei")

Submission status: Wrong Answer

Solution code:
s = input()
rei = "2019/04/30"
if int(rei[5:7]) < int(s[5:7]):
	print("TBD")
else:
    print("TBD")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = "2019/04/30"
y=int(S[0:4]+S[5:7]+S[8:10])

if y > 20190430:
    print("TBD")
else:
    print("Heisei")

Submission status: Wrong Answer

Solution code:
S = "2019/04/30"
y=int(S[0:4]+S[5:7]+S[8:10])

if y >= 20190430:
    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: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
list1 = input()

yy = int(list1[:4])
mm = int(list1[5:7])
dd = int(list1[8:])

if yy >= 2019:
    if yy == 2019 and mm <= 4:
        print("heisei")
        exit()
    print("TBD")
    exit()
print("Heisei")

Submission status: Wrong Answer

Solution code:
#Still TBD
S = input()
if S[6:8] == "01" or S[6:8] == "02" or S[6:8] == "03" or S[6:8] == "04":
    print("Heisei")
else:
    print("TBD")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = str(input("日付入力:"))
li = s.split("/")

if 2018 >= int(li[0]):
    print("Heisei")
elif 2020 <= int(li[0]):
    print("TBD")
else:
    if 4 < int(li[1]):
        print("TBD")
    else:
        print("Heisei")

Submission status: Wrong Answer

Solution code:
S = list(input())
S.pop(4)
S.pop(6)
H = [2, 0, 1, 9, 0, 4, 3, 0]
for i in range(len(S)):
  S[i] = int(S[i])

for i in range(len(S)):
  if S[i] - H[i] < 0:
    print('TBD')
    break
  if i == len(S) - 1:
    print('Heisei')

Submission status: Wrong Answer

Solution code:
S=input()

YYYY=int(S[0:4])
MM=int(S[5:7])
DD=int(S[8:10])

ans='TBD'

if YYYY > 2020 or (2019 and MM >= 4 and DD>=30):
    ans='Heisei'

print(ans)

Submission status: Wrong Answer

Solution code:
S=input()

YYYY=int(S[0:4])
MM=int(S[5:7])
DD=int(S[8:10])

ans='TBD'

if YYYY >= 2019 and MM >= 4 and DD>=30:
    ans='Heisei'

print(ans)

Submission status: Wrong Answer

Solution code:
S=input().split('/')
for n in range(3):
    S[n]=int(S[n])
print(S)
if S[0]>=2020 or (S[0]==2019 and S[1]>=5):
    print('TBD')
else:
    print('Heisei')

Submission status: Wrong Answer

Solution code:
S=input().split('/')
for n in range(3):
    S[n]=int(S[n])
if S[0]>=2020:
    print('TDB')
elif S[0]==2019 and S[1]>=5:
    print('TDB')
else:
    print('Heisei')

Submission status: Wrong Answer

Solution code:
S=input().split('/')
for n in range(3):
    S[n]=int(S[n])
if S[0]>=2020 or (S[0]==2019 and S[1]>=5):
    print('TDB')
else:
    print('Heisei')

Submission status: Wrong Answer

Solution code:
S=input().split('/')
for n in range(3):
    S[n]=int(S[n])
print(S)
if S[0]>=2020 or (S[0]==2019 and S[1]>=5):
    print('TDB')
else:
    print('Heisei')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
before = ("Heisei")
after = ("TBD")
if s[6] == "1":
    print(before)
elif s[6] == "2":
    print(before)
elif s[6] == "3":
    print(before)
elif s[6] == "4":
    print(before)
else:
    print(after)

Submission status: Wrong Answer

Solution code:
s = input()
before = ("Heisei")
after = ("TBD")
if s[7] == 1 or s[7] == 2 or s[7] == 3 or s[7] == 4:
    print(before)
else:
    print(after)

Submission status: Wrong Answer

Solution code:
s = str(input())
y = int(s[0:4])
if int(s[5]) == 0:
    m = int(s[6])
else:
    m = int(s[5:7])
if int(s[8]) == 0:
    d = int(s[9])
else:
    d = int(s[8:10])
if y < 2019:
    print('Heisei')
elif y == 2019 and m not in [1,2,3,4]:
    print('TBD')

Submission status: Wrong Answer

Solution code:
s = (input())
y = s[:4]
m = s[6:7]

y=int()
m=int()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
s = input()
print(s[5:7])
if s[3] == "9":
  if s[5] == 1:
    print("TBD")
  else:
    if int(s[6]) > 4:
      print("Heisei")
else:
  print("Heisei")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
S = input()
A = sorted([S,"2019/4/30"])
if A[0] == A[1]:
    print("Heisei")
elif A[0] == "2019/4/30":
    print("TBD")
else:
    print("Heisei")

Submission status: Wrong Answer

Solution code:
S = input()
A = sorted([S,"2019/4/30"])
if A[0] == "2019/4/30":
    print("TBD")
else:
    print("Heisei")

Submission status: Wrong Answer

Solution code:
S = input()
A = sorted([S,"2019/4/30"])
if A[0] == "2019/4/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()
print('Heisei' if "2019/04/30" >= s else 'TED')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
y = int(s[:4])
m = int(s[5:7])
d = int(s[8:10])
print("{0} {1} {2}".format(y,m,d))
if (y>=2019 and m >=5) or (y>2019):
    print("TBD")
else:
    print("Heisei")

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
Y, M, _ = map(int, input().split("/"))
if 2019 <= Y and 5 <= M or 2020 <= Y and 1 <= M:
    print("TBD")
else:
    print("heisei")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
S = input()

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

given = (2019 * 365) + (4 - 1) * 30 + 30
sum = (yyyy * 365) + (mm - 1) * 30 + dd

if given >= sum:
  print('heisei')
else:
  print('TBD')

Submission status: Wrong Answer

Solution code:
S = input()

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

given = 2019 * 365 + (4 - 1) * 30 + 30
sum = int(yyyy) * 365 + (int(mm) - 1) * 30 + int(dd)

if given >= sum:
  print('heisei')
else:
  print('TBD')

Submission status: Wrong Answer

Solution code:
s=input()

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

Submission status: Wrong Answer

Solution code:
print(['Heisei','TBD'][input()>'2019/05/01'])

Submission status: Wrong Answer

Solution code:
n = list(input().split('/'))

m = int(''.join(n))
if 20190430 <= m:
    print('Heisei')
else:
    print('TBD')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = list(input())

if int(s[6]) <= 3 or (int(s[6]) == 4 and int(s[8]) <=3):
  print("Heisei")
else:
  print("TBD")

Submission status: Wrong Answer

Solution code:
from datetime import datetime
def main():
    S = input()
    S = datetime.strptime(S,'%Y/%m/%d')

    if S <= datetime(2019, 4, 30):
        print('heisei')
    else:
        print('TBD')



if __name__ == '__main__' :
    main()

Submission status: Wrong Answer

Solution code:
from datetime import datetime
def main():
    S = input()
    S = datetime.strptime(S,'%Y/%m/%d')

    if S <= datetime(2019, 4, 30):
        print('seisei')
    else:
        print('TBD')



if __name__ == '__main__' :
    main()

Submission status: Wrong Answer

Solution code:


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

# print(arr)

flag = False

if arr[0] <= 2019:
    if arr[0] <= 4:
        if arr[0] <= 30:
            flag = True


if not flag:
    print("TBD")
else:
    print("Heisei")

Submission status: Wrong Answer

Solution code:


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

# print(arr)

flag = False

if arr[0] >= 2019:
    if arr[0] >= 4:
        if arr[0] > 30:
            flag = True


if flag:
    print("TBD")
else:
    print("Heisei")

Submission status: Wrong Answer

Solution code:
S = input()
print(S[5],S[6])
if S[5] == "0" and ((S[6] == "1") or (S[6] == "2") or (S[6] == "3") or (S[6] == "4")):
    print("Heisei")
else:
    print("TBD")

Submission status: Wrong Answer

Solution code:
S = input()

if S[5] == 0 and ((S[6] == 1) or (S[6] == 2) or (S[6] == 3) or (S[6] == 4)):
    print("Heisei")
else:
    print("TBD")

Submission status: Wrong Answer

Solution code:
S=str(input())
X=int(S[5:7])
if X>=5:
	print('TBD')
else:
	print('HEISEI')

Submission status: Wrong Answer

Solution code:
s = list(input())
if s[6]=='4' and s[8]=='3':
    print('Heisei')
elif s[6]=='1' or s[6]=='2' or s[6]=='3':
    print('TBD')
else:
    print('Heisei')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split("/"))
print(["TBD","Heisei"][(a>=2019) & (b>=5)])

Submission status: Wrong Answer

Solution code:
s = str(input())
mon = int(s[5:7])
if mon > 5:
  print('TBD')
else:
  print('Heisei')

Submission status: Wrong Answer

Solution code:
s = str(input())
mon = int(s[5:7])
print (mon)
if mon > 5:
  print('TBD')
else:
  print('Heisei')

Submission status: Wrong Answer

Solution code:
s = input()

if int(s[5]) == 0:
    month = int(s[6])
else:
    month = int(s[5:7])

if int(s[8]) == 0:
    day = int(s[9])
else:
    day = int(s[8:10])

if month < 4:
    flag = True

elif month == 4 and day < 31:
        flag = True
else:
    flag = False

if flag:
    print("Heisei")
else:
    print("TDB")

Submission status: Wrong Answer

Solution code:
s = input()
year = 0
for i in range(4):
    if int(s[i]) != 0:
        year = int(s[i:4])
        break

if int(s[5]) == 0:
    month = int(s[6])
else:
    month = int(s[5:7])

if int(s[8]) == 0:
    day = int(s[9])
else:
    day = int(s[8:10])

if year < 2019:
    flag = True
elif year == 2019 and month <= 4:
    if day == 31:
        flag = False
    else:
        flag = True
else:
    flag = False

if flag:
    print("Heisei")
else:
    print("DTB")

Submission status: Wrong Answer

Solution code:
s = input()
year = 0
for i in range(4):
    if int(s[i]) != 0:
        year = int(s[i:4])
        break

if int(s[5]) == 0:
    month = int(s[6])
else:
    month = int(s[5:7])

if int(s[8]) == 0:
    day = int(s[9])
else:
    day = int(s[8:10])

if year < 2019:
    flag = True
elif year == 2019 and month <= 4:
    if day == 31:
        flag = False
    flag = True
else:
    flag = False

if flag:
    print("Heisei")
else:
    print("DTB")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
a = int(s[5:7])
b = int(s[8:10])
if a<=4 & b <= 30:
    print("Heisei")
else:
    print("TBD")

Submission status: Wrong Answer

Solution code:
s = input()

d = str(s).split('/')
if int(d[2]) >= 5:
  print("TBD")
else:
  print("Heisei")

Submission status: Wrong Answer

Solution code:
import datetime
s=input()

input_date = datetime.datetime.strptime(s, "%Y/%m/%d")
heisei = datetime.datetime(2019,4,30)

if input_date < heisei:
    print('Heisei')
else:
    print('TBD')

Submission status: Wrong Answer

Solution code:
import re
res = re.match(r"(\d{4})\/(\d+)\/(\d+)", input())
if int(res.group(1)) > 2019 or int(res.group(2)) > 5:
    print("TBD")
else:
    print("Heisei")

Submission status: Wrong Answer

Solution code:
L = list(map(int, input().split("/")))
print("Heisesi" if L[1] >= 5 else "TBD")

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split('/'))
if a*10000+b*100+c <= 2019*10000+4*1000+30:
    print('Heisei')
else:
    print('TBD')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

haikus = input().split(",")
for haiku in haikus:
    print(haiku)

Submission status: Wrong Answer

Solution code:
S = input()
date = S.split('/')
ans = "Heisei"
if S != "2019/04/30" or int(date[0]) > 2019 or int(date[1]) > 4:
    ans = "TBD"
print(ans)

Submission status: Wrong Answer

Solution code:
S = input()
S = S.split("/")
year, month, day = map(int, S)

if year >= 2019:
    if month >= 4:
        if day >= 30:
            print("Heisei")
            exit()

print("TBD")

Submission status: Wrong Answer

Solution code:
import datetime
date_str = input()
date_formatted = datetime.datetime.strptime(date_str, "%Y/%m/%d")
last_heisei = datetime.datetime(2019, 4, 30, 0, 0, 0)
if date_formatted < last_heisei:
  print("Heisei")
else:
  print("TBD")

Submission status: Wrong Answer

Solution code:
a=list(map(int,input().split('/')))
if int(a[1])<5:
  print('Heisei')
else:
  print('TDB')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import datetime
d = datetime.datetime.strptime(input(), '%Y/%m/%d')
print('Heisei' if d<=datetime.datetime.strptime('2019/04/30', '%Y/%m/%d') else 'HBD')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
y,m,d=list(map(int,input().split('/')))
if y >= 2019 and m >=4 and d >= 30:
    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:
S = input()
year = int(S[:4])
month = int(S[5:7])
day = int(S[8:])

# print(year)
# print(month)
# print(day)

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

Submission status: Wrong Answer

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

# print(year)
# print(month)
# print(day)

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

Submission status: Wrong Answer

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

# print(year)
# print(month)
# print(day)

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

Submission status: Wrong Answer

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

# print(year)
# print(month)
# print(day)

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

Submission status: Wrong Answer

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

# print(year)
# print(month)
# print(day)

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

Submission status: Wrong Answer

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

# print(year)
# print(month)
# print(day)

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

Submission status: Wrong Answer

Solution code:
S=input()
YMD=int(''.join(S.split('/')))
if YMD > 20190430:
  print('heisei')
else:
  print('TBD')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(S)

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
S = [int(i) for i in input().split('/')]
print('Heisei' if S[1] >= 4 and S[2] >= 30 else 'TBD')

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python
# coding: UTF-8

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

h='Heisei'
t = 'TBD'

if y > 2019:
  print(t)
elif y < 2020:
  print(h)
else:
  if m > 4:
    print(t)
  elif m < 4:
    print(h)
  else:
    if m > 30:
      print(t)
    else:
      print(h)

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

else:
    print('TDB')

Submission status: Wrong Answer

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

if int(S) >= 20190501:
    print('TBD')
else:
    print('heisei')

Submission status: Wrong Answer

Solution code:
def main():
    yyyy, mm, dd = map(int, input().split('/'))

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

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
a = input()
L = []
for i in a:
  L.append(i)
if int(L[5]) ==1 or int(L[6])>4:
  print("TBD")
else:
  print("Hensei")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

print(S)

if int(S[0]) > 2019:
    print('TBD')
elif S[0] == '2019' and S[1] > '05':
    print('TBD')
else:
    print('Heisei')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

else:
     print("Heisei")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
import datetime
# input
S = datetime.datetime.strptime(input(), '%Y/%m/%d')
A = datetime.datetime(2019, 5, 1)
if (S - A).days < 0:
    print('Hisei')
else:
    print('TBD')

Submission status: Wrong Answer

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