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: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split("/"))
print(["TBD","Heisei"][a*365+b*31+c>=737089])

Submission status: Wrong Answer

Solution code:
a = input()
if int(a[5]) == 1:
  print('TBD')
else:
  if int(a[6]) > 4:
    print('TBD')
  else:
    print('heisei')

Submission status: Wrong Answer

Solution code:
a = input()
if int(a[5]) != 1:
  if int(a[6]) > 4:
    print('TBD')
  elif int(a[6]) < 3:
    print('heisei')
  else:
    if int(a[8]) < 2:
      print('heisei')
    else:
      if int(a[9]) > 0:
        print('heisei')
      else:
        print('TBD')
else:
  print('TBD')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=str(input())
ans="Heisei"
if int(s[:4])<2019:
    ans="TBD"
    
elif int(s[:4])==2019:
    if int(s[6:7])<=4:
        if int(s[8:])<30:
            ans="TBD"
print(ans)

Submission status: Wrong Answer

Solution code:
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
#a = [input() for _ in range(n)]

s = input()

year = int(s[0:4])
month = int(s[6:7])
day = int(s[8:9])

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

Submission status: Wrong Answer

Solution code:
S = list(input())

if S[5] == '1':
    print('TBD')

elif S[6] == '1' or '2' or '3' or '4':
    print('Heisei')
else:
    print('TBD')

Submission status: Wrong Answer

