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:
y, m, d = map(int, input().split('/'))
if y*10000+m*100+d > 20190430:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a=input()
b=int(a[0:4])
c=int(a[5:7])
d=int(a[8:10])

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

Submission status: Accepted

Solution code:
import sys

s = input().split('/')

y = int(s[0])
m = int(s[1])
d = int(s[2])

if y < 2019:
    print('Heisei')
    sys.exit(0)
if y > 2019:
    print('TBD')
    sys.exit(0)

if m < 4:
    print('Heisei')
    sys.exit(0)
if m > 4:
    print('TBD')
    sys.exit(0)


if d <= 30:
    print('Heisei')
    sys.exit(0)
if m > 30:
    print('TBD')
    sys.exit(0)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
from math import *
from itertools import *
from collections import *
from functools import *
try:
    from math import gcd
except Exception:
    from fractions import gcd


def solve(S: str):
    y, m, d = [int(x) for x in S.split('/')]
    if y < 2019:
        return 'Heisei'
    if y == 2019 and m <= 4:
        return 'Heisei'
    return 'TBD'


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  # type: str
    result = solve(S)
    print(result)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

Solution code:
import datetime

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

d1 = datetime.date(Y,M,D)
d2 = datetime.date(2019, 4, 30)

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

Submission status: Accepted

Solution code:
from __future__ import print_function
import numpy as np
import sys
import math,string,itertools,fractions,heapq,collections,re,array,bisect,copy,functools
# from itertools import accumulate
# from collections import deque
import random

def eprint(*args, **kwargs):
    print(*args, file=sys.stderr, **kwargs)

# S=input()
# print(input().split('/'))
a,b,c=map(int,input().split('/'))

if b>=5:
    print("TBD")
elif c>30:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
date = input()
tdate=[]
 
for s in date:
  tdate.append(s)
  
if tdate[5] != "0":
  mon = int(tdate[5] + tdate[6])
else:
  mon = int(tdate[6])


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

if y<=2018:
    print("Heisei")
elif y>=2020:
    print("TBD")
else:
    if m<=4:
        print("Heisei")
    else:
        print("TBD")

Submission status: Accepted

Solution code:
S = input()

if S[5:7] in ['01', '02', '03', '04']:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from datetime import datetime

S = input()
T = datetime.strptime(S,'%Y/%m/%d')
P = '2019/04/30'
D = datetime.strptime(P,'%Y/%m/%d')

if T <= D:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = str(input())
s = 0
count = 0
for i in reversed(range(len(S))):
    if S[i] != "/":
        s += int(S[i]) * 10**(len(S)-i-count-1)
    else:
        count += 1
    
if s <= 20190430:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import functools

import os

INF = float('inf')


def inp():
    return int(input())


def inpf():
    return float(input())


def inps():
    return input()


def inl():
    return list(map(int, input().split()))


def inlf():
    return list(map(float, input().split()))


def inls():
    return input().split()


def debug(fn):
    if not os.getenv('LOCAL'):
        return fn

    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        print('DEBUG: {}({}) -> '.format(
            fn.__name__,
            ', '.join(
                list(map(str, args)) +
                ['{}={}'.format(k, str(v)) for k, v in kwargs.items()]
            )
        ), end='')
        ret = fn(*args, **kwargs)
        print(ret)
        return ret

    return wrapper

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime

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

Submission status: Accepted

Solution code:
S = str(input())

y = ''
m = ''
d = ''
num = 0
tmp = ''
for index, s in enumerate(list(S)):
  if s == '/':
    if num == 0:
      y = tmp
    elif num == 1:
      m = tmp
    tmp = ''
    num += 1
  else:
    tmp += s
  if index == len(list(S)) - 1:
    d = tmp

if int(y + m + d) > 20190430:
  print("TBD")
else:
  print("Heisei")

Submission status: Accepted

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

if int(S) - 20190430 > 0:
  print('TBD')
else:
  print('Heisei')

Submission status: Accepted

Solution code:
input = input().split("/")
year = int(input[0])
month = int(input[1])

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

Submission status: Accepted

Solution code:
# coding: utf-8
from sys import stdin
Y,M,D = map(int,stdin.readline().rstrip().split("/"))
print("TBD" if M >= 5 else "Heisei")

Submission status: Accepted

Solution code:
# coding: utf-8
from sys import stdin
Y,M,D = map(int,stdin.readline().rstrip().split("/"))
if Y >= 2019 and  M >= 5:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b,c = input().split("/")

s = int(a + b + c)


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

Submission status: Accepted

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

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:
S = input()
match = int(S.replace('/',''))

if 20190430 >= match:
    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:
