Problem:


Score : 100 points

Problem Statement

You are given a string S as input. This represents a valid date in the year 2019 in the yyyy/mm/dd format. (For example, April 30, 2019 is represented as 2019/04/30.)

Write a program that prints Heisei if the date represented by S is not later than April 30, 2019, and prints TBD otherwise.

Constraints

S is a string that represents a valid date in the year 2019 in the yyyy/mm/dd format.

Input

Input is given from Standard Input in the following format:

S

Output

Print Heisei if the date represented by S is not later than April 30, 2019, and print TBD otherwise.

Sample Input 1

2019/04/30

Sample Output 1

Heisei

Sample Input 2

2019/11/01

Sample Output 2

TBD



Sample input:
2019/04/30


Sample output:
Heisei

Submission status: Accepted

Solution code:
S=list(input())
S.remove("/")
S.remove("/")
st=int("".join(S))
if st <=20190430:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

Solution code:

from heapq import heappush, heappop, heapify
from collections import deque, defaultdict, Counter
import itertools
from itertools import permutations, combinations
import sys
import bisect
import string
import math
import time
from fractions import gcd
#import random


def I(): return int(input())


def MI(): return map(int, input().split())


def LI(): return [int(i) for i in input().split()]


def LI_(): return [int(i)-1 for i in input().split()]


def StoI(): return [ord(i)-97 for i in input()]


def ItoS(nn): return chr(nn+97)


def input(): return sys.stdin.readline().rstrip()


def show(*inp, end='\n'):
    if show_flg:
        print(*inp, end=end)


YN = ['Yes', 'No']
MOD = 10**9+7
inf = float('inf')
l_alp = string.ascii_lowercase
u_alp = string.ascii_uppercase
ts = time.time()
sys.setrecursionlimit(10**6)


show_flg = False
# show_flg = True


def main():
    S = input()

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


if __name__ == '__main__':
    main()

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

Submission status: Accepted

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

if a <= b:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
import datetime
S = input()

formatted_s = datetime.datetime.strptime(S, "%Y/%m/%d")
heisei = datetime.datetime(2019, 4, 30)

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

Submission status: Accepted

Solution code:
import datetime

S = input()
dt = datetime.datetime.strptime(S, "%Y/%m/%d")
THRESHOLD = datetime.datetime(2019, 4, 30)

if dt <= THRESHOLD:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
import os, sys, re, math

S = input()

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

Submission status: Accepted

Solution code:
import datetime

y, m, d = [int(i) for i in input().split('/')]

comp1 = datetime.datetime(2019, 4, 30)
comp2 = datetime.datetime(y, m, d)

if comp2 <= comp1:
	print ('Heisei')
else:
	print ('TBD')

Submission status: Accepted

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

print('Heisei' if 20190430 >= y*10000+m*100+d else 'TBD')

Submission status: Accepted

Solution code:
import os, sys, re, math

S = input()

[y, m, d] = [int(t) for t in S.split('/')]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC119a
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

s = input()[:-1]
print('TBD' if int(s[5:7]) > 4 else 'Heisei')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

month = int(s[5:7])

print("Heisei" if month <= 4 else "TBD")

Submission status: Accepted

Solution code:
S=map(int,input().split("/"))
A=[]
for i in S:
    A.append(i)
if A[1]>4:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
#import math.sqrt as sqrt

#S = list(map(int, input().split()))
#B = list(map(int, input().split()))

S = list(input())


if S[5]=='1' or (S[6] >= '5' or S[5] == '1'):
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
S = input()

li=S.split('/')

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import math
import datetime

# 入力
#N = int(input())
#S = str(input())
#A, B, X = map(int, input().split())
S = str(input())
H = "2019/04/30"

dateS = datetime.datetime.strptime(S, '%Y/%m/%d')
dateH = datetime.datetime.strptime(H, '%Y/%m/%d')

if dateS <= dateH :
  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:
d = list(map(int, input().split("/")))

if d[1] < 5:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S = input()
y=int(S[0:4]+S[5:7]+S[8:10])

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

Submission status: Accepted

Solution code:
S = input() 

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

if B > 4:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x, y, z=list(map(int, input().split("/")))
if y>=5:
  print("TBD")
else:
  print("Heisei")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
y = int(s[:4])
m = int(s[5:7])
d = int(s[8:])
flag = 1
if y > 2019:
    flag = 0
elif y == 2019:
    if m >= 5:
        flag = 0


if flag == 1:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
list1 = input()

yy = int(list1[:4])
mm = int(list1[5:7])
dd = int(list1[8:])

if yy >= 2019:
    if yy == 2019 and mm <= 4:
        print("Heisei")
        exit()
    print("TBD")
    exit()
print("Heisei")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=list(map(str,input()))
nen=0
tsuki=0
nen=int(S[0]+S[1]+S[2]+S[3])
tsuki=int(S[5]+S[6])
if nen<2019:
  print("Heisei")
