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:
if(20190430<int("".join(str(e) for e in input().split("/")))):print("TBD")
else:print("Heisei")

Submission status: Accepted

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

n2=list1[1]

if n2 <= '04':
    print ('Heisei')
else:
    print ('TBD')

Submission status: Accepted

Solution code:
def heisei():
  print('Heisei')
  exit(0)


def tbd():
  print('TBD')
  exit(0)


s = input()

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

if y < 2019:
  heisei()
elif y == 2019:
  if m < 4:
    heisei()
  elif m == 4:
    if d <= 30:
      heisei()

tbd()

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

s = input()

def heisei_checker(string):
    if int(string[:4]) >= 2019 and int(string[5:7]) >= 5:
        return "TBD"
    else:
        return "Heisei"


print(heisei_checker(s))

Submission status: Accepted

Solution code:
s=input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=str(input())

if int(s[:4])>=2020:
        print('TBD')
else:
        if int(s[:4])<=2018:
                print('Heisei')
        elif int(s[5:7])>=5:
                print('TBD')
        else:
                print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def solve():
    s = input()
    d = int(s.replace("/", ""))
    return "Heisei" if d <= 20190430 else "TBD"


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()

s=s[5:7]

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

Submission status: Accepted

Solution code:
import math

# inputList=[]
# for i in range(6):
#     inputNum = input()
#     inputList.append(inputNum)
inputa = input().split("/")
# inputb = input().split()

a = int(inputa[0])
b = int(inputa[1])
c = int(inputa[2])

# x = int(inputb[0])
# y = int(inputb[1])

if b < 5:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
def test():
    a = list(map(int,input().split("/")))

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


if __name__ == "__main__":
    test()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

day = int(s[0:4])*10000 + int(s[5:7])*100 + int(s[8:])
if day <= 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)
boundary = datetime.date(2019, 4, 30)

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

Submission status: Accepted

Solution code:
s = str(input())
day = int(s[5]+s[6]+s[8]+s[9])
if day <= 430:
    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:
_,m,_=map(int, input().split('/'))
if 4 < m:  print('TBD')
else:      print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from datetime import datetime as dt

S = input()
H = dt.strptime("2019/04/30","%Y/%m/%d")
d = dt.strptime(S, "%Y/%m/%d")
print("Heisei" if d<=H else "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:
s = input().split("/")
t = int("".join(s))
if t <= 20190430:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
s = s.replace("/","")
if int(s[0:4])<2019:
  print("Heisei")
elif int(s[0:4]) ==2019:
  if int(s[4:6]) <=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 and d<=30):
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:

import datetime

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

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

Submission status: Accepted

Solution code:
s = input()
ss = s.split('/')
sss = int(''.join(ss[1:]))

if sss <= 430:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
date = input().split("/")
year = int(date[0])
month = int(date[1])
day = int(date[2])
if (year == 2019 and month <= 4) or year <= 2018:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()
y=int(s[0:4])
m=int(s[5:7])
d=int(s[8:])
if 100*y+m<=201904:
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

Solution code:
"""
# 標準入力取得
## 文字列
 = sys.stdin.readline().rstrip()
 = list(sys.stdin.readline().rstrip())

## 数値
 = int(sys.stdin.readline())
 = map(int, sys.stdin.readline().split())
 = list(map(int, sys.stdin.readline().split()))
 = [list(map(int,list(sys.stdin.readline().split()))) for i in range(h)]  # 二次元配列入力　二次元マップみたいな入力のとき

# 0埋め, 小数点出力桁指定時のときの出力
a = 100
b = 0.987654321
print("{0:06d}-{1:6f}".format(a,b))
000100-0.987654

# 文字列をリストに格納
char_list = list("abcd") # ["a","b","c","d"]
"""

import math
import sys
import itertools
import queue
from fractions import gcd

def lcm(a, b):
    return a * b // gcd(a, b)

mod = 1000000007

if __name__ == "__main__":
    S = sys.stdin.readline().rstrip()
    if int(S[5:7]) < 5:
        print("Heisei")
    else:
        print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
