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()
YMD = S.split('/')
MD = int(''.join(YMD[1:]))

answer = 'Heisei' if MD <= 430 else 'TBD'
print(answer)

Submission status: Accepted

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

if(Y == 2019):
    if(M > 4):
        print('TBD')
    else:
        print('Heisei')

elif(Y > 2019):
    print('TBD')
elif(Y < 2019):
    print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

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

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

h='Heisei'
t = 'TBD'

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

Submission status: Accepted

Solution code:
y,m,d = input().split("/")
x = int(y + m + d)
if x <= 20190430:
  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:
y,m,d=map(int,input().split("/"))
print("Heisei" if m<=4 else "TBD")

Submission status: Accepted

Solution code:
n=input()

if int(n[5]+n[6])>4:
    print("TBD")

elif int(n[5]+n[6])==4 and int(n[8]+n[9])>30:
    print("TBD")

else:
    print("Heisei")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
from collections import deque
input = sys.stdin.readline

Y, M, D = map(int, input().split('/'))
if Y < 2019 :
    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:
S = input()
s = list(S)
year = int(s[0] + s[1] + s[2] + s[3])
month = int(s[5] + s[6])
day = int(s[8] + s[9])
if year <2019:
    print('Heisei')
elif month < 5:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
S = str(input())

S = S.split("/")

if int(S[0]) <= 2019:
  if int(S[0])==2019 and (int(S[1])*100+int(S[2]))<=430:
    print("Heisei")
  else:
    print("TBD")
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:
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 a > 2019:
  print("TBD")
elif a == 2019:
  if b> 4:
    print("TBD")
  else:
    print("Heisei")
else:
  print("Heisei")

Submission status: Accepted