elif nen>2019:
  print("TBD")
elif nen==2019 and tsuki<5:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#Still TBD
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 = input()
s = int(s.replace("/", ""))
if s <= 20190430 :
    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()
if int(S[5:7]) <= 4:
	print('Heisei')
else:
	print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime

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

    diff = datetime.date(2019,4,30)-datetime.date(y,m, d)
    if diff.days >= 0:
        print('Heisei')
    else:
        print('TBD')

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import datetime

def main():
    S = input()
    
    year = int(S[0:4])
    month= int(S[5:7])
    day = int(S[8:10])
    diff = datetime.date(2019,4,30)-datetime.date(year,month, day)
    if diff.days >= 0:
        print('Heisei')
    else:
        print('TBD')

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
s = input()

a = int("".join(s.split("/")))

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

Submission status: Accepted

Solution code:
S = list(map(int, input().split("/")))
ans = True
if S[0] > 2019:
    ans = False
elif S[0] == 2019 and S[1] > 4:
    ans = False

if ans:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
date = input()

import re
date_num = int(re.sub("\D", "", date))

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

Submission status: Accepted

Solution code:
# 2019-11-12 16:33:33(JST)
import sys
# import collections
# import math
# from string import ascii_lowercase, ascii_uppercase, digits
# from bisect import bisect_left as bi_l, bisect_right as bi_r
# import itertools
# from functools import reduce
# import operator as op
# from scipy.misc import comb # float
# import numpy as np 

def main():
    s = sys.stdin.readline().rstrip()
    mm = int(s[5:7])
    dd = int(s[8:10])
    if mm <= 4 and dd <= 30:
        print('Heisei')
    else:
        print('TBD')


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
date = input()

import re
date_num = int(re.sub("\D" , "" , date))

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

Submission status: Accepted

Solution code:
S = list(map(int,input().split("/")))
ans = False
if S[0] > 2019:
    ans = True
elif S[0] >= 2019 and S[1] > 4:
    ans = True
elif S[0] >= 2019 and S[1] >= 4 and S[2] > 30:
    ans = True

if ans == True:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=str(input())
if int(n[0:4])>2019:
    print("TBD")
elif int(n[0:4])<2019:
    print("Heisei")
elif int(n[0:4])==2019:
    if int(n[5:7])>4:
        print("TBD")
    elif int(n[5:7])<=4:
        print("Heisei")

Submission status: Accepted

Solution code:
s = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

#文字列を特定の文字で切ってリストに入れる
#l = [0]*3
l = n.split('/')

if int(l[1]) <= 4 and int(l[2]) <= 30:
	print('Heisei')
else:
	print('TBD')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
def input(): return sys.stdin.readline().strip()

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

main()

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 = list(input())
S.pop(4)
S.pop(6)
S_list = []
H = [2019, 4, 30]
for i in range(len(S)):
  S[i] = int(S[i])
  
S_list.append(S[0] * 1000 + S[1] * 100 + S[2] * 10 + S[3])
S_list.append(S[4] * 10 + S[5])
S_list.append(S[6] * 10 + S[7])
  
for i in range(len(S_list)):
  if S_list[i] - H[i] > 0:
    print('TBD')
    break
  if i == len(S_list) - 1:
    print('Heisei')

Submission status: Accepted

