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().split("/")
if int(s[0])<=2019 and int(s[1])<=4 and int(s[2])<=30:
    print("Heise")
else:
    print("TBD")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
month = S.split("/")[1]

if int(month) <= 4:
    print('Heisei')
else:
    print('TDB')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print(["TBD","Heisei"][input()<"2019/04/30"])

Submission status: Wrong Answer

Solution code:
S = input()

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

print(y, m, d)

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
day = (s.split("/"))
if day[1] == "4":
 print("Heisei")
else:
 print("Reiwa")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import datetime

S = input().strip()
dt_S = datetime.datetime.strptime(S, '%Y/%m/%d')

LastHeisei = '2019/04/30'
dt_LastHeisei = datetime.datetime.strptime(LastHeisei, '%Y/%m/%d')

if dt_S > dt_LastHeisei:
  print ("TBD")
else:
  print ("heisei")

Submission status: Wrong Answer

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

if y > 2019:
    print("TBD")
elif y == 2019 and m > 4:
    print("TBD")
else:
    print("HEISEI")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input().split("/")
md = int(S[1] + S[2])
if md > 430:
  print("TBD")
else:
  print("heisei")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = str(input())

y = ''
m = ''
d = ''
num = 0
tmp = ''
for s in list(S):
  if s == '/':
    if num == 0:
      y = tmp
    elif num == 1:
      m = tmp
    else:
      d = tmp
    tmp = ''
  else:
    tmp += s

if int(y + m + d) > 20190430:
  print("TBD")
else:
  print("Heisei")

Submission status: Wrong Answer

Solution code:

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

if int(S) - 2019430 > 0:
  print('TBD')
else:
  print('Heisei')

Submission status: Wrong Answer

Solution code:
input = input()

year = int(input[0:3])
month = int(input[5])

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8
from sys import stdin
Y,M,D = map(int,stdin.readline().rstrip().split("/"))
print("Heisei" if M >= 5 else "TBD")

Submission status: Wrong Answer

Solution code:
# coding: utf-8
from sys import stdin
import sys
Y,M,D = map(int,stdin.readline().rstrip().split("/"))
if Y >= 2019:
    if M >= 5:
        print("TBD")
        sys.exit()
print("heisei")

Submission status: Wrong Answer

Solution code:
in_d = input()
y = int(in_d[0:3])
m = int(in_d[5:6])
d = int(in_d[8:9])

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

Submission status: Wrong Answer

Solution code:
S = input()
match = '2019/04/30'

if S in match:
    print('Heisei')
else:
    print('TBD')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
from itertools import product

import numpy as np

sys.setrecursionlimit(200000)


def input():
    return sys.stdin.readline()[:-1]


def ii(t: type = int):
    return t(input())


def il(t: type = int):
    return list(map(t, input().split()))


def imi(N: int, t: type = int):
    return [ii(t) for _ in range(N)]


def iml(N: int, t: type = int):
    return [il(t) for _ in range(N)]


def solve():
    return "Heisei" if ii(str) == "2019/04/30" else "TBD"


if __name__ == "__main__":
    print(solve())

Submission status: Wrong Answer

Solution code:
import sys
from itertools import product

import numpy as np

sys.setrecursionlimit(200000)


def input():
    return sys.stdin.readline()[:-1]


def ii(t: type = int):
    return t(input())


def il(t: type = int):
    return list(map(t, input().split()))


def imi(N: int, t: type = int):
    return [ii(t) for _ in range(N)]


def iml(N: int, t: type = int):
    return [il(t) for _ in range(N)]


def solve():
    print("Heisei" if ii(str) == "2019/04/30" else "TBD")


if __name__ == "__main__":
    print(solve())

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# A - Still TBD
# https://atcoder.jp/contests/abc119/tasks/abc119_a

# threshold
TY, TM, TD = 2019, 4, 30

Y, M, D = map(int, raw_input().split('/'))


if Y > TY:
    print '{}'.format('THD')
elif Y < TY:
    print '{}'.format('Heisei')
