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:
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])
 
if year >= 2019 and month >= 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:
import datetime
s = input()
date = datetime.datetime.strptime(s, '%Y/%m/%d')
d = datetime.datetime(2019, 4, 30)
if date -d <= datetime.timedelta(days = 0):
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
date =list(map(int,input().split('/')))
print('TBD' if date[1]*31+date[2]>=155 else 'Heisei')

Submission status: Accepted

Solution code:
a = input()
l = list(a)
year = int(l[0]) * 1000 + int(l[1]) * 100 + int(l[2]) * 10 + int(l[3])
month = int(l[5]) * 10 + int(l[6])
date = int(l[8]) * 10 + int(l[9])

if year < 2019 or month < 5:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

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

print("Heisei")

Submission status: Accepted

Solution code:
S = input()

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
usr=input()
lst = usr.split('/')
a = int(lst[0])
string = lst[1]
if string[0] == '0':
  b = int(string[1])
else:
  b = int(string)

if a <= 2019 and b <5:
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import datetime
base_date = datetime.datetime(2019, 4, 30, 23, 59, 59)
# データ数の取込み
date_str = input()
in_date = datetime.datetime.strptime(date_str, "%Y/%m/%d")
if in_date <= base_date:
  print( "Heisei" )
else:
  print( "TBD" )

Submission status: Accepted

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

Submission status: Accepted

Solution code:
yy,mm,dd = map(int,input().split('/'))
if yy>=2019 and mm>=5:
  print('TBD')
else:
  print('Heisei')

Submission status: Accepted

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

last_yy, last_mm, last_dd = '2019/04/30'.split('/')

print('Heisei' if last_yy >= yy and last_mm >= mm and last_dd >= dd else 'TBD')

Submission status: Accepted

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

last_yy, last_mm, last_dd = '2019/04/30'.split('/')
if last_yy < yy:
    ans = 'TBD'
else:
    if last_mm < mm:
        ans = 'TBD'
    else:
        if last_dd < dd:
            ans = 'TBD'
        else:
            ans = 'Heisei'

print(ans)

Submission status: Accepted

Solution code:
import datetime

a  = (datetime.datetime.strptime('2019/04/30', '%Y/%m/%d') - datetime.datetime.strptime(input(), '%Y/%m/%d')).days