Solution code:
S = list(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.buffer.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.buffer.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7

s = rr()
if s[5:5+2] > '04':
  print('Heisei')
else:
  print('TBD')

Submission status: Wrong Answer

Solution code:
S = input()

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

if y < "2019":
    print("Heisei")

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

elif (y == "2019") and (m == "4") and (d <= "30"):
    print("Heisei")

elif (y == "2019") and (m == "4") and (d > "30"):
    print("TBD")

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

elif (y > "2019"):
    print("TBD")

Submission status: Wrong Answer

Solution code:
import datetime
t = datetime.datetime.strptime("2019/04/30","%Y/%m/%d")
s = datetime.datetime.strptime(input(),"%Y/%m/%d")
print("Heise") if t>=s else print("TBD")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import datetime as d
def main():
    s = d.datetime.strptime(input(), "%Y/%m/%d")
    s = d.date(s.year, s.month, s.day)
    if s <= d.date(2019,4,30):
        print("Heisei")
    else:
        print("TDB")

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
s = input()
print(2*min(s.count('1'), s.count('0')))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

a = int(s[6])

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

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

if(m <= 4 and d <=30):
  print("Heisei")
else:
  print("TBL")

Submission status: Wrong Answer

Solution code:
import re
s=input()
a=re.search('([0-9]{4})/([0-9]{2})/([0-9]{2})',s)
if int(str(a.group(2)))<=4:
    print('Heosei')
else:
    print('TBD')

Submission status: Wrong Answer

Solution code:
import re
s=input()
a=re.search('([0-9]{4})/([0-9]{2})/([0-9]{2})',s)
print(a.group(2))
if int(str(a.group(2)))<=4:
    print('Heosei')
else:
    print('TBD')

Submission status: Wrong Answer

Solution code:
import re
s=input()
h=re.fullmatch(r'2019/(\d+)/(\d+)',s)
if h.groups(1)=='04'or h.groups(1)=='03'or h.groups(1)=='02'or h.groups(1)=='01':
    print('Heosei')
else:
    print('TBD')

Submission status: Wrong Answer

Solution code:
s=input()

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

Submission status: Wrong Answer

Solution code:
def main():
  s = input()
  if int(s[0:4])<=2018:
    print( "Heisei" )
  elif int(s[0:4])==2019:
    if int(s[5:6])<=4:
      print( "Heisei" )
    else:
      print( "TBD" )
  else:
      print( "TBD" )
  
main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=input()
if s[5:7] in '010203':
  print('Heisei')
elif s[6:7] == '4' and int(s[-2:-1]) <= 30:
  print('Heisei')
else:
  print('TBD')

Submission status: Wrong Answer

Solution code:
s=input()
if s[6:7] in '123':
  print('Heisei')
elif s[6:7] == '4' and int(s[-2:-1]) <= 30:
  print('Heisei')
else:
  print('TBD')

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: <encoding name> -*-

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
if s[5::] == "04/30":
  print("Heisei")
else:
  print("TBD")

Submission status: Wrong Answer

Solution code:
s=input()

if int(s[:4]) < 2019:
    print("Heisei")
else:
    if int(s[5:7]) in ["01","02","03","04"]:
        print("Heisei")
    else:
        print("TBD")

Submission status: Wrong Answer

Solution code:
s = input()

print(s[:4])
print(s[5:7])
print(s[:4])

if int(s[:4]) <= 2019:
    if int(s[5:7]) <= 4:
        if int(s[8:]) <= 30:
            print("Heisei");exit()
print("TBD")

Submission status: Wrong Answer

Solution code:
s=str(input())
s=list(s)
print(s)
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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
if S[5:7] == "12>=05":
  print("TBD")
else:
  print("Heisei")

Submission status: Wrong Answer

Solution code:
S = input()
if S[5:7] == "12>=5":
  print("TBD")
else:
  print("Heisei")

Submission status: Wrong Answer

Solution code:
S = input()
if S[5:7] == 12>=5:
  print("TBD")
else:
  print("Heisei")

Submission status: Wrong Answer

Solution code:
S = input()
T = (12>=5)
if S[5:7] == T:
  print("TBD")
else:
  print("Heisei")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
T = ("2019/05/01")
if S[5:7] == T:
  print("TBD")
else:
  print("Heisei")

Submission status: Wrong Answer

Solution code:
S = input()
T = ("2019/4/31")
if S[0:-1] == T:
  print("TBD")
else:
  print("Heisei")

Submission status: Wrong Answer

Solution code:
S = input()
T = ("2019/05/01")
if S[0:-1] == T:
  print("TBD")
else:
  print("Heisei")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
print("Heisei" if S[-4:-5] < "05" else "TBD")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if l[0] > 2019:
    print('TBD')
else:
    if l[1] > 5:
        print('TBD')
    else:
        if l[2] >30:
            print('TBD')
        else:
            print('Heisei')

Submission status: Wrong Answer

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

if l[0] > 2019:
    print('TBD')
else:
    if l[1] > 5:
        print('TBD')
    else:
        print('Heisei')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
s = input()
if s[3] == '8':
  print('Heisei')
elif 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: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
def resolve():
    s=input()
    nen=int(s[:4])
    getu=int(s[5:7])
    if nen>2019:
        print('TBD')
    elif nen==2019 and getu>5:
        print('TBD')
    else:
        print('Heisei')
resolve()

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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:
    if int(S[2]) <= 30:
      print('Heisei')
else:
  print('Heisei')

Submission status: Wrong Answer

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')
  else:
    if int(S[2]) < 30:
      print('TBD')
    else:
      print('Heisei')
else:
  print('TBD')

Submission status: Wrong Answer

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')
  else:
    if int(S[2]) < 30:
      print('TBD')
    else:
      print('Heisei')
else:
  print('Heisei')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

if int(s[6])<4:
    ans = "Heisei"
elif int(s[6]) == 4:
    if int(s[8])<3:
        ans = "Heisei"
    else:
        ans = "TBD"
else:
    ans = "TBD"

print(ans)

Submission status: Wrong Answer

Solution code:
s = input()

if int(s[6])<4:
    ans = "TBD"
elif int(s[6]) == 4:
    if int(s[8])<3:
        ans = "Heisei"
    else:
        ans = "TBD"
else:
    ans = "Heisei"

print(ans)

Submission status: Wrong Answer

Solution code:
s = input()

if int(s[6])<4:
    ans = "TBD"
elif int(s[6]) == 4:
    if int(s[8])<3:
        ans = "TBD"
    else:
        ans = "Heisei"
else:
    ans = "Heisei"

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=input().split("/")
if int(S[0])>=2019 and int(S[1])>=5:
    print("TBD")
else:
    print("heisei")

Submission status: Wrong Answer

Solution code:
y, m, d = map(int, input().split("/"))
if y * 365 + m * 12 + d > 2019 * 365 + 4 * 12 + 30:
  print("TBD")
else:
  print("Heisei")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = input()
d = 'Heisei'
if int(a[0:4]) ==2019:
  if int(a[5:7]) == 4:
    if int(a[8:10]) <30:
      d = 'TBD'
  elif int(a[5:7]) <=3:
    d = 'TBD'
elif int(a[0:4]) <= 2018:
  d = 'TBD'
print(d)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if y<2018:
  ans='Heisei'
if y==2019 and m<4:
  ans='Heisei'
if y==2019 and m==4 and d<=30:
  ans='Heisei'
else:
  ans='TBD'
print(ans)

Submission status: Wrong Answer

Solution code:
s = str(input())

if int(s[:4]) >= 2019 and int(s[5:7]) >= 5:
  print('HBD')
else:
  print('Heisei')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()

year = int(S[0:3])
month = int(S[5:6])
day = int(S[8:9])

if (S > "2019/05/01"):
	print("TBD")
else:
	print("Heisei")

Submission status: Wrong Answer

Solution code:
S = input()
a = int(S[5])
b = int(S[6])

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split("/"))
if a*10000+b*100+c<=20190430:
    print('HEISEI')