else: # T == TY
    if M > TM:
        print '{}'.format('THD')
    elif M < TM:
        print '{}'.format('Heisei')
    else: # T == TY and M == TM
        if D > TD:
            print '{}'.format('THD')
        else: # T == TY and M == TM and D <= TD
            print '{}'.format('Heisei')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = str(input())
from datetime import datetime as dt
dtime = dt.strptime(S, '%Y/%m/%d')
target = dt(2019, 4, 30, 0, 0)
if dtime <= target:
    print("heisei")
else:
    print("TBD")

Submission status: Wrong Answer

Solution code:
S = input()
if S[5:7] in ["0!","02","03","04"]:
    print("Heisei")
else:
    print("TBD")

Submission status: Wrong Answer

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

if y > 2020 or (y == 2019 and m > 5) or (y == 2019 and m == 4 and d > 30):
    print("TBD")
else:
    print("Heisei")

Submission status: Wrong Answer

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

if y > 2020 or (y == 2019 and m > 5) or (y == 2019 and m == 4 and d > 30):
    print("TBD")
else:
    print("Heisei")

Submission status: Wrong Answer

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

if y > 2020 or (y == 2019 and m > 5) or (y == 2019 and m == 4 and d >= 30):
    print("Heisei")
else:
    print("TBD")

Submission status: Wrong Answer

Solution code:
_,m,_ = map(int,input().split("/"))
print("TBD" if m > 4 else "HEISEI")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = str(input())

def checker(y, m, d):
    if y < 2019: return 'Heisei'
    if y > 2019: return 'Heisei'
    if m  == 4: return 'Heisei'
    
    return 'TBD'

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
y,m,d=map(str,input().split('/'))
if int(y)<2019:
  print('Heisei')
else:
  if m[0]=='0' and int(m[1])<4:
    print('Heisei')
  elif int(m[1])==4 and int(d)<=30:
    print('Heise{')
  else:
    print('TBD')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
date = input()
if int(date[6-7]) > 4:
    print("TBD")
else:
    print("Heisei")

Submission status: Wrong Answer

Solution code:
#coding:utf-8

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

else:
	print('TBD')

Submission status: Wrong Answer

Solution code:
S = str(input())

listS = S.split('/')

if int(listS[0]) < 2019:
    print('Heisei')
elif int(listS[0]) == 2019:
    print('a')
    if int(listS[1]) < 5:
        print('Heisei')
    else:
        print('TBD')
else:
    print('TBD')

Submission status: Wrong Answer

Solution code:
s = str(input())

s = s.split('/')
if int(s[0]) >= 2019:
    if int(s[1]) >= 5:
        if int(s[2]) >= 1:
            print('TBD')
            exit()

print('heisei')

Submission status: Wrong Answer

Solution code:
from sys import stdin

arr = list(map(int, stdin.readline().split('/')))
if arr[0] > 2019:
  print('Heisei')
else:
  if arr[1] > 4:
    print('Heisei')
  else:
    if arr[2] > 31:
      print('Heisei')
    else:
      print('TBD')

Submission status: Wrong Answer

Solution code:
S = input()

if S[5] == '0' and int(S[6]) < 5:
    print('Heisei')
elif S[5] == '0' and int(S[6]) > 4:
    print('Heisei')
elif S[5] == '1':
    print('TBD')

Submission status: Wrong Answer

Solution code:
s = input()
year, month = int(s[0:4]), int(s[5:7])
print(year, month)

if year > 2019 or (year == 2019 and month > 4):
	print("TBD")
else:
	print("Heisei")

Submission status: Wrong Answer

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

if day[0] <= 2019:
    if day[1] <= 4:
        if day[2] <= 30:
            print("heisei")
            exit()
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:
#!/usr/bin/python
import datetime

def main():
    S = str(input())
    tdatetime = datetime.datetime.strptime(S, '%Y/%m/%d')

    if tdatetime.month <= 4:
        print('HEISEI')
    else:
        print('TBD')

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()
b = a.split("/")
c = [int(n) for n in b]

if c[0] > 2019:
    print("PBD")
elif c[0] < 2019:
    print("Heisei")
else:
    if c[1] >=5:
        print("PBD")
    else:
        print("Heisei")

Submission status: Wrong Answer

