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:
from datetime import date
y, m, d = map(int, input().split('/'))
t = date(y, m, d)
if t <= date(2019, 4, 30):
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
tmp = list(map(int, input().split('/')))
y, m, d= tmp[0], tmp[1], tmp[2]

out = 'TBD'
if y < 2019:
  out = 'Heisei'
elif y == 2019:
  if m < 5:
    out = 'Heisei'

print(out)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
Y,M,D = list(map(int,input().split("/")))
S = Y*10000+M*100+D
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:
d = input()
if int(d[:4]) > 2019:
    print('TBD')
elif int(d[:4]) == 2019:
    if int(d[5:7]) > 4:
        print('TBD')
    elif int(d[5:7]) == 4:
        if int(d[-2:]) > 30:
            print('TBD')
        else:
            print('Heisei')
    else:
        print('Heisei')
else:
    print('Heisei')

Submission status: Accepted

Solution code:
S = raw_input().split('/')
if int(S[0]) < 2019:
    print 'Heisei'
elif int(S[0])==2019 and int(S[1]+S[2]) <= 430:
    print 'Heisei'
else:
    print 'TBD'

Submission status: Accepted

Solution code:
date = input()

date = int(date.replace('/', ''))
if date <= 20190430:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime

y, m, d = map(int, input().split('/'))
s = datetime.date(y, m, d)
print('Heisei' if s <= datetime.date(2019, 4, 30) else 'TBD')

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:
# -*- coding: utf-8 -*-
import sys

def main():
	S = input();

	yer = int(S[:4])
	mon = int(S[5:7])
	day = int(S[8:])

	if yer > 2019:
		print("TBD")
		sys.exit()
	if yer < 2019:
		print("Heisei")
		sys.exit()
	if mon > 4:
		print("TBD")
		sys.exit()
	if mon < 4:
		print("Heisei")
		sys.exit()
	if day <= 30:
		print("Heisei")
		sys.exit()
	print("TBD")

if __name__ == "__main__":
	main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
S = input()

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

if(year < 2019):  # ~2018年
    print("Heisei")
else:  # 2019~
    if(month == 4):
        if(day <= 30):
            print("Heisei")
        else:
            print("TBD")
    elif(month < 4):
        print("Heisei")
    else:  # 5月~
        print("TBD")

Submission status: Accepted

Solution code:
a=input()
b="2019/04/30"
c=[a,b]
c.sort()
if c[0]==a:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

Solution code:
a=input()
if int(a[0:4])<2019:
  print("Heisei")
elif int(a[0:4])==2019 and int(a[5:7])<=4:
  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:
  if b<=4:
    print("Heisei")
  else:
    print("TBD")
else:
  print("TBD")

Submission status: Accepted

Solution code:
import datetime
S = input()

dt = datetime.datetime.strptime(S, "%Y/%m/%d")
dt_end = datetime.datetime.strptime("2019/04/30", "%Y/%m/%d")
if dt > dt_end:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

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

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('Heisei')

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

Submission status: Accepted

Solution code:
from datetime import datetime
base = datetime(2019, 4, 30)
date = datetime.strptime(input(), '%Y/%m/%d')
if date <= base:
    print("Heisei")
else:
    print('TBD')

Submission status: Accepted

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

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

Submission status: Accepted

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

flag = False
if y < 2019:
    flag = True
elif y == 2019:
    if m <= 4:
        flag = True

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from datetime import datetime as dt

S = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys


def solve(S: str):
    s = int(S[:4] + S[5:7] + S[8:10])
    if s <= 20190430:
        ret = 'Heisei'
    else:
        ret = 'TBD'
    print(ret)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  # type: str
    solve(S)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
s=str(input())
a=s.split("/")
b=int("".join(a))

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

Submission status: Accepted

Solution code:
from datetime import datetime
a, b, c = [int(x) for x in input().rstrip().split("/")]
if datetime(a, b, c) <= datetime(2019, 4, 30):
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