else:
    print('TBD')

Submission status: Wrong Answer

Solution code:
S = input()

print('Heisei' if S <= '2019/4/30' else "TBD")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:

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


if x[0]<2019:
    print("HEISEI")
elif x[0]==2019 and x[1]<=4:
    print("HEISEI")
    
elif x[1]>4 and x[0]==2019:
    print("TBD")   
else:
    print("TBD")

Submission status: Wrong Answer

Solution code:

x=list(map(int,input().split("/")))
print(x[0])

if x[0]<2019:
    print("HEISEI")
elif x[0]==2019 and x[1]<=4:
    print("HEISEI")
    
elif x[1]>4 and x[0]==2019:
    print("TBD")   
else:
    print("TBD")

Submission status: Wrong Answer

Solution code:
# https://atcoder.jp/contests/abc119/tasks/abc119_a
y, m, d = map(int, input().split('/'))
if y > 2019:
    print('TBD')
elif m > 5:
    print('TBD')
else:
    print('Heisei')

Submission status: Wrong Answer

Solution code:
# https://atcoder.jp/contests/abc119/tasks/abc119_a
y, m, d = map(int, input().split('/'))
if y > 2019:
    print('TBD')
elif m > 5:
    print('TBD')
elif d > 31:
    print('TBD')
else:
    print('Heisei')

Submission status: Wrong Answer

Solution code:
S = input()
ans = "TBD"
if int(S[:4]) <= 2018:
  ans = "Heisei"
elif int(S[:4]) ==2019 and int(S[6:7]) <=4:
  ans = "Heisei"
  
print( ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = "2019/04/30"

month = int(s[5:7])
if month >= 5:
    print "TBD"
else:
    print "HeiSei"

Submission status: Wrong Answer

Solution code:
S=raw_input()
month=int(S[5:7])
if month>=5:
  print "TBD"
else:
  print "HeiSei"

Submission status: Wrong Answer

Solution code:
s = raw_input()

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

Submission status: Wrong Answer

Solution code:
a, b, c = (int(i) for i in input().split('/'))
n = a*1e7 + b*1e3 + c*10
if n > 20190430:
  print('TBD')
else:
  print('Heisei')

Submission status: Wrong Answer

Solution code:
"""
author : halo2halo
date : 16, Jan, 2020
"""

import sys
import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

YMD = readline().decode('utf8').rstrip().split('/')
print(YMD)
MD=int(''.join(YMD[1:]))
print('Heisei' if MD <=430 else 'TBD')

Submission status: Wrong Answer

Solution code:
def main():
    #import sys
    #input = sys.stdin.readline

    s = input()
    if int(''.join(s.split('/'))) < 20190430:
        print('Heisei')
    else:
        print('TBD')
    
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
def main():
    import sys
    input = sys.stdin.readline

    s = input()
    if int(''.join(s.split('/'))) < 20190430:
        print('Heisei')
    else:
        print('TBD')
    
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

S = input()

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

if S_date <= base_date:
    print('HEISEI')
else :
    print('TBD')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
if int(s[0:3]) <= 2019 and int(s[6]) <= 4 and int(s[8:9]) <= 30:
  print("Heisei")
else:
  print("TBD")

Submission status: Wrong Answer

Solution code:
s = input()
if int(s[0:3]) <= 2019 and int(s[5:6]) <= 4 and int(s[8:9]) <= 30:
  print("Heisei")
else:
  print("TBD")

Submission status: Wrong Answer

Solution code:
s = (input())
if int(s[0:3]) <= 2019 and int(s[5:6]) <= 4 and int(s[8:9]) <= 30:
  print("Heisei")
else:
  print("TBD")

Submission status: Wrong Answer

Solution code:
s = input()
if s[5::6] >= "04" and s[8::9] >= "30":
  print("Heisei")
else:
  print("TBD")

Submission status: Wrong Answer

Solution code:
s = input()
if s[0::3] <= "2019" and s[5::6] <= "04" and s[8::9] <= "30":
  print("Heisei")
else:
  print("TBD")

Submission status: Wrong Answer

Solution code:
s = input()
if s[5::6] <= "04" and s[8::9] <= "30":
  print("Heisei")
else:
  print("TBD")