Solution code:
a = input()
b = a.split("/")
c = [int(n) for n in b]
if c[0] > 2018:
    print("PBD")
elif c[0] < 2018:
    print("Heisei")
else:
    if c[1] >=5:
        print("PBD")
    else:
        print("Heisei")

Submission status: Wrong Answer

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

result = "TBD"
if y < 2019:
  result = "heisei"
elif m < 5:
  result = "heisei"

print(result)

Submission status: Wrong Answer

Solution code:
Y, M, D = map(int, input().split('/'))
if M <= 4:
    print('Heisei')
else:
    print('TDB')

Submission status: Wrong Answer

Solution code:
s = input()
sy = int(s[0:4])
sm = int(s[5:7])
sd = int(s[8:10])
if sy > 2019:
    print("TBD")
elif sy < 2019:
    print("Heisei")
else:
    if sm > 4:
        print("TBD")
    elif sm < 4:
        print("Heisei")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
"""
A - Still TBD
https://atcoder.jp/contests/abc119/tasks/abc119_a

"""
import sys


def main(args):
    S = input()
    yyyy, mm, dd = map(int, S.split('/'))
    if yyyy >= 2019 and mm >= 5:
        print('TBD')
    else:
        print('Helsei')

if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
S = input().split('/')
for i in range(3):
    S[i] = int(S[i])
if S[0] == 2019:
    if S[1] > 5:
        print('TBD')
    else:
        print('Heisei')
elif S[0] > 2019:
    print('TDB')
else:
    print('Heisei')

Submission status: Wrong Answer

Solution code:
S=input()

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

Submission status: Wrong Answer

Solution code:
from datetime import datetime

tmp = input()
target = datetime(int(tmp[:4]), int(tmp[5:7]), int(tmp[8:10]), 0, 0) 
from_dt = datetime(2019, 4, 30)

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

Submission status: Wrong Answer

Solution code:
from datetime import datetime

tmp = input()
target = datetime(int(tmp[:4]), int(tmp[5:7]), int(tmp[8:10]), 0, 0) 
from_dt = datetime(2019, 4, 30)

if from_dt <= target:
  print("heisei")
else:
  print("TBD")

Submission status: Wrong Answer

Solution code:
import datetime

S = input()
data = datetime.datetime.strptime(S, "%Y/%m/%d")

if data > datetime.datetime(2019, 5, 1, 0, 0, 0, 0):
    print('TBD')
else:
    print('Heisei')

Submission status: Wrong Answer

Solution code:
S = input()
import datetime
data = datetime.datetime.strptime(S, "%Y/%m/%d")

if data > datetime.datetime(2019, 5, 1, 0, 0):
    print('TBD')
else:
    print('Heisei')

Submission status: Wrong Answer

Solution code:
s=[int(i) for i in input().split('/')]
print(s)
if s[0]>2020 or (s[0]==2019 and s[1]>4):
    print("TBD")
else: print("Heisei")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
month = int(S[5])
if month > 4:
	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[1]>5:
    print("TBD")
else:
    print("Heisei")

Submission status: Wrong Answer

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

# year, month, day = map(int, S.split("/"))
if month >= 5:
  print("TBD")
else:
  print("heisei")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
S = S.split("/")
S = [int(s) for s in S]
if S[0] < 2019:
    print("Heisei")
if S[0] < 2019 and S[1] < 4:
    print("Heisei")
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()
S = S.split("/")
S = [int(s) for s in S]
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()
S = S.split("/")
S = [int(s) for s in S]
if S[0] < 2019:
    print("Heisei")
elif S[1] < 4:
    print("Heisei")
elif S[2] < 30:
    print("Heisei")
else:
    print("TBD")

Submission status: Wrong Answer

Solution code:
S = input()
S = S.split("/")
S = [int(s) for s in S]
if S[0] < 2019:
  print("Heisei")
elif S[1] < 4:
  print("Heisei")
elif S[1] < 30:
    print("Heisei")
else:
    print("TBD")

Submission status: Wrong Answer

Solution code:
S = input()
S = S.split("/")
S = [int(s) for s in S]
if S[0] < 2019 and S[1] < 4 and S[1] < 30:
    print("Heisei")
