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

Submission status: Accepted

Solution code:
import itertools
import math
import fractions
import functools
s = input()
y = int(s[0]) * 1000 + int(s[1]) * 100 + int(s[2]) * 10 + int(s[3])

m = int(s[5]) * 10 + int(s[6])
d = int(s[8]) * 10 + int(s[9])

if (y == 2019 and m > 4) or y >= 2020:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

Solution code:
A,B,C = map(int,input().split("/"))
if A == 2019:
  if B<5:
    print("Heisei")
  else:
    print("TBD")
elif A <= 2018:
  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:
a,b,c=map(int,input().split('/'))
if a<2019 or (a==2019 and (b==1 or b==2 or b==3 or b==4)):
    print('Heisei')
else:
    print('TBD')

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

Submission status: Accepted

Solution code:
_,b,c=map(int,input().split('/'));print("HTeBiDs e i"[b>4and c>0::2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
ans = 'Heisei'
if int(S[5:7]) > 4:
    ans = 'TBD'
if int(S[8:10]) > 30:
    ans = 'TBD'
print(ans)

Submission status: Accepted

Solution code:
a,b,c= map(int,input().split('/'))
if a>2019:
  print('TBD')
elif a==2019 and b>=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()

ok = True
if int(s[0:4]) > 2019:
    ok = False

if int(s[0:4]) == 2019 and int(s[5:7] + s[8:]) > 430:
    ok = False

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

Submission status: Accepted

Solution code:
s = input()
year = s[:4]
month = s[5:7]
day = s[8:]
flag = False

if int(month) > 4:
    flag = True
if flag:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
s = input()
if s[5] == "1":
    print("TBD")
elif s[6] == "4" or s[6] == "3" or s[6] == "2" or s[6] == "1":
    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:
a,b,c = input().split("/")
if int(a+b+c) <= 20190430:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
S = ""
n = input().split("/")
for i in range(3):
    S += n[i]
if int(S) <= 20190430:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
year,month,day = input().split('/')
if int(year) == 2019:
    if int(month) <= 4:
        print("Heisei")
    else:
        print("TBD")
elif int(year) >= 2018:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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


def main():
    S = input().rstrip()

    y, m, d = map(int, S.split("/"))
    if y <= 2018:
        ans = "Heisei"
    elif y == 2019:
        if m <= 3:
            ans = "Heisei"
        elif m == 4:
            if d <= 30:
                ans = "Heisei"
            else:
                ans = "TBD"
        else:
            ans = "TBD"
    else:
        ans = "TBD"

    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime

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

if S<=th:
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
yyyy, mm, dd = [int(n) for n in s.split("/")]
print("Heisei" if mm < 5 else "TBD")

Submission status: Accepted

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

Submission status: Accepted

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

S = input()

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

Submission status: Accepted

Solution code:
# ABC119A

s = input()
if int(s[0:4])*10000 + int(s[5:7])*100 + int(s[8:10]) <= 20190430:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if l[0] <= 2019 and l[1] <= 4 and l[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 = int(''.join(input().split('/')))
if(s <= 20190430):print('Heisei')
else:print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# A - Still TBD

S = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
y = S[:4]
m = S[5:7]
d = S[8:]
if y <= "2019" and m <= "04" and d <= "30":
    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()
y = int(s[0:4])
m = int(s[5:7])
d = int(s[8:10])
if y > 2019:
    print("TBD")
elif y==2019 and	m>4:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
y,m,d=map(int,input().split('/'));print(["TBD","Heisei"][m<5])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()
if S[5:7]=='01'or S[5:7]=='02' or S[5:7]=='03' or S[5:7]=='04':
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

Solution code:

def solve():

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


if __name__ == "__main__":
    solve()

Submission status: Accepted

Solution code:

s = list(input())
y = int(s[0]+s[1]+s[2]+s[3])
m = int(s[5]+s[6])
d = int(s[8]+s[9])

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=['2019/04/30']
s.append(input())
s.sort()
if s[0]=='2019/04/30':
    if s[1]=='2019/04/30':
        print('Heisei')
    else:
        print('TBD')
else:
    print('Heisei')

Submission status: Accepted

Solution code:
s=input()
seireki=int(s[0:4])
tsuki=int(s[5:7])
if seireki<=2018:
  print("Heisei")
elif seireki==2019 and tsuki<=4:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

Solution code:
S = input()

suji = S.replace('/', '')
date = int(suji)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
s = input().replace("/", "")
h = "20190430"
print("Heisei") if s <= h else print("TBD")

Submission status: Accepted

Solution code:
#copy

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

Submission status: Accepted

Solution code:
moji = str(input())
if int(moji[0:4]) < 2019:
  print("Heisei")
elif int(moji[0:4]) == 2019:
  if int(moji[5:6]) == 0 and int(moji[6:7])<=4:
    print("Heisei")
  else:
    print("TBD")
else:
  print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
s = input()
mm = int(s[5:7])
dd = int(s[9:11])
if mm <=4:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
def resolve():
    s=input()
    nen=int(s[:4])
    getu=0
    if s[5]==0:
        getu=int(s[6])
    else:
        getu=int(s[5:7])

    if nen>2019:
        print('TBD')
    elif nen==2019 and getu>=5:
        print('TBD')
    else:
        print('Heisei')
resolve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()

j = 0
if int(s[0:4]) < 2019:
    j=1
elif (int(s[0:4]) == 2019) and (int(s[5:7]) <= 4):
    j=1
else:
    pass

if j==1:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
Y, M ,T = input().split("/")
Y = int(Y)
M = int(M)
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

d = datetime.datetime.strptime(input(), "%Y/%m/%d")
t = datetime.datetime.strptime('2019/04/30', "%Y/%m/%d")
print('HTeBiDs e i'[d > t::2])

Submission status: Accepted

Solution code:
S=input()

if S[5:7]>'04':
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

Solution code:
def still_tdb(s):

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
s = input()

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

yup = False
if y < 2019:
  yup = True
elif y == 2019:
  if m < 4:
    yup = True
  elif m == 4:
    if d <= 30:
      yup = True
    
      
      
if not yup: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 time
def main():
    S = input()
    h = time.strptime("2019/04/30", "%Y/%m/%d")
    target = time.strptime(S, "%Y/%m/%d")
    if target <= h:
        print("Heisei")
    else:
        print("TBD")
if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

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

if year < 2019:
	print("Heisei")
elif year > 2019:
	print("TBD")
else:
	if month < 4:
		print("Heisei")
	elif month > 4:
		print("TBD")
	else:
		if day <= 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:
#!/usr/bin/env python3

def main():
    s = input()
    m = int(s[5:7])
    d = int(s[8:10])
    if m * 100 + d <= 430:
        print("Heisei")
    else:
        print("TBD")

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input().rstrip()
month = int(s[5:7])
if month >= 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 = input()

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

Submission status: Accepted

Solution code:
s=input()

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

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

Submission status: Accepted

Solution code:
S=list(input())
year=int(''.join(S[0:4]))
month=int(''.join(S[5:7]))
day=int(''.join(S[8:10]))
if year<2019:
    print('Heisei')
elif year==2019 and month<=4:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
s = input()
tmp = int(s[0]+s[1]+s[2]+s[3])



if tmp <= 2019 and int(s[5]+s[6]) < 5:
    if int(s[6]) < 5:
        print("Heisei")

else:
    print("TBD")

Submission status: Accepted

Solution code:
print("TBD" if eval(input().replace('/',''))>20190500 else "Heisei")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

m = int(s[5] + s[6])

if m >= 5:
  print("TBD")

else:
  print("Heisei")

Submission status: Accepted

Solution code:
from datetime import datetime

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

datetime_20190430 = datetime(2019, 4, 30)
datetime_S = datetime(S[0], S[1], S[2])

answer = 'Heisei' if datetime_S <= datetime_20190430 else 'TBD'

print(answer)

Submission status: Accepted

Solution code:
# coding: utf-8
import sys

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

S = sr()
month = int(S[5:7])
bl = month <= 4
print('Heisei' if bl else 'TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

year = int(S[0:4])
if (S[5] == '0'):
    month = int(S[6])
else:
    month = int(S[5:7])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = ["2019","04","30"]
a=list(map(str,input().split('/')))
f = 0
if a[0]<=n[0] and a[1]<=n[1] and a[2]<=n[2]:
        f=1
        print("Heisei")
if f==0:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input().split('/')
if int(S[0])*365+int(S[1])*30+int(S[2])<=737085:
    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:
import time
from datetime import date
S = list(map(int, input().split("/")))
day = date(S[0], S[1], S[2])
border = date(2019, 4, 30)
if day <= border:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
y,m,d = map(int,input().split('/'))
if y<=2018: print('Heisei')
elif y>=2020: print('TBD')
elif m>=5: print('TBD')
else: print('Heisei')

Submission status: Accepted

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

else:ans="TBD"
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:
icase=0
if icase==0:
    s=input()
    yyyy=int(s[0:4])
    mm=int(s[5:7])
    dd=int(s[8:])
    if yyyy<2019:
        print("Heisei")
    elif yyyy==2019 and mm<4:
        print("Heisei")
    elif yyyy==2019 and mm==4 and dd<=30:
        print("Heisei")
    else:
        print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
def solve(S):
    if int(S[0])*1000+int(S[1])*100+int(S[2])*10+int(S[3]) > 2019:
        return 'TBD'
    if int(S[0])*1000+int(S[1])*100+int(S[2])*10+int(S[3]) < 2019:
        return 'Heisei'
    if int(S[5])*10+int(S[6]) > 4:
        return 'TBD'
    if int(S[5])*10+int(S[6]) < 4:
        return 'Heisei'
    return 'Heisei'
print(solve(S))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import math
import collections
import sys

#input = sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def LI2(): return [int(input()) for i in range(n)]
def MXI(): return [[LI()]for i in range(n)]

s=input()
val=int(s[5:7]+s[8:10])
#print(val)
if val<=430:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
s=input()
if s[5]=='0':
  if s[6]=='1' or s[6]=='2' or  s[6]=='3' or s[6]=='4':
    print('Heisei')
  else:
    print('TBD')
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('/')
for i in range(len(s)):
  s[i] = int(s[i])
if s[0]<2019:
  print('Heisei')
elif s[0]>2019:
  print('TBD')
elif s[1]<=4:
  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 and 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("Heisei" if m<=4 else "TBD")
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:
a = input()
b =a[0]+a[1]+a[2]+a[3]+a[5]+a[6]+a[8]+a[9]
c =int(b)
if c <= 20190430:
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:

s = list(input())

if (int(s[5])*10 + int(s[6])) <= 4 and (int(s[8])*10 + int(s[9])) <=30:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np
import sys

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

Submission status: Accepted

Solution code:
s = input()
a = s[:4] + s[5:7] + s[8:10]
ans = int(a)
tmp = 20190430
if ans <= tmp:
    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 and m<=4:
        print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
s = input()

if int(s[5]) == 0 and int(s[6])<=4:
    ans = "Heisei"
else:
    ans = "TBD"

print(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 S<="2019/04/30" else "TBD")

Submission status: Accepted

Solution code:
S = input()

print("Heisei" if int(S[5])*10+int(S[6]) <= 4 else "TBD" )

Submission status: Accepted

Solution code:
S = input()
print('Heisei' if S[5:7] < '04' or (S[6] == '4' and S[8:] < '31') else 'TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime
s=datetime.datetime.strptime(input(),"%Y/%m/%d")
d=datetime.datetime.strptime("2019/04/30","%Y/%m/%d")
print("Heisei" if s<=d 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:
nancy = 'TBD' if int(input().split('/')[1]) > 4 else 'Heisei'
print(nancy)

Submission status: Accepted

Solution code:
# from math import factorial,sqrt,ceil
# from itertools import permutations as permus
# from fractions import gcd
# from collections import deque,Counter
from datetime import date
# from decimal import Decimal, getcontext
# # getcontext().prec = 1000
# # eps = Decimal(10) ** (-100)

# import numpy as np
# from scipy.sparse.csgraph import shortest_path, dijkstra, floyd_warshall, bellman_ford, johnson
# from scipy.sparse import csr_matrix

# strlist = "abcdefghijklmnopqrstuvwxyz"
y,m,d = map(int,input().split("/"))
S = date(y,m,d)
F = date(2019,4,30)

ans = "TBD"
if S<=F:
    ans = "Heisei"

print(ans)
# print(*ans)   # unpackして出力。間にスペースが入る
# for row in board:
#     print(*row,sep="")    #unpackして間にスペース入れずに出力する
# print("{:.10f}".format(ans))
# print("{:0=10d}".format(ans))

Submission status: Accepted

Solution code:
import sys
IS = lambda: sys.stdin.readline().rstrip()
II = lambda: int(IS)
MII = lambda: list(map(int, IS.split()))

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

# s = "2019/11/01"
yyyy = int(s[0:4])
mm = int(s[5:7])
dd = int(s[8:10])


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

Submission status: Accepted

Solution code:
import sys
input = lambda: sys.stdin.readline().rstrip()


S = input()

y = S[:4]
m = S[5:7]
d = S[8:10]

new_S = y + m + d

if int(new_S) > 20190430:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
S = str(input())
s = [S[i] for i in range(len(S))]

yer = int(S[0])*1000 + int(S[1])*100 + int(S[2])*10 + int(S[3])
mon = int(S[5])*1000 + int(S[6])*100 + int(S[8])*10 +int(S[9])
if mon > 430:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()
if int(s[:4])<2019:
    print("Heisei")
    print("3")
elif int(s[:4])>2019:
    print("TBD")
elif int(s[5])==1 or int(s[6])>4:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
if (S[0:4]<='2019') and (S[5:7]<='04') and (S[8:10]<='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:
from datetime import datetime

S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if y < 2020:
  if m < 5:
    print("Heisei")
  else:
    print("TBD")
else:
  print("TBD")

Submission status: Accepted

Solution code:
import sys
import os

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
fl = lambda: list(map(float, sys.stdin.buffer.readline().split()))
iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
sl = lambda: list(map(str, sys.stdin.buffer.readline().decode().split()))
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

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


if __name__ == '__main__':
    main()

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()
if int(s[5:7])<=4 and int(s[8:9])<=30:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
S = input()
y, m, d = S.split('/')
ans = 'TBD'
if int(m)<=4:
    ans = 'Heisei'
print(ans)
#print(*ans, sep='\n')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ABC-119-A
S = input().split("/")
ans = ""

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