s = raw_input().split('/')

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env pyton3

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

if int(date[1]) <= 4:
    print("Heisei")

else:
    print("TBD")

Submission status: Accepted

Solution code:
s = str(input())
t = "2019/04/30"
l = [s,t]
l.sort()

if l[0] == s:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

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

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

Submission status: Accepted

Solution code:



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

if(y<2019 or (y==2019 and m<5)):
	print("Heisei")
else:
	print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

yyyy, mm, dd = list(map(int, stdin.readline().rstrip().split("/")))

isHeisei = False

if yyyy <= 2019:
    if mm <= 4:
        if dd <= 30:
            isHeisei = True

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = str(input())

if int(a[0:4]) > 2019:
    print('TBD')
elif int(a[5:7]) > 4:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

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

def main():
    if (year >= 2019 and month >= 5) or year >= 2020:
        return 'TBD'
    else:
        return 'Heisei'

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()
y=s[0:4]
m=s[5:7]
d=s[8:]
ans='Heisei'
if(int(y) < 2019):
    print(ans)
elif(int(y) == 2019):
    print(['TBD',ans][int(m)<=4])
else:
   print('TBD')

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
s=input()
t="2019/04/30"
if s<=t:
    print("Heisei")
else :
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input().split("/"))

#print(s)

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

Submission status: Accepted

Solution code:
import datetime

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

Submission status: Accepted

Solution code:
from datetime import datetime as dt


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

Submission status: Accepted

Solution code:
date = input()

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

Submission status: Accepted

Solution code:
from datetime import datetime

str_date = input()
one_date = datetime.strptime(str_date,'%Y/%m/%d')
# 基準日時
base_date = datetime(2019,4,30)
if one_date <= base_date:
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
yr,mn,dy=map(int,input().split('/'))
if yr <2019:
  print("Heisei")
elif yr >2019:
  print("TBD")
else:
  if mn<4:
    print("Heisei")
  elif mn>4:
    print("TBD")
  else:
    print("Heisei")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import numpy as np

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

Submission status: Accepted

Solution code:
Y, M, D = map(int, input().split('/'))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())
y = int("".join(s[0:4]))
m = int("".join(s[5:7]))
d = int("".join(s[8:10]))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
"""A-Still TBD"""
S=[int(i) for i in input().split("/")]
if S[0]>=2019 and S[1]>4:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = raw_input()
date = map(int, S.split('/'))
if date <= [2019, 4, 30]:
	print 'Heisei'
else:
	print 'TBD'

Submission status: Accepted

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

Submission status: Accepted

Solution code:
strings = input().split('/')
s = list(map(int, strings))
flag = 1
if s[0] > 2019:
    flag = 0
elif s[0] == 2019:
    if s[1] > 4:
        flag = 0

ans_list = ['TBD', 'Heisei']
print(ans_list[flag])

Submission status: Accepted

Solution code:
s = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
Y, M, D = map(int, input().split("/"))
boo = False
if Y < 2019:
  boo = True
else:
  if Y == 2019 and M <= 4:
    boo = True
if boo:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = str(input())

array = S.split('/')

heise = ['01', '02', '03', '04']

if array[1] in heise:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
S = input()
S = S.split('/')
if int(S[1]) < 4:
    print('Heisei')
    exit()
if int(S[1]) == 4:
    if int(S[2]) < 31:
        print('Heisei')
        exit()
print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
dates = [x for x in input().split("/")]
number = int(dates[0]+dates[1]+dates[2])

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int("".join(input().split("/")))
day_before_tbd = 20190430

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

Submission status: Accepted

Solution code:
S = [int(i) for i in input().split('/')]

def f(S):
    if S[0] < 2019:
        return False
    elif S[0] > 2019:
        return True
    else:                                                                                                      
        if S[1] < 4:
            return False
        elif S[1] > 4:
            return True
        else:
            if S[2] <= 30:
                return False
            else:
                return True

if f(S):
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