else:
    print("TBD")

Submission status: Wrong Answer

Solution code:
S=input()
s=S.replace('/','')
t=s[1:5]
u=s[6:8]
T=int(t)
U=int(u)
if T<=2018:
  print('Heisei')
elif T==2019:
  if U<=4:
    print('Heisei')
  else:
    print('TBD')
else:
  print('TBD')

Submission status: Wrong Answer

Solution code:
s = str(input())

nexts = s.replace("/","")

sint = int(nexts)

print(sint)


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

Submission status: Wrong Answer

Solution code:
s = str(input())

nexts = s.replace("/","")

sint = int(nexts)

print(sint)


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
y,m,d = map(int,S.split('/'))
ans = 'HBT'
if y <= 2019 and m <= 4 and d <= 30 or y < 2018:
    ans = 'Heisei'
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
y,m,d = map(int,S.split('/'))
ans = 'TBD'
if y > 2018 and m > 3 and d > 29:
    ans = 'Heisei'
elif y > 2019:
    ans = 'Heisei'

print(ans)

Submission status: Wrong Answer

Solution code:
S = input()
y,m,d = map(int,S.split('/'))
ans = 'TBD'
if y > 2018 and m > 3 and d > 30:
    ans = 'Heisei'
elif y > 2019:
    ans = 'Heisei'

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()
date = list(a)
year = int(date[0])*1000 + int(date[1])*100 + int(date[2])*10 + int(date[3])
mon = int(date[5])*10 + int(date[6])
day = int(date[8])*10 + int(date[9])
if year < 2019 or mon < 5 :
  print("Heise")
else :
  print("TBD")

Submission status: Wrong Answer

Solution code:
a = input()
date = list(a)
year = int(date[0])*1000 + int(date[1])*100 + int(date[2])*10 + int(date[3])
mon = int(date[5])*10 + int(date[6])
day = int(date[8])*10 + int(date[9])
if year < 2019 and mon < 5 :
  print("Heise")
else :
  print("TBD")

Submission status: Wrong Answer

Solution code:
###A - Still TBD
import datetime

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

Submission status: Wrong Answer

Solution code:
m = int(''.join(list(input().split('/'))))
if m > 201904030:
    print("TBD")
else:
    print("Heisei")

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import datetime

def main():
    S = raw_input('Enter a date in YYYY/MM/DD format:')
    year, month, day = map(int, S.split('/'))
    date1 = datetime.date(year, month, day)
    if date1 <= datetime.date(2019, 04, 30):
        print("Heisei")
    else:
        print("TBD")

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

S = input()
ls = [x for x in S.split("/")]
y = int(ls[0])
m = ls[1]
if y<=2018:
    a = "Heisei"
elif y == 2019 and m in ["01" ,"02", "03","04"]:
    a = "Heisei"
else:
    a = "TBD"

Submission status: Wrong Answer

Solution code:
s = input()

l = s.split("/")

n1 = int(l[0])
n2 = int(l[1])

if n1>2019:
    print("Heisei")
elif n1<2019:
    print("TBD")
elif n2>4:
    print("Heisei")
elif n2<=4:
    print("TBD")

Submission status: Wrong Answer

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

print(S)

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

Submission status: Wrong Answer

Solution code:
S = input()
y = int(S[0:4])
m = int(S[6:7])

import sys

if y<2019:
    print("Heisei")
    sys.exit()
if y==2019:
    if m<=4:
        print("Heisei")
        sys.exit()
print("TBD")

Submission status: Wrong Answer

Solution code:
import datetime;
def main():
    s=input()
    y,m,d=s.split('/')
    y=int(y)
    m=int(m)
    d=int(d)

    d1= datetime.date(y,m,d)
    Heisei=datetime.date(2019,4,30)

    if(Heisei>=d1):
        print('Heisei')
    else:
        print('TBD')

Submission status: Wrong Answer

Solution code:
import sys

for S in sys.stdin:
  if S <= '2019/04/30':
    print('Heisei')
  else:
    print('TBD')

Submission status: Wrong Answer

Solution code:
import sys