Solution code:
# ABC 119: A – Still TBD
s = input()
parts = [int(c) for c in s.split('/')]
print('Heisei' if parts[0] < 2019 or (parts[0] == 2019 and parts[1] <= 4) else 'TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime;

s = input();

time_format = datetime.datetime.strptime(s, "%Y/%m/%d");
time_heisei = datetime.datetime.strptime("2019/04/30", "%Y/%m/%d");

if time_format <= time_heisei:
    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:
import datetime
S = input()
s = datetime.datetime.strptime(S,'%Y/%m/%d')
t = datetime.datetime(2019,4,30)
if s <= t:
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

s = stdin.readline().rstrip()

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

Submission status: Accepted

Solution code:
if int("".join([i for i in input().split('/')])) <= 20190430:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime

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

if s <= d:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if year < 2019:
    print("Heisei")
    exit()
if month < 5:
    print("Heisei")
    exit()

print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
year, month, day = map(int, input().split('/'))
ans = year < 2019
ans |= year == 2019 and month <= 4

print("Heisei" if ans else "TBD")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()

YYYY=int(S[0:4])
MM=int(S[5:7])
DD=int(S[8:10])

ans='Heisei'

if YYYY > 2020 or (YYYY==2019 and MM >= 5) :
    ans='TBD'

print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Y, M, D = input().split('/')
if int(M) >= 5:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

Solution code:
S=input().split('/')
for n in range(3):
    S[n]=int(S[n])
if S[0]>=2020 or (S[0]==2019 and S[1]>=5):
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from datetime import datetime

target = datetime(2019,4,30)

S = str(input())
S_date = datetime.strptime(S,'%Y/%m/%d')

if S_date <= target:
	print('Heisei')
else:
	print('TBD')

Submission status: Accepted

Solution code:
import datetime
S = datetime.datetime.strptime(input(), '%Y/%m/%d')
if S <= datetime.datetime(2019,4,30):
  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:
from datetime import datetime
a = datetime.strptime(input(), '%Y/%m/%d')
b = datetime(2019,4,30)
if a > b:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
s_new = int(S.replace("/", ""))

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

Submission status: Accepted

Solution code:
import datetime

def main():
    date = datetime.datetime.strptime(input(), '%Y/%m/%d')
    base = datetime.datetime.strptime('2019/04/30', '%Y/%m/%d')
    if date <= base :
        print('Heisei')
    else:
        print('TBD') 

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()
if s[5]=='0':
  m=int(s[6])
else:
  m=int(s[5:7])
if s[8]=='0':
  d=int(s[9])
else:
  d=int(s[8:10])
x='TBD'
if m<4:
  x='Heisei'
elif m==4 and d<=30:
  x='Heisei'
print(x)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
before = ("Heisei")
after = ("TBD")
if s[6] == "1" and s[5] == "0":
    print(before)
elif s[6] == "2" and s[5] == "0":
    print(before)
elif s[6] == "3":
    print(before)
elif s[6] == "4":
    print(before)
else:
    print(after)

Submission status: Accepted

Solution code:
s = input().split("/")

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = str(input())
if int(s[5]) == 0:
  m = int(s[6])
else:
  m = int(s[5:7])
if m not in [1,2,3,4]:
  print('TBD')
else:
  print('Heisei')

Submission status: Accepted

Solution code:
s = str(input())
y = int(s[0:4])
if int(s[5]) == 0:
    m = int(s[6])
else:
    m = int(s[5:7])
if int(s[8]) == 0:
    d = int(s[9])
else:
    d = int(s[8:10])
if y < 2019:
    print('Heisei')
elif y == 2019 and m not in [1,2,3,4]:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

Solution code:
from sys import stdin
S = int(stdin.read().replace('/',''))
if S <= 20190430:
    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()
m1 = int(S[5])
m2 = int(S[6])

if m2 >= 5:
  print('TBD')
  exit()
if m1 == 1:
  print('TBD')
  exit()

print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def slove():
    import sys
    input = sys.stdin.readline
    s = str(input().rstrip('\n').replace("/", ""))
    print("Heisei" if int(s) <= 20190430 else "TBD")


if __name__ == '__main__':
    slove()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = list(input())
num = int("".join(S[5:7]))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def slove():
    import sys
    input = sys.stdin.readline
    s = int(input().rstrip('\n').replace("/", ""))
    print("Heisei" if s <= 20190430 else "TBD")


if __name__ == '__main__':
    slove()

Submission status: Accepted

Solution code:
from datetime import datetime
dt = datetime.strptime(input(),'%Y/%m/%d')

dt_limit = datetime(2019, 4, 30)
                       
                       
if dt <= dt_limit:
	print('Heisei')
elif dt > dt_limit:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

>>> main("2019/04/30")
Heisei
>>> main("2019/11/01")
TBD'''

from datetime import datetime


def main(s):
    base_data = datetime(2019, 4, 30)
    year, month, day = map(int, s.split('/'))

    if datetime(year, month, day) <= base_data:
        print('Heisei')
    else:
        print('TBD')


if __name__ == "__main__":
    s = input()
    main(s)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime

S=input()
date_formatted = datetime.datetime.strptime(S, "%Y/%m/%d")
kijun = datetime.datetime(2019, 4, 30)

if date_formatted <= kijun:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()
S=''.join(S.split('/'))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

print("Heisei" if "2019/04/30" >= s else "TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline


def main():
    print("Heisei" if int("".join(input().split("/"))) <= 20190430 else "TBD")


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
print(['TBD','Heisei'][int(S[5]+S[6])*30 + int(S[8]+S[9])<=150])

Submission status: Accepted

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

s = raw_input()

Heisei = "Heisei"
TBD = "TBD"
ans = Heisei

l = s.split("/")

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

print ans

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:
s = input()
print('Heisei' if '2019/04/30' >= s else 'TBD')

Submission status: Accepted

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

s = "".join(ns().split("/"))
if s <= "20190430":
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
T=input()
x=int(T[:4])
if x>2019:
  print("TBD")
elif x>2018:
  y=int(T[5:7])
  if y>4:
    print("TBD")
  else:
    print("Heisei")
else:
  print("Heisei")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s,t,u=map(int, input().split("/"))
if t<=4:
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(5 * 10**5)
input = sys.stdin.readline
 
y, m, d = map(int, input().split("/"))
 
if y == 2019:
    if m >= 5:
        print("TBD")
    else:
        print("Heisei")
elif y > 2019:
    print("TBD")
else:
    print("Heisei")