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

Submission status: Accepted

Solution code:
import datetime

s = input()
year, month, day = map(int, s.split('/'))
d = datetime.date(year, month, day)
if d <= datetime.date(2019, 4, 30):
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

A = None

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#abc119a

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

Submission status: Accepted

Solution code:
def solve(s):
    return "Heisei" if (s <= "2019/04/30") else "TBD"
assert solve("2019/04/30") == "Heisei"
assert solve("2019/11/01") == "TBD"
print(solve(input()))

Submission status: Accepted

Solution code:
from datetime import date
y,m,d=map(int,input().split('/'))
f=date(y,m,d)>=date(2019,5,1)
print('TBD' if f else 'Heisei')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
y,m,d = (int(i) for i in input().split("/"))
if m>4: print("TBD")
else: print("Heisei")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

splited = s.split("/")

if int(splited[0]) > 2019:
    print("TBD")
elif int(splited[1]) > 4:
    print("TBD")
elif int(splited[2]) > 30:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
d = str(input())
y = int(d[0:4])
m = int(d[5:7])
d = int(d[8:])
if y <= 2018:
    print("Heisei")
    exit()
else:
    if y == 2019 and m <= 4 and d <= 30:
        print("Heisei")
        exit()
print("TBD")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
y, m, d = list(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().split("/")
if int(s[1]) <= 4:
  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:
y,m,d=map(int,input().split("/"))
if m<5:
  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:
print('TBD' if int(input().split('/')[1]) > 4 else 'Heisei')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


def heisei(y, m, d):
    if int(y) < 2019:
        return 'Heisei'
    elif int(y) > 2019:
        return 'TBD'
    elif int(y) == 2019:
        if int(m) > 4:
            return 'TBD'
        elif int(m) < 4:
            return 'Heisei'
        elif int(m) == 4:
            if int(d) == 30:
                return 'Heisei'
            elif int(d) > 30:
                return 'TBD'
            else:
                return 'Heisei'


print(heisei(y, m, d))

Submission status: Accepted

Solution code:
print('TBD' if input()[5:7] > '04' else '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 <= '2019/04/30':
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from datetime import datetime
a = list(map(int,input().split("/")))
if a[0] <= 2019 and a[1] <= 4 and a[2] <= 30:
    print("Heisei")
else :
    print("TBD")

Submission status: Accepted

Solution code:
S = input()

Y = S[:4]
M = S[5:7]
D = S[-2:]

if int(M) >= 5:
    print('TBD')
elif int(M) <= 4:
    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:
import datetime 
  
# date in yyyy/mm/dd format 
date_entry = input()
year, month, day = map(int, date_entry.split('/'))

d1 = datetime.datetime(year, month, day) 
d2 = datetime.datetime(2019, 4, 30) 
  
# Comparing the dates will return 
# either True or False 

if d1<=d2:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

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

if __name__ == '__main__':
    a = input()
    a = a.split('/')
    year = int(a[0])
    month = int(a[1])
    date = int(a[2])
    if year > 2019:
        print('TBD')
    elif year < 2019:
        print('Heisei')
    elif month < 4:
        print('Heisei')
    elif month > 4:
        print('TBD')
    elif date <= 30:
        print('Heisei')
    else:
        print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

if num1[0] <= 2018:
    print("Heisei")

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

Submission status: Accepted

Solution code:
import datetime


S = input()

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

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

Submission status: Accepted

Solution code:
S = input()

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

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

Submission status: Accepted

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



if a[0]== 2019 and a[1]<5:
    print("Heisei")
elif a[0]<2019 and a[1]< 12:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

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

Submission status: Accepted

Solution code:
s=input()
a="2"
if int(s[0])!=2:
        ans="TBD"
else:
        for i in range(1,4):
                a=a+s[i]
        for j in range(5,7):
                a=a+s[j]
        for l in range(8,10):
                a=a+s[l]
        if 20190430>=int(a):
                ans="Heisei"
        else:
                ans="TBD"
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def A():
    year, month, day = (int(x) for x in input().split('/'))
    if year <= 2018:
        print("Heisei")
    elif year <=2019 and month <= 4 and day <= 30:
        print("Heisei")
    else:
        print("TBD")
    return 0

if __name__== '__main__':
    A()

Submission status: Accepted

Solution code:
S=list(input())
a=int(S[0]+S[1]+S[2]+S[3])
b=int(S[5]+S[6])
if a<=2019 and b<=4:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
a=input().split('/')
if int(a[1])<=4:
  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) <= 2018:
    print('Heisei')
elif (int(Year) == 2019) and (int(Month) <=4):
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
input_date = input()
date_array = input_date.split('/')

year = int(date_array[0])
month = int(date_array[1])
day = int(date_array[2])

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

yyyy = int(S[:4])
mm = int(S[5:7])
dd = int(S[8:10])

if yyyy < 2019:
    print('Heisei')
elif yyyy == 2019:
    if mm <= 4:
        print('Heisei')
    else:
        print('TBD')
else:
    print('TBD')

Submission status: Accepted

Solution code:
import datetime

date = datetime.datetime.strptime(raw_input(),'%Y/%m/%d')
cri_date = datetime.datetime(2019,4,30)

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

Submission status: Accepted

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


if m=='01'or m=='02' or m=='03' or m=='04':
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

if y <= 2018:
  print('Heisei')
  exit()
elif m <= 4:
  print('Heisei')
  exit()
print('TBD')

Submission status: Accepted

Solution code:
S = input()
s = S.split('/')
ss = int(s[1])
res = 'aaa'

if ss<=4:
	res = "Heisei"

if ss >=5:
	res = "TBD"
print(res)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


if int(a) > 20190430:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

Solution code:
S = input()

A = S.split('/')

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

Submission status: Accepted

Solution code:
SEIREKI = '2019/04/30'

inputData = input()
ans = ""
if inputData <= SEIREKI:
    ans = 'Heisei'
else:
    ans = 'TBD'
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
from datetime import datetime

def main():
    line = sys.stdin.readline().strip()
    today = datetime.strptime(line, "%Y/%m/%d")
    TBD = datetime(2019, 5, 1)
    if today < TBD:
        print("Heisei")
    else:
        print("TBD")

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# _*_ coding:utf-8 _*_
#  Atcoder_Beginners_Contest119-A
#  TODO https://atcoder.jp/contests/abc119/tasks/abc119_a

def solveProblem(HeiseiOrTBD):
	if(HeiseiOrTBD <= "2019/04/30"):
		answer="Heisei"
	else:
		answer="TBD"
	return answer


if __name__ == '__main__':
	S = str(input().strip())
	solution = solveProblem(S)
	print("{}".format(solution))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
S = S.split("/")
y= int(S[0])
m= int(S[1])
d= int(S[2])
if y < 2019:
  print("Heisei")
elif y == 2019:
  if m <= 4:
    print("Heisei")
  else:
    print("TBD")
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 = [int(x) for x in input().split("/")]
f = (s[0] < 2019) or (s[0] == 2019 and s[1] <= 4)
if f:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

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

year = 2019 - int(sp[0])
month =int(sp[1]) -4
day = 30 - int(sp[2])

if year == 0 and month == 0 and day == 0:
  print("Heisei")
else:
  if year >= 0:
    if month > 0:
      print("TBD")
    else:
      print("Heisei")
  else:
    print("Heisei")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
from datetime import date
# ----------------------------------------------------------------
# Use Solve Function

def solve(lines):
    y,m,d = map(int, lines.pop(0).split('/'))
    d = date(y,m,d)
    heisei_end = date(2019,4,30)
    if heisei_end >= d:
        print('Heisei')
    else:
        print('TBD')


#
# main
#
lines = [x.strip() for x in sys.stdin.readlines()]

#
# solve !!
#
solve(lines)

Submission status: Accepted

Solution code:
import datetime
time = input()
time_object = datetime.datetime.strptime(time, '%Y/%m/%d')
timestamp = int(time_object.timestamp())
print('TBD' if timestamp > 1556550000 else 'Heisei')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy

#n = int(input())
m = list(map(int, input().split("/")))
r = 'Heisei' if m[0] * 10000 + m[1]  * 100 + m[2] <= 20190430 else 'TBD'

print(r)

Submission status: Accepted

Solution code:
s = input()
h = "Heisei"
t = "TBD"
els =  s.split("/")
y = int(els[0])
m = int(els[1])
d = int(els[2])
if y < 2019:
    print(h)
elif m < 4:
    print(h)
elif m == 4 and d <= 30:
    print(h)
else:
    print(t)

Submission status: Accepted

Solution code:
s = input() #文字列入力
year = int(s[0:4])
month = int(s[5:7])
day = int(s[8:10])

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input().split('/')
date = ''
for i in s:
    date += i
print('Heisei') if int(date) <=20190430 else print('TBD')

Submission status: Accepted

Solution code:
S = input()
Y = S[0:4]
M = S[5:7]
D = S[8:10]
if int(Y)<2019:
  print("Heisei")
elif int(M) < 5 and int(Y) == 2019:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

Solution code:
l=list(map(int,input().split('/')))
from datetime import *
a=date(2019,4,30)
b=date(l[0],l[1],l[2])
if a<b:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

Solution code:
#!usr/bin/env python3
from collections import defaultdict
from heapq import heappush, heappop
import math
import bisect
import random
def LI(): return list(map(int, input().split()))
def I(): return int(input())
def LS(): return input().split()
def S(): return list(input())
def IR(n): return [I() for i in range(n)]
def LIR(n): return [LI() for i in range(n)]
def SR(n): return [S() for i in range(n)]
def LSR(n): return [LS() for i in range(n)]
mod = 1000000007

#A
s = input().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("TBD")
        else:
            print("Heisei")
    else:
        print("Heisei")
else:
    print("Heisei")
#B

Submission status: Accepted

Solution code:
temp_S = (input().split("/"))
S = []
for i in range(3):
	S.append(int(temp_S[i]))
	
if S[0] > 2020:
	print('TBD')
elif S[0] < 2018:
	print('Heisei')
elif S[1] > 4:
	print('TBD')
elif S[1] < 4:
	print('Heisei')
elif S[2] > 30:
	print('TBD')
else:
	print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
date = list(map(int,input().split("/")))
year = date[0]
manth = date[1]
day = date[2]

if manth >= 5:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
input = list(map(str, input().split("/")))
# 文字列の入力
heisei=20190430
input_kai=int(input[0].zfill(4)+input[1].zfill(2)+input[2].zfill(2))

if input_kai<=heisei:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    y, m, d = [int(i) for i in input().split(sep="/")]
    if y > 2019:
        print("TBD")
    elif y == 2019:
        if m >= 5:
            print("TBD")
        else:
            print("Heisei")
    else:
        print("Heisei")

Submission status: Accepted

Solution code:
import datetime

inp = str(input())
dateHeiseiEnd = datetime.datetime(2019, 5, 1, 0, 0, 0)
dateInput = datetime.datetime.strptime(inp, "%Y/%m/%d")

if dateInput < dateHeiseiEnd:
	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:
S = str(input()).split('/')
S_ = [int(x) for x in S]
if(S_[0]<=2019 and S_[1]<=4 and S_[2]<=30):
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

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

def io_generator():
	while True:
		yield raw_input()

#+++++++++++++++++++

def main(io):
	s=io.next()
	ret='Heisei' if s < '2019/04/31' else 'TBD'
	return ret


#++++++++++++++++++++

if __name__ == "__main__":
	io=io_generator()
	print main(io)

Submission status: Accepted

Solution code:
y, m, d = [int(x) for x in input().split('/')]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:


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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()
tuki=int(S[5:7])
hi=int(S[8:10])
if tuki>=5:
  print("TBD")
else:
  print("Heisei")

Submission status: Accepted

Solution code:
y,m,d = [int(x) for x in input().split('/')]
if y<2019:print("Heisei")
elif y==2019 and m<=4:print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
y, m, d = [int(i) for i in input().split("/")]
if m  < 4:
    print("Heisei")
elif m > 4:
    print("TBD")
else:
    if d <= 30:
        print("Heisei")
    else:
        print("TBD")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

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

heisei_flag = False
if year < 2019:
   heisei_flag = True
else:
    if month <= 4:
       heisei_flag = True
if heisei_flag:
   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:
S = input()

if 2019 < int(S[0:4]):
    print('TBD')

elif 2019 == int(S[0:4]):

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

else:
    print('Heisei')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
y, m, d = map(int, input().split('/'))

ymd = y * 10000 + m * 100 + d

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

Submission status: Accepted

Solution code:
from sys import stdin
n = int(stdin.readline().rstrip().replace("/", ""))

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

Submission status: Accepted

Solution code:
A = input()

# #for i in range(int(4)):
# a_y = int(A[0]) * 1000
# b_y = int(A[1]) *100
# c_y = int(A[2])*10
# d_y = int(A[3])

# yyyy = a_y + b_y + c_y + d_y
#print(yyyy)
if int(A[5])!=0:
    mm = (int(A[5])*10) + (int(A[6]))
else:
    mm = int(A[6])

if int(A[8])!=0:
    dd = (int(A[8])*10) + (int(A[9]))
else:
    dd = int(A[9])
    

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

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

Submission status: Accepted

Solution code:
import datetime

x = input()
x_date = datetime.datetime.strptime(x, '%Y/%m/%d')

y = datetime.datetime(2019, 4, 30, 0, 0, 0)

if x_date <= y :
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
from sys import stdin
yymmdd = int(stdin.readline().rstrip().replace("/", ""))

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

Submission status: Accepted

Solution code:
S = input()
#print(S)
SA = S.split("/")
#print(SA)
if int(SA[0]) > 2019:
   out ='TBD'
elif int(SA[0]) == 2019:
   if int(SA[1]) > 4:
      out ='TBD'
   elif int(SA[1]) ==  4:
      if int(SA[2]) <= 30:
         out ='Heisei'
      else:
         out ='TBD'
   else:
         out ='Heisei'
else:
   out ='Heisei'
print(out)

Submission status: Accepted

Solution code:
s=input()
yy=int(s[:4])
mm=int(s[5:7])
dd=int(s[8:])
if yy<2019:
    print("Heisei")
elif yy==2019:
    if mm<4:
        print("Heisei")
    elif mm==4:
        if dd<=30:
            print("Heisei")
        else:
            print("TBD")
    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:
y, m, d = [int(s) for s in input().split('/')]

if y > 2019:
  print('TBD')
elif y < 2019:
  print('Heisei')
else: # y == 2019
  if m < 5:
    print('Heisei')
  else:
    print('TBD')

Submission status: Accepted

Solution code:
s = input().split('/')
mm = int(s[1])
dd = int(s[2])
if mm <= 4 and dd <= 31:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def func(a):
    if int(a[1]) < 5:
        return "Heisei"
    else:
        return "TBD"
P = input().split("/")
print(func(P))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 文字列の入力
import datetime

s = input()

dt = datetime.datetime.strptime(s, '%Y/%m/%d')
endheisei = datetime.datetime(2019,4,30)

if  dt > endheisei:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
S = input()
A= S[:4]
B =S[5:7]
C =S[8:]

ans = "TBD"

if int(A) == 2019:
    if B[0] == "0":
        if int(B[1]) <= 4:
            if C[0] == "0":
                ans = "Heisei"
            elif int(C) <= 30:
                ans = "Heisei"
elif int(A) < 2019:
    ans = "Heisei"

print(ans)

Submission status: Accepted

Solution code:
import datetime
a=input()
year=a[0:4]
month=a[5:7]
day=a[8:10]

comp1 = datetime.datetime(int(year), int(month), int(day))
comp2 = datetime.datetime(2019 , 4 , 30)   

if comp1 > comp2:
    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:10])