print('Heisei' if a >= 0 else 'TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = []
s = input().split("/")
a = "Heisei"

if int(s[0]) >= 2018:
    if int(s[1]) > 4:
        a = "TBD"
print(a)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
year, month, day = input().split('/')
yyyymmdd = int(year+month+day)
if yyyymmdd > 20190430:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

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

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

Submission status: Accepted

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

if yyyy >= 2019 and mm > 4:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

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

if yyyy == 2019 and mm == 4 and dd == 30:
    print("Heisei")
    exit()

if yyyy >= 2019:
    if mm > 4:
        print("TBD")
    else:
        print("Heisei")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
#coding:utf-8

if __name__ == "__main__":
    date = input()
    year, month, day = date.split("/")

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

print("Heisei" if int(S[5:7]) < 5 else "TBD")

Submission status: Accepted

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

date1 = datetime.datetime(int(a[0]), int(a[1]), int(a[2]))
date2 = datetime.datetime(2019, 4, 30)

if date1 > date2:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
S = input()
y,m,d = S.split("/")
if int(y) <= 2019 and int(m) <= 4 and int(d) <= 30:
  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:
S = input()
if S > "2019/04/30":
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input();print("Heisei") if s[5:7]<="04" else print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
year, month, day = list(map(int, input().split('/')))
if year >= 2019 and month >= 5:
  print('TBD')
else:
  print('Heisei')

Submission status: Accepted

Solution code:
def solve(string):
    return "Heisei" if string <= "2019/04/30" else "TBD"


if __name__ == '__main__':
    print(solve(input()))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime
S = raw_input()
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

def solve(year, month, day):
    s = 'Heisei'
    t = 'TBD'

    if year > 2019:
        return t
    if year == 2019 and month >= 5:
        return t
    return s

main()

Submission status: Accepted

Solution code:
import datetime

s = input()
t = '2019/04/30'
date_1 = datetime.datetime.strptime(s, '%Y/%m/%d')
date_2 = datetime.datetime.strptime(t, '%Y/%m/%d')

if date_1 <= date_2:
	print('Heisei')
else:
	print('TBD')

Submission status: Accepted

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

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

Submission status: Accepted

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

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(["Heisei","TBD"][int(input().split('/')[1])>4])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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"
print(a)

Submission status: Accepted

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

Solution code:
import re

S = input()
s = re.split('/', S)

y = int(s[0])
m = int(s[1])
d = int(s[2])

f = False
if y <= 2018:
    f = True
if y == 2019:
    if m <= 4:
        f = True

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_date = input()

str_date = input_date.split("/")
int_date = [int(n) for n in str_date]

if (int_date[0] <= 2019 and int_date[1] <= 4 and int_date[2] <= 30):
    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 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: Accepted

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

import sys

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime

a, b, c = map(int, input().split('/'))
comp = datetime.date(2019,4,30)


if datetime.date(a,b,c) <= comp:
	print('Heisei')
else:
	print('TBD')

Submission status: Accepted

Solution code:
string = input()
string = string.split("/") # string : list
string = string[0]+string[1]+string[2]
if(int(string) <= 20190430):
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
s=str(input())
a=s.split('/')
year=int(a[0])
month=int(a[1])
day=int(a[2])
if year <= 2018:
  print('Heisei')
elif month <=4:
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

Solution code:
import sys

for S in sys.stdin:
  y,m,d = [int(x) for x in S.split('/')]
  if y<=2019 and m<=4:
    print('Heisei')
  else:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

if yy>2019:
  print('TBD')
else:
  if mm>4:
    print('TBD')
  else:
    if mm==1 or mm==3:
      if dd>31:
        print('TBD')
      else:
        print('Heisei')
    if mm==2:
      if dd>29:
        print('TBD')
      else:
        print('Heisei')
    if mm==4:
      if dd>30:
        print('TBD')
      else:
        print('Heisei')

Submission status: Accepted

Solution code:
yy,mm,dd =map(int,input().split('/'))
x = 0
if(yy<=2019):
  if(mm<=4):
    if(dd<=30):
      x = 1
         
if(x == 1):
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = str(input())
a = s.split('/')
year = int(a[0])
month = int(a[1])
day = int(a[2])
if year <= 2018 :
    print('Heisei')
elif month <= 4 :
    print('Heisei')
else :
    print('TBD')

Submission status: Accepted

Solution code:
s = input().replace('/','')
if s[4:5] == '1':
  print('TBD')
else:
  if int(s[5:6]) > 4:
    print('TBD')
  else:
    print('Heisei')

Submission status: Accepted

Solution code:
S = input()

m = int(S.split("/")[1])

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

print(ans)
print()

Submission status: Accepted

Solution code:
import datetime

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

thedate = datetime.datetime(y, m, d)
TBD = datetime.datetime(2019, 4, 30)
if thedate <= TBD:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
elem = input().split('/')
ans = "Heisei"

if int(elem[0], 10) > 2019:
    ans = "TBD"
elif int(elem[1], 10) > 4:
    ans = "TBD"
elif int(elem[2], 10) > 30:
    ans = "TBD"


print(ans)

Submission status: Accepted

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

Solution code:
import datetime
S = str(input())
strs = S.split('/')

ANS = datetime.date(2019, 4, 30)
IN = datetime.date(int(strs[0]), int(strs[1]), int(strs[2]))
if IN <= ANS:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
a=str(input())
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: Accepted

Solution code:
def main():
    year, month, day = map(str, input().split("/"))
    date_number = int(year+month+day)
    if date_number<=20190430:
        print("Heisei")
    else:
        print("TBD")
main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# https://atcoder.jp/contests/abc119/tasks/abc119_a
s = input()
print("Heisei") if int(s.replace("/", "")) <= 20190430 else print("TBD")

Submission status: Accepted

Solution code:
list = input().split("/")
y = int(list[0])
m = int(list[1])

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

Submission status: Accepted

Solution code:
import datetime as dt
s = input()
s_dt = dt.datetime.strptime(s, '%Y/%m/%d')

if s_dt <= dt.datetime(2019, 4, 30):
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

h = 'Heisei'; t = 'TBD'

if y<=2019 and m<=4 and d<=30:
    print(h)
else:
    print(t)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input().rstrip()
result = 'TBD'
if S <= '2019/04/30':
    result = 'Heisei'

print(result)

Submission status: Accepted

Solution code:
s=input()

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import datetime;

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

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

n = int(y + m + d)

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

Submission status: Accepted

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

#y = y.zfill(4)
n = int(y + m + d)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()
a=int(s[0:4])
b=int(s[5:7])
c=int(s[8:])
if a>=2019 and b>4:
	print("TBD")
else:
	print("Heisei")

Submission status: Accepted

Solution code:
S = [int(x) for x in input().split('/')]
flag = True
if(S[0]<2019):
    flag = False
elif(S[0]==2019):
    if(S[1]<=4):
        flag = False

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

Submission status: Accepted

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

Submission status: Accepted

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

isHeisei = True
if year > 2019:
  isHeisei = False
elif year == 2019:
  if month > 4:
    isHeisei = False
  elif month == 4:
    if date > 30:
      isHeisei = False
      
printstr = "Heisei" if isHeisei else "TBD"
print(printstr)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# A
#
import datetime
s = input()

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

Submission status: Accepted

Solution code:
ri = lambda: int(input())
rl = lambda: list(map(int,input().split()))

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

Submission status: Accepted

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])

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

Submission status: Accepted

Solution code:
S = input()
ymd = "0"
iymd = None