a, b, c = map(int, input().split("/"))

if int(a) >= 2020:
    print("TBD")
elif a == 2019 and  b >= 5:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
a=input().split("/")
r=','.join(a)
j=r.maketrans({',':''})
u=int(r.translate(j))
i=20190430
if u>i:
  print("TBD")
else:
  print("Heisei")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
from itertools import product

import numpy as np

sys.setrecursionlimit(200000)


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


def ii(t: type = int):
    return t(input())


def il(t: type = int):
    return list(map(t, input().split()))


def imi(N: int, t: type = int):
    return [ii(t) for _ in range(N)]


def iml(N: int, t: type = int):
    return [il(t) for _ in range(N)]


def solve():
    return "Heisei" if ii(str) <= "2019/04/30" else "TBD"


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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC119A - Still TBD
from datetime import datetime

input_date = datetime.strptime(input(), "%Y/%m/%d")
base_date = datetime(2019, 4, 30)

if input_date <= base_date:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# A - Still TBD
# https://atcoder.jp/contests/abc119/tasks/abc119_a

# threshold
TY, TM, TD = 2019, 4, 30

Y, M, D = map(int, raw_input().split('/'))

if M > 4:
    print '{}'.format('TBD')
else:
    print '{}'.format('Heisei')

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
#
# a = list(map(int, input().split('/')))
#
# # print(a)
#
# if a[0] <= 2018:
#     print('Heisei')
# else:
#     if a[0] == 2019 and a[1] <= 4:
#         print('Heisei')
#     else:
#         print('TBD')
#
#

S = input()

S = int(S[5:7])

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

y = int(y)

if int(m[0]) == 0:
    m = int(m[1])
else:
    m = int(m[0]+m[1])

if int(d[0]) == 0:
    d = int(d[1])
else:
    d = int(d[0]+d[1])
    
if y > 2019:
    print('TBD')
elif y == 2019:
    if m > 4:
        print('TBD')
    else:
        print('Heisei')
else:
    print('Heisei')

Submission status: Accepted

Solution code:
from datetime import datetime

S = input()

nowDate = datetime.strptime(S, '%Y/%m/%d')
lastDate =datetime.strptime('2019/04/30', '%Y/%m/%d')

if lastDate < nowDate:
	print("TBD")
else:
	print("Heisei")

Submission status: Accepted

Solution code:
print('Heisei' if input()<'2019/05/01' else 'TBD')

Submission status: Accepted

Solution code:
Y,M,D = input().split("/")
hantei = True

if int(Y) <= 2019:
    if int(M) <= 4:
        if int(D) <= 30:
            print("Heisei")
            hantei = False

if hantei:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()
S=S.replace('/','')
S=list(S)
year=int(S[0]+S[1]+S[2]+S[3])
month=int(S[4]+S[5])
day=int(S[6]+S[7])
if year <= 2018:
  print('Heisei')
elif year >= 2020:
  print('TBD')
elif month <= 3:
  print('Heisei')
elif month >= 5:
  print('TBD')
else:
  print('Heisei')

Submission status: Accepted

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

if y < 2018 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('Heisei')
elif y == 2019:
  if m < 5:
    print('Heisei')
  elif m >= 5:
    print('TBD')