a = S.split("/")
y = int(a[0])
m = int(a[1])
d = int(a[2])

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

Submission status: Accepted

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

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



if __name__ == '__main__' :
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import datetime

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

i_date = datetime.date(y, m, d)
b_date = datetime.date(2019, 4, 30)

if i_date <= b_date:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from datetime import datetime
D = input()
day = datetime.strptime(D, '%Y/%m/%d')

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#119  Still TBD

S = input()

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

Submission status: Accepted

Solution code:


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

# print(arr)

flag = False

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


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

Submission status: Accepted

Solution code:
S = input()

if S <= '2019/04/30':
  nengou = 'Heisei'
else :
   nengou =  'TBD'

print( nengou)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
Y, M, D = map(int, input().split('/'))
if Y>2019:
    print('TBD')
elif Y==2019 and M>=5:
    print('TBD')
elif Y==2019 and M==4 and D>30:
    print('TBD')
else:
    print('Heisei')

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:
import datetime

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

s=datetime.date(s[0],s[1],s[2])
print('Heisei' if s<=datetime.date(2019,4,30) else 'TBD')

Submission status: Accepted

Solution code:
s = input()

s1 = int(s[5])
s2 = int(s[6])

if s1 == 1:
    print('TBD')
elif s2 <= 4:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:

import datetime as dt
s_date = dt.datetime.strptime(input(), '%Y/%m/%d').date()
print('Heisei' if (s_date - dt.date(2019, 4, 30)).days <= 0 else 'TBD')

Submission status: Accepted

Solution code:
s = input()

s = s.split("/")
temp = ["01", "02", "03", "04"]

if int(s[0]) < 2019:
    print("Heisei")
elif int(s[0]) == 2019 and s[1] in temp:
    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:
s=input()
y=int(s[:4])
print("Heisei" if y<2019 or (y==2019 and int(s[5:7])<5) else "TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
y, m, d = (str(_) for _ in input().split('/'))
if int(y) > 2019:
    print('TBD')
elif int(y) == 2019 and int(m) >= 5:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
"""
# 標準入力取得
## 文字列
 = sys.stdin.readline().rstrip()
 = list(sys.stdin.readline().rstrip())

## 数値
 = int(sys.stdin.readline())
 = map(int, sys.stdin.readline().split())
 = list(map(int, sys.stdin.readline().split()))
 = [list(map(int,list(sys.stdin.readline().split()))) for i in range(h)]  # 二次元配列入力　二次元マップみたいな入力のとき

# 0埋め, 小数点出力桁指定時のときの出力
a = 100
b = 0.987654321
print("{0:06d}-{1:6f}".format(a,b))
000100-0.987654

# 文字列をリストに格納
char_list = list("abcd") # ["a","b","c","d"]
"""

import math
import sys
import itertools
import queue
import datetime
from fractions import gcd

def lcm(a, b):
    return a * b // gcd(a, b)

mod = 1000000007

if __name__ == "__main__":
    S = sys.stdin.readline().rstrip()
    d = datetime.datetime.strptime(S,"%Y/%m/%d")
    k = "2019/04/30"
    if k >= S:
        print("Heisei")
    else:
        print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

s = 10000*y+100*m+d
if s < 20190500:
    print("Heisei") 
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

S = input()

month = int(S.split('/')[1])

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

Submission status: Accepted

Solution code:
y,m,d = [int(i) for i in 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:
s = input()
if int(s[5:7]) <= 4:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print("HTeBiDs e i"[int(input().replace("/",""))>20190430::2])

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:
x = input()
y=x.replace('/','')
if int(y) <=20190430:
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

Solution code:
S = str(input())
month = S[5:7]
heisei = ["01","02","03","04"]
if month in heisei:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

Solution code:
S = input().split("/")
year, month, day = map(int, S)
if year < 2019:
    print('Heisei')

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

Submission status: Accepted

Solution code:
s = input().split("/")
num = int(s[0]+s[1]+s[2])
if num > 20190430:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

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

y = s[0]
m = s[1]
d = s[2]

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:
print('Heisei' if int(input()[5:7])<=4 else 'TBD')

Submission status: Accepted

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

Submission status: Accepted

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

year  = int(str_in[0])
month = int(str_in[1])

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input().split("/")
#print(s)
a=int(s[0])*10000+int(s[1])*100+int(s[2])
                     
if a>20190430:
  print("TBD")
else:
  print("Heisei")

Submission status: Accepted

Solution code:

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


heisei = False
heisei = heisei or y < 2019
heisei = heisei or y == 2019 and m < 4
heisei = heisei or y == 2019 and m == 4 and d <= 30

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

Submission status: Accepted

Solution code:
s = input()

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

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

if month < 4:
    flag = True

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

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

Submission status: Accepted

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

Submission status: Accepted

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

isH = True
if y > 2019:
    isH = False
elif y == 2019:
    if m > 4:
        isH = False
    elif m == 4:
        if d > 30:
            isH = False
if isH:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

import datetime as dte

a=dte.datetime(y,m,d)
b=dte.datetime(2019,4,30)

res='TBD'

if a<=b:
	res='Heisei'

print(res)

Submission status: Accepted

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

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

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:
S=list(map(int,input().split('/')))
if S[1]<=4:
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
date = input().split("/")
bomb = 0
for d in range(len(date)):
  if d == 0:
    if int(date[d]) < 2019:
      bomb += 1
      break
  elif d == 1:
    if int(date[0]) == 2019:
      if int(date[d]) <= 4:
        bomb += 1
        break
if bomb == 0:
  print("TBD")
else:
  print("Heisei")

Submission status: Accepted

Solution code:
import datetime

date_str = str(input())
date_formatted = datetime.datetime.strptime(date_str, "%Y/%m/%d")

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

print("Heisei" if date_formatted <= heisei_end_formatted else "TBD")

Submission status: Accepted

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

list = ""

list = S[0] + S[1] + S[2]

list = int(list)


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

Submission status: Accepted

Solution code:
import datetime
a = input().split("/")
a = datetime.date(int(a[0]), int(a[1]), int(a[2]))
b = datetime.date(2019,4, 30)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
S = input()
y, m, d = map(int, S.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: Accepted

Solution code:
S = input()
y, m, d = int(S[:4]), int(S[5:7]), int(S[8:])
print('Heisei' if y<2019 or (y==2019 and (m<4 or (m==4 and d<=30))) else 'TBD')

Submission status: Accepted

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

if date[0] < 2019:
    print('Heisei')
elif date[0] == 2019 and date[1] < 4:
    print('Heisei')
elif date[0] == 2019 and date[1] == 4 and date[2] <= 30:
    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("Heisei")
    else:
        print("TBD")

Submission status: Accepted

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

if int(s[1]) == 4 and int(s[2])<=30:
  print('Heisei')
elif int(s[1]) <= 4:
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

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

# input
S = input()

# solve & output
print('Heisei' if S <= '2019/04/30' else '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()
print("TBD" if int(S[0:4]) >= 2019 and int(S[5:7]) >= 5 else "Heisei")

Submission status: Accepted

Solution code:
import datetime

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if m*100+d <= 430:
    out = "Heisei"
else:
    out ="TBD"
    
print(out)

Submission status: Accepted

Solution code:
import sys
s=list(map(int,(input().split('/'))))
month=s[1]
day=s[2]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
y,m,d = map(int, input().split('/'))
tmp = y * 10000 + m * 100 + d
print('Heisei' if tmp <= 20190430 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:
s = input()
 
d = str(s).split('/')
if int(d[1]) >= 5:
  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()
test = S.split("/")
x = int(test[0])
y = int(test[1])
if x <= 2018 :
  print('Heisei')
if x == 2019:
  if y <= 4:
    print('Heisei')
  else:
    print('TBD')
else:
    print('TBD')

Submission status: Accepted

Solution code:
A = input()

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
s=str(input())
a = s.split('/')
if int(a[1])<=4:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

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:
s1, s2, s3 = map(int, input().split('/'))

if s1 > 2019:
    print('TBD')
elif s1 < 2019:
    print('Heisei')
else:
    if s2 >= 5:
        print('TBD')
    else:
        print('Heisei')