for S in sys.stdin:
  if S <= '20190430':
    print('Heisei')
  else:
    print('TBD')

Submission status: Wrong Answer

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

if yy<=2019:
  if mm<=4:
    if dd<=30:
      print('Heisei')
else:
  print('TBD')

Submission status: Wrong Answer

Solution code:
import datetime
S = list(map(int,input().split("/")))
comp = datetime.datetime(2019,4,30)
target = datetime.datetime(S[0],S[1],S[2])

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

Submission status: Wrong Answer

Solution code:
a='2020/03/30'
d=a.split(sep='/')
if(int(d[0])<2019):
        print("Heisei")
elif(int(d[0])==2019 and int(d[1])<4):
        print("Heisei")
elif(int(d[0])==2019 and int(d[1])==4 and int(d[2])<=30):
        print("Heisei")
else:
        print("TBD")

Submission status: Wrong Answer

Solution code:
S = "2019/04/22"

list = S.split("/")
y = int(list[0])
m = int(list[1])
d = int(list[2])

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

Submission status: Wrong Answer

Solution code:
a = input().split("/")
print(a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
if S >= '2019/04/03':
    print('heisei')
else:
    print('TBD')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

n = int(y + m + d)

if n <= 20190430:
  print("Heisei")
else:
  print("TDB")

Submission status: Wrong Answer

Solution code:
#   AtCoder Beginner Contest 119
#   problem A: Still TBD

S = input() #-> yyyy/mm/dd

date = S.split('/')

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

def heisei():
    print('Heisei')

if month > 5:
    print('TBD')
else:
    heisei()

Submission status: Wrong Answer

Solution code:
import numpy as np

s = "2019/4/27"

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

y, m, d = int(y), int(m), int(d)

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

Solution code:
import numpy as np

s = str(input())

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

y, m, d = int(y), int(m), int(d)

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

Solution code:
import numpy as np

s = str(input())

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

print(y, m, d)

Submission status: Wrong Answer

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

if y < 2019:
  print('Heisei')
  sys.exit()

if y == 2019 and d < 5:
  print('Heisei')
  sys.exit()

print('TBD')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
new_S = S.split("/")
new_S = [int(x) for x in new_S]
if new_S[0] < 2019:
    print("TBD")
elif new_S[1] < 4:
    print("TBD")
elif new_S[2] < 30:
    print("TBD")
else:
    print("Heisei")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import datetime as dt
S_T='2019/04/30'
S_T=dt.datetime.strptime(S_T,'%Y/%m/%d')
S=input()
S=dt.datetime.strptime(S,'%Y/%m/%d')

t_delta=S-S_T
if t_delta.days < 0:
    print('Heisei')
else:
    print('TBD')

Submission status: Wrong Answer

Solution code:
aa=2

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
nen,mon,day = map(int,input().split('/'))

if nen >= 2020:
    print("Heisei")
if nen >= 2019 and mon >= 5:
    print("Heisei")
if nen >= 2019 and mon == 4 and day >= 30:
    print("Heisei")
else:
    print("TBD")

Submission status: Wrong Answer

Solution code:
nen,mon,day = map(int,input().split('/'))

if nen >= 2019 and mon >= 5:
    print("Heisei")
if nen >= 2019 and mon == 4 and day >= 30:
    print("Heisei")
else:
    print("TBD")

Submission status: Wrong Answer

Solution code:
nen,mon,day = map(int,input().split('/'))

if nen >= 2019 and mon >= 4 and day >= 30:
    print("Heisei")
else:
    print("TBD")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split("/"))
print("Heisei" if b*100+c<=70 else "TBD")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split("/"))
print("Heisei" if b*10+c<=70 else "TBD")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8

import datetime
text = input()
time = datetime.datetime.strptime(text,"%Y/%m/%d")
heisei = datetime.datetime.strptime("2019/04/30","%Y/%m/%d")

if time <= heisei :
    print("Heisei")
else:
    print("TDB")

Submission status: Wrong Answer

Solution code:
x=str(input())
if int(x[:4])>2019:
	print("TBD")
elif int(x[:4])==2019 & int(x[5:7])>4:
	print("TBD")
else:
  	print("Heisei")