else:
  print('TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from datetime import datetime

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

today = datetime(S[0], S[1], S[2])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = str(input())

def checker(y, m, d):
    if y < 2019: return 'Heisei'
    if y > 2019: return 'Heisei'
    if m  in [1, 2, 3, 4]: return 'Heisei'
    
    return 'TBD'

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = input()
x = [s.strip() for s in i.split('/')]
if int(x[0])<2019:
	print('Heisei')
elif int(x[0])==2019:
	if int(x[1])<5:
		print('Heisei')
	else:
		print('TBD')
else:
	print('TBD')

Submission status: Accepted

Solution code:
s = int(input().replace("/", ""))
print("Heisei" if s <= 20190430 else "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:
a,b,c=list(map(int,input().split('/')))
if b>4:
  print('TBD')
else:
  print('Heisei')

Submission status: Accepted

Solution code:
y,m,d=map(str,input().split('/'))
if int(m[0])==1:
  print('TBD')
elif int(m[1])>4:
  print('TBD')
else:
  print('Heisei')

Submission status: Accepted

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

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:
s = input()
ans = ""
y, m , d = map(int,s.split("/"))
if (y <= 2019) and (m <= 4):
  ans = "Heisei"
else: ans = 'TBD'
print (ans)

Submission status: Accepted

Solution code:
from datetime import datetime

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input().replace("/", ""))
print(["Heisei", "TBD"][not(S<=20190430)])

Submission status: Accepted

Solution code:
#coding:utf-8

import sys
S = sys.stdin.readline().rstrip('\n')
if S <= '2019/04/30':
	print('Heisei')
else:
	print('TBD')

Submission status: Accepted

Solution code:
S=input()
Y=S[0:4]
M=S[5:7]
D=S[8:10]
YMD=int(Y+M+D)
if YMD<=20190430:
  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 = list(map(int, input().split('/')))
print('Heisei' if S[0] == 2019 and S[1] <= 4 and S[2] <= 30 else 'TBD')

Submission status: Accepted

Solution code:
S = str(input())

listS = S.split('/')

if int(listS[0]) < 2019:
    print('Heisei')
elif int(listS[0]) == 2019:
    if int(listS[1]) < 5:
        print('Heisei')
    else:
        print('TBD')
else:
    print('TBD')

Submission status: Accepted

Solution code:
s = str(input())

s = s.split('/')
if int(s[0]) >= 2019:
    if int(s[1]) >= 5:
        if int(s[2]) >= 1:
            print('TBD')
            exit()

print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

arr = list(map(int, stdin.readline().split('/')))
if arr[0] > 2019:
  print('TBD')
else:
  if arr[1] > 4:
    print('TBD')
  else:
    if arr[2] > 30:
      print('TBD')
    else:
      print('Heisei')

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:
import datetime
 
d0 = datetime.date(2019, 4, 30)
d = datetime.date(*map(int, input().split('/')))
 
if d <= d0:
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime

S = input()

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

if S_date <= compare_date:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

if S[5] == '0' and int(S[6]) < 5:
    print('Heisei')
elif S[5] == '0' and int(S[6]) > 4:
    print('TBD')
elif S[5] == '1':
    print('TBD')

Submission status: Accepted

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

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

Submission status: Accepted

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

import re

S = input()
S = re.split("/",S)

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

Submission status: Accepted

Solution code:
s = input()
year, month = int(s[0:4]), int(s[5:7])
#print(year, month)

if year > 2019 or (year == 2019 and month > 4):
	print("TBD")
else:
	print("Heisei")

Submission status: Accepted

Solution code:
S = raw_input()
m = int(S[5]+S[6])
ans = 'Heisei'
if m > 4: ans = 'TBD'
print ans

Submission status: Accepted

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

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

Submission status: Accepted

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


def solve(S: str):
    parsed = S.split("/")
    year = int(parsed[0])
    month = int(parsed[1])
    day = int(parsed[2])
    if year < 2018:
        print("Heisei")
    elif year >= 2020:
        print("TBD")
    else:
        if month <= 4:
            print("Heisei")
        elif month >= 5:
            print("TBD")
    return


# Generated by 1.1.3 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  # type: str
    solve(S)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/python
import datetime

def main():
    S = str(input())
    tdatetime = datetime.datetime.strptime(S, '%Y/%m/%d')

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

if __name__ == "__main__":
    main()

Submission status: Accepted

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

if int(s) <= 20190430:
    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:
X=input()
A,B,C=(X.split('/'))
B=int(B)
C=int(C)

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

Submission status: Accepted

Solution code:
X = input()
A,B,C = (X.split('/'))
B = int(B)
C = int(C)

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

Submission status: Accepted

Solution code:
S = input()

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


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime

a = input().split("/")

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

kyou = datetime.datetime(year,month,day)

reiwa = datetime.datetime(2019,5,1)

if kyou < reiwa :
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import re
pattern = r'([0-9]+)'

y, m, d = map(int, re.findall(pattern, input()))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
b = a.split("/")
c = [int(n) for n in b]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime
S = input()
s = list(map(int, S.split(sep='/')))
dt = datetime.date(s[0], s[1], s[2])
dt_chk = datetime.date(2019, 4, 30)
print('Heisei' if dt <= dt_chk else 'TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from datetime import datetime

S = input()
date = datetime.strptime(S, "%Y/%m/%d")
if date < datetime(2019, 5, 1):
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
s = input()

month = int(s[5:7])

print("Heisei" if month < 5 else "TBD")

Submission status: Accepted

Solution code:
from datetime import datetime
S = datetime.strptime(input(), '%Y/%m/%d')
if S < datetime(2019, 5, 1):
	print('Heisei')
else:
	print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=[int(i) for i in input().replace("/"," ").split()]
if S[0]<=2019 and S[1]<=4 and S[2]<=30:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
S = input()

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

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

Submission status: Accepted

Solution code:
S = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

month = S[5:7]

# print(int(month))
answer = 'Heisei'



if int(month)>4:
    answer = 'TBD'



print(answer)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from datetime import datetime

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

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