for i in range(4):
    ymd = ymd + S[i]
for i in range(5,7):
    ymd = ymd + S[i]
for i in range(8,10):
    ymd = ymd + S[i]

iymd = int(ymd)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime

s = input()
date = s.split("/")
if datetime.date(int(date[0]), int(date[1]), int(date[2])) <= datetime.date(2019, 4, 30):
    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('TBD')

Submission status: Accepted

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

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

import sys, re
from collections import deque, defaultdict, Counter
from math import sqrt, hypot, factorial, pi, sin, cos, radians, log10
if sys.version_info.minor >= 5: from math import gcd
else: from fractions import gcd 
from heapq import heappop, heappush, heapify, heappushpop
from bisect import bisect_left, bisect_right
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul, xor
from copy import copy, deepcopy
from functools import reduce, partial
from fractions import Fraction
from string import ascii_lowercase, ascii_uppercase, digits
from datetime import date

def input(): return sys.stdin.readline().strip()
def list2d(a, b, c): return [[c] * b for i in range(a)]
def list3d(a, b, c, d): return [[[d] * c for j in range(b)] for i in range(a)]
def ceil(x, y=1): return int(-(-x // y))
def round(x): return int((x*2+1) // 2)
def fermat(x, y, MOD): return x * pow(y, MOD-2, MOD) % MOD
def lcm(x, y): return (x * y) // gcd(x, y)
def lcm_list(nums): return reduce(lcm, nums, 1)
def gcd_list(nums): return reduce(gcd, nums, nums[0])
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def Yes(): print('Yes')
def No(): print('No')
def YES(): print('YES')
def NO(): print('NO')
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7

y, m, d=map(int, input().split('/'))
d1=date(y, m, d)
d2=date(2019, 4, 30)

if d1 <= d2:
    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:
y, m, d = map(int, input().split("/"))
if y>2019 or (y==2019 and m>4):
  print("TBD")
else:
  print("Heisei")

Submission status: Accepted

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

Submission status: Accepted

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

if y<=2018 :
    c = 'Heisei'
elif y==2019 and m<=4 :
    c = 'Heisei'
else :
    c = 'TBD'

print(c)

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:
a = input().split('/')

y = int(a[0])
m = int(a[1])
d = int(a[2])
if m <= 4:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
S = input()

T = "2019/05/01"

print("Heisei" if S < T else "TBD")

Submission status: Accepted

Solution code:
import datetime

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

T = datetime.datetime.strptime("2019/05/01", "%Y/%m/%d")

print("Heisei" if S < T else "TBD")

Submission status: Accepted

Solution code:
from datetime import datetime


s = raw_input()
f = '%Y/%m/%d'
c = datetime.strptime('2019/04/30', f).date()
d = datetime.strptime(s, f).date()

if d <= c:
  print 'Heisei'
else:
  print 'TBD'

Submission status: Accepted

Solution code:
from datetime import datetime

s = raw_input()

f = '%Y/%m/%d'
c = datetime.strptime('2019/04/30', f).date()
d = datetime.strptime(s, f).date()

if d <= c:
  print 'Heisei'
else:
  print 'TBD'

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Thu Feb 28 18:53:10 2019

@author: yuta
"""

S = input()
def main(s):
    yyyymmdd = s.rsplit("/")
    yyyy = int(yyyymmdd[0])
    mm   = int(yyyymmdd[1])
    dd   = int(yyyymmdd[2])
    if yyyy < 2019:
        print("Heisei")
    elif yyyy > 2019:
        print("TBD")
    else:
        if mm < 4:
            print("Heisei")
        elif mm > 4:
            print("TBD")
        else:
            if dd <= 30:
                print("Heisei")
            else:
                print("TBD")
main(S)

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = str(input())
y = list(n.split("/"))

datetime = int(y[0] + y[1] + y[2])

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

Submission status: Accepted

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

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

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

print('TBD')

Submission status: Accepted

Solution code:
s=str(input())
if int(s[0:4])*10000+int(s[5:7])*100+int(s[8:10])>20190430:
  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:
s = list(input())
for i in range(4):
    if i == 0:
        y = int(s[i])*1000
    elif i == 1:
        y += int(s[i])*100
    elif i == 2:
        y += int(s[i])*10
    else:
        y += int(s[i])
for i in range(5,7):
    if i == 5:
        m = int(s[i])*10
    else:
        m += int(s[i])
for i in range(8,10):
    if i == 8:
        d = int(s[i])*10
    else:
        d += int(s[i])
if y <= 2019:
    if m <= 4:
        if d <= 30:
            print("Heisei")
        else:
            print("TBD")
    else:
        print("TBD")

else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
S_split = S.split("/")
(year, month, day) = (int(S_split[i]) for i in range(3))

if month > 4:
    print("TBD")

else:
    print("Heisei")

Submission status: Accepted

Solution code:
from datetime import datetime

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