Solution code:
s=input()
f=0
if(int(s[0:4])>2019):
	f=1
elif(int(s[0:4])==2019 and int(s[5:7])>4):
	f=1

if(f==0):
	print("Heisei")
else:
	print("TBD")

Submission status: Accepted

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

if month >= 5:
  print("TBD")
else:
  print("Heisei")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

S = input()
S = int(S.replace("/", ""))

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
print('Heisei' if input() <= '2019/04/30' else 'TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# Still TBD
Y, M, D = map(int, input().strip().split('/'))
if Y < 2019:
	print('Heisei')
else:
	if M < 5:
		print('Heisei')
	else:
		print('TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#encoding:utf-8

import datetime 

s = input()

if datetime.datetime.strptime(s, "%Y/%m/%d") <= datetime.datetime(2019, 4, 30, 23, 59, 59):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()
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: Accepted

Solution code:
#ABK=list(map(int,input().split()))
import datetime

S=input()
comp1=datetime.datetime.strptime(S,"%Y/%m/%d")
comp2=datetime.datetime(2019,4,30,23,59,59)

if comp1<=comp2:
 print("Heisei")
else:
 print("TBD")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
y1, y2, y3, y4, a, m1, m2, b, d1, d2 = input()

m1 = int(m1)
m2 = int(m2)

if(m1==1):
    print("TBD")
else:
    if(m2>=5):
        print("TBD")
    else:
        print("Heisei")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = str(input())

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

sint = int(nexts)

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split("/"))
if A>2019 or (A==2019 and B>=5):
  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:
s = input();
list = s.split("/");
[y,m,d] = list;
flag = False;
if int(y)<2019:
    flag = True;
elif int(y) == 2019:
    if int(m) <= 4:
        flag = True;
if flag:
    print("Heisei");
else:
    print("TBD");

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=list(input())
if s[6]=='5' or s[6]=='6' or s[6]=='7' or s[6]=='8' or s[6]=='9' or s[5]=='1':
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
from datetime import datetime


def solve(S: str):
    if datetime.strptime(S, "%Y/%m/%d") <= datetime.strptime("2019/4/30", "%Y/%m/%d"):
        print("Heisei")
    else:
        print("TBD")


# Generated by 1.1.3 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word

    tokens = iterate_tokens()
    S = next(tokens)  # type: str
    solve(S)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import re

S = input()
m = re.search(r"(?P<year>\d{4})/(?P<month>\d{2})/(?P<date>\d{2})", S)
year = int(m.group("year"))
month = int(m.group("month"))
date = int(m.group("date"))

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime
Y, M, D = map(int, input().split('/'))

if datetime.date(2019, 4, 30) >= datetime.date(Y,M,D):
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
import sys
from datetime import datetime

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

if s_date > last_heisei:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

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

Solution code:
import datetime

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

if date < datetime.date(2019, 5, 1):
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

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



def main():
    S = input()
    Y, M, D = map(int, S.split("/"))

    heisei = False
    if Y < 2019:
        heisei = True
    elif Y == 2019 and M < 5:
        heisei = True

    print("Heisei" if heisei else "TBD")

if __name__ == "__main__": main()

Submission status: Accepted

Solution code:
y, m, d = [int(i) for i in input().split("/")]

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

Submission status: Accepted

Solution code:
flag = 0
year, month, day = input().split("/")

if int(month[0]) > 0:
    flag = 1
elif int(month[1]) > 4:
    flag = 1

if flag == 0:
    print("Heisei")
elif flag == 1:
    print("TBD")

Submission status: Accepted

Solution code:
import sys
stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip() # ignore trailing spaces

y,m,d = list(map(int, stdin.readline().split('/')))

a = True
if y>2019:
  a = False
elif y==2019:
  if m>4:
    a = False
  elif m==4:
    if d > 30:
      a = False

print("Heisei" if a else "TBD")

Submission status: Accepted

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

Submission status: Accepted

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