if year < 2019:
  print("Heisei")
  exit()
elif year > 2019:
  print("TBD")
  exit()
if month < 4:
  print("Heisei")
  exit()
elif month > 4:
  print("TBD")
  exit()
print("Heisei")

Submission status: Accepted

Solution code:
a=input()
arr=a.split("/")
if int(arr[0])<=2018 or int(arr[1])<4 or int(arr[1])==4 and int(arr[2])<=30:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

Solution code:
S=input()
nen=int(S[0:4])
tuki=int(S[5:7])
hi=int(S[8:10])

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

Submission status: Accepted

Solution code:
# Still TBD
import sys
import datetime

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

def check(date):
    a = datetime.datetime.strptime('2019/04/30', "%Y/%m/%d")
    if date <= a :
        return "Heisei"
    else :
        return "TBD"

print(check(S))

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
s =  input()

time = s.replace('/', '')
sliceyear=time[0:4]
slicemonth=time[4:6]

if int(sliceyear)<2019:
    print("Heisei")
elif int(sliceyear)==2019 and int(slicemonth)<5:
    print("Heisei")
else:
     print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

yyyy = int(yyyy)
mm = int(mm)
dd = int(dd)

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

Submission status: Accepted

Solution code:
from datetime import datetime

input_ = raw_input()
date = datetime.strptime(input_, '%Y/%m/%d')
if date > datetime.strptime("2019/04/30", '%Y/%m/%d'):
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
 
date = input().split('/')
 
if(int(date[0]) >= 2020):
  print('TBD')
elif(int(date[0]) == 2019 and int(date[1]) >=5):
  print('TBD')
else:
  print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8
S = str(input())
S = S.replace("/", "")
S = int(S)
if S > 20190430:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_s = input()
elems = input_s.split('/')
date = [int(elem) for elem in elems]
year, month, day = date
if (year > 2019):
    print('TBD')
elif(year < 2019):
    print('Heisei')
else:
    if(month > 4):
        print('TBD')
    elif(month < 4):
        print('Heisei')
    else:
        print('Heisei')

Submission status: Accepted

Solution code:
print('TBD'*(input()[5:]>'04/30')or'Heisei')

Submission status: Accepted

Solution code:
#coding:utf-8

if __name__ == "__main__":

    i = str(input())

    j = i.split('/')

    if int(j[0]) < 2019:
        print("Heisei")
    elif int(j[1]) < 5:
        print("Heisei")
    else:
        print("TBD")

Submission status: Accepted

Solution code:
a = input()

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

else:
    print("TBD")

Submission status: Accepted

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