Solution code:
s = list(map(int, input().split('/')))
if s[0] <= 2019:
        if s[1] <= 4:
                if s[2] <= 30:
                        print('Heisei')
                else:
                        print('TBD')
        else:
                print('TBD')
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:
print("Heisei" if "2019/04/30" >= input() else "TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime

input = input()

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:
y, m, d = map(int,input().split('/'))

if 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 = datetime.strptime(input(), "%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()

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

ans = "TBD"

if year < 2019:
    ans = "Heisei"

if (year == 2019) and (month <= 4):
    ans = "Heisei"

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
list_num = [int(num) for num in input().split("/")]

if (list_num[0] <= 2018) :
    print("Heisei")
elif (list_num[0] == 2019) and (list_num[1] <= 4) :
    print("Heisei")
else :
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
def f():
    string = input()
    number = string[0:4] + string[5:7] + string[-2:]
    number = int(number)

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

f()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime

S = input()

dt_base = datetime.datetime.strptime("2019/04/30", "%Y/%m/%d")
dt = datetime.datetime.strptime(S, "%Y/%m/%d")

td = dt - dt_base

if td.total_seconds() <= 0:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
import datetime
str=input()
in_day = datetime.datetime.strptime(str, '%Y/%m/%d')
d_day = datetime.datetime(2019,4,30)

count = in_day - d_day
if count.days>0:
  print('TBD')
else:
  print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


# aとbの最大公約数
def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)


# aとbの最小公倍数
def lcm(a, b):
    g = gcd(a, b)
    return a / g * b


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

    for a, b in [(y, 2019), (m, 4), (d, 30)]:
        if a < b:
            print("Heisei")
            return
        elif a > b:
            print("TBD")
            return

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime
if '2019-04-30' >= input().replace('/','-'):
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
y,m,d = input().split("/")
flag = False
if(int(y) > 2019) :
  flag = True
elif(int(y) == 2019):
  if(int(m)>=5):
    flag = True
print("TBD" if flag else "Heisei")

Submission status: Accepted

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

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

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import datetime
l = map(int,input().split('/'))
S = datetime.date(*l)
b = datetime.date(2019,4,30)
if S<=b: print("Heisei")
else: print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
Y, M, D = [int(s) for s in input().split('/')]
print('TBD' if M >= 5 else 'Heisei')

Submission status: Accepted

Solution code:
S = str(input())
#021021334/51607/829410
YYYY=int(S[0:4])
MM=int(S[5:7])
DD=int(S[8:10])
#print(YYYY,MM,DD)

if YYYY>=2019 and MM>=5:
  print("TBD")
else:
  print("Heisei")
# 2019 年 4 月 30 日またはそれ以前なら 、そうでなければ TBD と出力するプログラムを書いてください。

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

a = S.split('/')
if int(a[1]) <= 4:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
s=input()

a=int(s[5])
b=int(s[6])

if a==1 or b>=5:
  print("TBD")
  
else:
  print("Heisei")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = list(input().split('/'))
S = [int(a) for a in S]
if S[1]<=3:
    print('Heisei')
elif S[1]==4 and S[2]<=30:
    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:
S = input().split('/')

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

Submission status: Accepted

Solution code:
from datetime import datetime

s = str(input())

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

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

Submission status: Accepted

Solution code:
s = input()
s = s.split('/')
if (s[1] <= '04' and s[2] <= '30'):
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
s = input()
foo = s.split('/')
if int(foo[1]) <= 4 and int(foo[2]) <= 30:
  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:
#!/usr/bin/env python3
import sys


def solve(S: str):
    t = S.split("/")
    hi = int("".join(t))

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

# Generated by 1.1.4 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:
a,b,c = map(int,input().split("/"))
if(b>=5):
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
S=list(input().split("/"))
S_i="".join(S)
ANS=int(S_i)
N=20190430
if ANS>N:
     print("TBD")
else:
     print("Heisei")

Submission status: Accepted

Solution code:
S = input()

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

flag = True
if y < 2019:
    flag = False
if y == 2019 and m < 5:
    flag = False

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

Submission status: Accepted

Solution code:
from sys import stdin
S = stdin.readline().rstrip()
heisei = '2019/04/30'
if S > heisei:
    print('TBD')
else:
    print('Heisei')

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S = input()

year   = S[0:4]
month  = S[5:7]
day    = S[8:10]

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

Submission status: Accepted

Solution code:
import datetime
y,m,d = map(int,input().split('/'))
a = datetime.date(y,m,d)
b = datetime.date(2019,4,30)
c = (a-b).days
if c <= 0:
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

Solution code:
import datetime
y,m,d = input().split('/')
y = int(y)
m = int(m)
d = int(d)
a = datetime.date(y,m,d)
b = datetime.date(2019,4,30)
c = (a - b).days
if c <= 0:
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

if  s[1] > 4:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

Solution code:
import sys


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

# N = int(input())
# A = [int(x) for x in input().split()]
# a, b, c = map(int, input().split())
# name1 = str(input())
# alph = {"A": 1, "B": 2, "C": 3, "D": 4, "E": 5}


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# input
S = input()
if S[-5:-3] <= '04':
    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()
m = int(S.split("/")[1])
HEISEI = "Heisei"
TBD = "TBD"
if m <= 4:
    ret = HEISEI
else:
    ret = TBD
print(ret)

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

s = input()
# s = '2019/04/30'

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

date1 = datetime.datetime(2019, 4, 30)
date2 = datetime.datetime(y, m, d)

if date1 < date2:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime

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

Sdate = datetime.date(S[0], S[1], S[2])
Heisei = datetime.date(2019, 4, 30)

if Sdate <= Heisei:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Mon May 13 21:30:18 2019

@author: avina
"""

s = input().strip()
a = int(s[:4]); b = int(s[5:7]);c = int(s[8:])
f = 2019 - a + (4 - b)//100 + (30 - c)//10000
if f >=0:
  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:
import sys
input = sys.stdin.readline

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

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

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:
from sys import stdin


def main():
    y, m, d = [int(x) for x in stdin.readline().rstrip().split('/')]
    print('Heisei' if m <= 4 else 'TBD')


if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

"""
from datetime import datetime
S=input()
to_dt=datetime.strptime(S,'%Y/%m/%d')
# 2019/04/30
from_dt=datetime(2019,4,30)
# 2019/04/30以前であれば、"Heisei"
# 以降は"TBD"
if to_dt <= from_dt:
 print("Heisei")
else:
 print("TBD")
"""

Submission status: Accepted

Solution code:
# abc119_a
from datetime import datetime
S=input()
to_dt=datetime.strptime(S,'%Y/%m/%d')
# 2019/04/30
from_dt=datetime(2019,4,30)
# 2019/04/30以前であれば、"Heisei"
# 以降は"TBD"
if to_dt <= from_dt:
 print("Heisei")
else:
 print("TBD")

Submission status: Accepted

Solution code:
# abc119_a
from datetime import datetime
S=input()
to_dt=datetime.strptime(S,'%Y/%m/%d')
from_dt=datetime(2019,4,30)
if to_dt <= from_dt:
 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 and m<4:
    print("Heisei")
elif y==2019 and m==4 and d<=30:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime

S = input()
a = "2019/04/30"

S_dateformated = datetime.datetime.strptime(S, "%Y/%m/%d")
a_dateformated = datetime.datetime.strptime(a, "%Y/%m/%d")

if S_dateformated<=a_dateformated:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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


if y >= 2019 and m >= 5:
    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:
    print("TBD")
elif month < 4:
    print("Heisei")
elif month > 4:
    print("TBD")
elif day <= 30:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
s = input()
day = (s.split("/"))
if int(day[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:
if 20190430 >= int(input().replace("/","")):
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

if S[1]<=4:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
S = input() # yyyy/mm/dd
if (S < "2019/05/01") :
    print("Heisei")
else :
    print("TBD")

Submission status: Accepted

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

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

Submission status: Accepted

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

date_1 = datetime.datetime(2019,4,30)
date_2 = datetime.datetime(y,m,d)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from _datetime import datetime

def main():
    S = list(map(int, input().split('/')))
    year = S[0]
    month = S[1]
    day = S[2]
    converted_datetime = datetime(year, month, day).strftime('%s')
    flg_datetime = datetime(2019, 4, 30).strftime('%s')
    if converted_datetime <= flg_datetime:
        print('Heisei')
    else:
        print('TBD')
main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime

str = input()
dte = datetime.datetime.strptime(str, '%Y/%m/%d')
dte = datetime.date(dte.year, dte.month, dte.day)

if dte <= datetime.date(2019, 4, 30):
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(["TBD","Heisei"][input()[5:7]<"05"])

Submission status: Accepted

Solution code:
from datetime import datetime
f = datetime.strptime
if (f('2019/04/30', '%Y/%m/%d') - f(input(), '%Y/%m/%d')).days >= 0:
    print('Heisei')
else: print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from datetime import datetime as dt
s = input()

date = dt.strptime(s,'%Y/%m/%d')

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

Submission status: Accepted

Solution code:
from datetime import datetime as dt


if __name__ == '__main__':
    S = str(input())

    last_day = dt.strptime('2019/04/30', '%Y/%m/%d')
    S_datetime = dt.strptime(S, '%Y/%m/%d')


    if S_datetime <= last_day:
        print('Heisei')
    else:
        print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8
from datetime import date


def main():
    year, month, day = map(int, input().split('/'))
    given = date(year, month, day)
    border = date(2019, 4, 30)

    if given <= border:
        print('Heisei')
    else:
        print('TBD')

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
from datetime import date

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

s = datetime.date(y, m, d)
h = datetime.date(2019, 4, 30)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
m = int(s[5:7])

if m > 4:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
Y,M,D=[int(s) for s in input().split("/")]
print("Heisei" if Y<2019 or (Y==2019 and M<4) or (Y==2019 and M==4 and D<=30) else  "TBD")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
s = int(s.replace("/",""))
if s > 20190430:
  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:
# coding: utf-8

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

x = 'TBD'
if y <= 2019:
    if m <= 4:
        x = 'Heisei'

print(x)

Submission status: Accepted

Solution code:
a, b, c = (int(_) for _ in input().split("/"))
if b <= 4:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

Solution code:
S = str(input())
lists = []
for i in range(len(S)):
    if i == 4 or i == 7:
        continue
    else:
        lists.append(S[i])
m = "".join(lists)
if int(m) > 20190430:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
S = input()
year = int(S[0:4])
month = int(S[5:7])
day = int(S[8:])
if(year < 2019):
    print("Heisei")
elif(year >= 2019):
    if(month < 5):
        print("Heisei")
    elif(month >= 5):
        print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

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

main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import datetime
S=input().split("/")
S=''.join(S)
S = datetime.datetime.strptime(S, '%Y%m%d')
HEISEI =datetime.datetime(2019,4,30)

if HEISEI<S:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

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

result = 'Heisei'
if S[0] < 2019:
    print(result)
    exit(0)

if S[0] == 2019 and S[1] < 4:
    print(result)
    exit(0)

if S[0] == 2019 and S[1] == 4 and S[2] <= 30:
    print(result)
    exit(0)
result = 'TBD'
print(result)

Submission status: Accepted

Solution code:
y, m, d = map(int, input().split('/'))
#print (y, m, d)
if m <= 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")
elif M <= 4:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

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

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

if __name__ == "__main__":
    solve()