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=(input().split("/"))

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def solve(month):
    return "Heisei" if month <= 4 else "TBD"


def main():
    s = input()
    month = int(s[5:7])

    ans = solve(month)
    print(ans)


main()

Submission status: Accepted

Solution code:
import os
import sys
import datetime

def main():
    sDate = datetime.datetime.strptime("2019/04/30", '%Y/%m/%d')

    inputdate = input()

    try:
        inputdate = datetime.datetime.strptime(inputdate, '%Y/%m/%d')
    except:
        print("Error: illegal date format.")
        return 1

    if inputdate <= sDate:
        print("Heisei")
    else:
        print("TBD")

    return 0

if __name__ == '__main__':
    sys.exit(main())

Submission status: Accepted

Solution code:
S = input()

list_dmy = S.split('/')

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

if year <= 2018:
	print('Heisei')

elif year == 2019 and month <= 4 and day <= 30:
	print('Heisei')
else:
	print('TBD')

Submission status: Accepted

Solution code:
#-*- coding: utf-8 -*-
"""
oj dl https://atcoder.jp/contests/abc116/tasks/abc116_d -d test-d
oj test -d test-d -c "python abc116d.py"
oj test -d test-d -c "python abc116d.py" test-d/sample-3.in
"""
from collections import defaultdict
import sys
import math
from datetime import datetime

def sol(S):
    base = datetime.strptime("2019/04/30", '%Y/%m/%d')
    target = datetime.strptime(S, '%Y/%m/%d')
    return "Heisei" if target <= base else "TBD"


do_submit = True


def input_parse(input_str):
    lines = [x.strip() for x in input_str.split("\n") if x.strip()]
    parsed_lines = [list(map(int, line.split())) for line in lines]
    a, b, c = parsed_lines[0]
    return a, b, c


if not do_submit:
    a, b, c = input_parse("""
    45 28 53
    """)
    print(sol(a, b, c))
else:
    # a, b, c = list(map(int, input().split()))
    # print(sol(a, b, c))
    S = input().strip()
    print(sol(S))

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:
from sys import stdin
 
i = stdin.readline().strip()
d = tuple(map(int, i.split("/")))
print("Heisei" if d <= (2019,4,30) else "TBD")

Submission status: Accepted

Solution code:
YY, MM, DD = map(int, input().split('/'))

if YY > 2019:
    print('TBD')
elif MM > 4:
    print('TBD')
elif DD <= 30:
    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()
LastDay = '2019/04/30'
if S <= LastDay:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

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

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

t_delta=S-S_T
if t_delta.days <= 0:
    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:
def main():
    S = input()
    m = int(S[5:7])
    if m <= 4:
        print("Heisei")
    else:
        print("TBD")


if __name__ == "__main__":
    main()

Submission status: Accepted

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


if y < 2019:
    print('Heisei')

elif y == 2019:

    if m < 5:
        print('Heisei')
    
    else:
        print('TBD')

else:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
nyuryoku=input()
nyuryoku_spl=nyuryoku.split("/")
nyuryoku_num=nyuryoku_spl[0]+nyuryoku_spl[1]+nyuryoku_spl[2]
nyuryoku_num=int(nyuryoku_num)
nyuryoku_num

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
import datetime

text = input()
time = datetime.datetime.strptime(text,"%Y/%m/%d")
heisei = datetime.datetime.strptime("2019/04/30","%Y/%m/%d")

if time <= heisei :
    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:
s=input().split("/")
if int(s[1])<5 :
	print("Heisei")
else :
	print("TBD")

Submission status: Accepted

Solution code:
s = input().rstrip("\n")

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:
S = input()

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

if(year<2019): #~2018年
    print("Heisei")
else: #2019~
    if(month==4):
        if(day<=30):
            print("Heisei")
        else:
            print("TBD")
    elif(month<4):
        print("Heisei")
    else: #5月~
        print("TBD")

Submission status: Accepted

Solution code:
import datetime

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

if date_formatted < datetime.datetime(2019, 5, 1):
  print ("Heisei")
else:
  print ("TBD")

Submission status: Accepted

Solution code:
import datetime as dt

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

chkdt = dt.datetime.strptime("2019/04/30", '%Y/%m/%d')

print("Heisei" if inp <= chkdt else "TBD")

Submission status: Accepted

Solution code:
from datetime import datetime

datestr = input()

date = datetime.strptime(datestr, '%Y/%m/%d')

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

if date <= end_heisei:
    print('Heisei')

else:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
if s[5]=="1":
  print("TBD")
  exit()
if s[6]=="5" or s[6]=="6" or s[6]=="7" or s[6]=="8" or s[6]=="9":
  print("TBD")
  exit()
print("Heisei")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
S = input()
y = int(S[:4])
m = int(S[5:7])
d = int(S[8:10])
ans = False


def solve():
    if y != 2019:
        return y < 2019
    if m != 4:
        return m < 4
    if d != 30:
        return d < 30
    return True


print(['TBD', 'Heisei'][solve()])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

a=int(n[0])
b=int(n[1])
c=int(n[2])

if a<2019:
    print("Heisei")
elif a==2019:
    if b<=4:
        if c<=30:
            print("Heisei")
        else:
            print("TBD")
    else:
        print("TBD")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()

a=""
a+=s[0:4]
a+=s[5:7]
a+=s[8:10]

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

Submission status: Accepted

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

BORDER = 20190430

if mod_S <= BORDER:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime 

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

Submission status: Accepted

Solution code:
year, month, day = map(int, input().split('/'))
if month < 5:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# encoding:utf-8
import copy
import numpy as np
import random

s = str(input())
yyyy,mm,dd = s.split("/")
ans = True
yyyy = int(yyyy)
mm = int(mm)
dd = int(dd)
if yyyy>=2020:
    ans = False
elif yyyy<=2018:
    pass
else:
    if mm>=5:
        ans = False
    elif mm<=3:
        pass
    else:
        pass

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input().split('/')
flag = 0
if int(x[0]) > 2019:
    flag = 1
elif int(x[0]) == 2019 :
    if int(x[1]) > 4:
        flag = 1
    
if flag == 0:
    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()
a = int(s.replace('/', ''))
if a > 20190430:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

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

import datetime

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

date2 = datetime.datetime(2019, 4, 30)

if date2 >= date1:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
from datetime import datetime

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

Submission status: Accepted

Solution code:
x=input()
y=int(x[:4])
z=int(x[5:7])
zz=int(x[8:10])
zzz=z*100+zz

if y<2019:
  print("Heisei")
elif y>2019:
  print("TBD")
else:
  if zzz<=430:
    print("Heisei")
  else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime
s=input()

date="2019/04/30"

tdata= datetime.datetime.strptime(date, "%Y/%m/%d")
sdata= datetime.datetime.strptime(s, "%Y/%m/%d")

if sdata<=tdata :
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
import numpy as np
import string
s = input()
s = list(map(int,s.split("/")))

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

Submission status: Accepted

Solution code:
import sys

y, m, d = map(int, sys.stdin.readline().split("/"))
if (y == 2019 and m <= 4) or y < 2019:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
S = input()
y, m, d = map(int, S.split('/'))
last_heisei = 365*2019 + 31*4 + 30

if 365*y + 31*m + d > last_heisei:
  print("TBD")
else:
  print("Heisei")

Submission status: Accepted

Solution code:
import re
S = input()
y, m, d = map(int, re.sub("/", " ", S).split())
ans = "Heisei"
if y > 2019:
  ans = "TBD"
elif y == 2019:
  if m > 4:
    ans = "TBD"
  elif m == 4:
    if d > 30:
      abs = "TBD"
print(ans)

Submission status: Accepted

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

month = int(day[1])

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

Submission status: Accepted

Solution code:
S = str(input())

n = int(S[0:4]+S[5:7]+S[8:10])
if n <= 20190430:
    ans = 'Heisei'
else:
    ans = 'TBD'
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=[int(x) for x in input().split("/")]
if(s[0]<=2018 or (s[0] == 2019 and s[1]<=4)):
        print("Heisei")
else:
        print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input().strip()
y, m, d = int(s[:4]), int(s[5:7]), int(s[8:])
if y >= 2019 and m >= 5:
  print('TBD')
else:
  print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#cording: utf-8

S = str(input())

List = list(S.split('/'))

num = '0'
for i in range(len(List)):
    num += List[i]
num = int(num)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=input();print('Heisei' if int(a[5:7]+a[8:])<500 else'TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
y,m,d = map(int, raw_input().split("/"))
if y*10000+(m*100+d) <= 20190430:
  print "Heisei"
else:
  print "TBD"

Submission status: Accepted

Solution code:
import datetime
 
t = datetime.datetime.strptime(input(), "%Y/%m/%d")
if t < datetime.datetime(year=2019, month=5, day=1):
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

if int(s[5]) == 1:
    print("TBD")
    exit()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from datetime import datetime

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

Submission status: Accepted

Solution code:
s = input()

intli = [int(i) for i in s.split("/")]
if intli[1] > 4:
    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 and s[1] < 4:
    print("Heisei")
elif s[0] == 2019 and s[1] == 4 and s[2] <= 30:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S="yyyy/mm/dd"
S=raw_input()
S=int("".join(S.split("/")))
if S<=20190430:
	print("Heisei")
else:
	print("TBD")

Submission status: Accepted

Solution code:
import re, datetime
pattern = r"(\d{4})/(\d{2})/(\d{2})"
res = re.search(pattern, input())
day = [int(i) for i in res.groups()]
default = datetime.datetime(year=2019, month=4, day=30)
time = datetime.datetime(year=day[0], month=day[1], day=day[2])
print("TBD" if default.timestamp() < time.timestamp() else "Heisei")

Submission status: Accepted

Solution code:
s = list(input())

year = int(''.join(s[:4]))
month = int(''.join(s[5:7]))
day = int(''.join(s[8:10]))

#print(month)

if year < 2019 or (year == 2019 and month <= 4):
    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:
# -*- coding: utf-8 -*-


def main():
    from datetime import datetime

    s = input()

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
s_num = int(s.replace("/", ""))#Sを数字だけにする

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

Submission status: Accepted

Solution code:
import sys

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

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


if __name__ == '__main__':
  main()

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:
S = input()

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

ans = "TBD"
if y <= 2019 and m <= 4 and d <= 30:
    ans = "Heisei"

print(ans)

Submission status: Accepted

Solution code:
import sys
S=input()
yy, mm, dd = S.split('/')
if int(yy) > 2019 or (int(yy) == 2019 and int(mm) >= 5):
  print('TBD')
else:
  print('Heisei')

Submission status: Accepted

Solution code:
s = input().split('/')
limit=20190430
if int(''.join(s))>limit:
	print('TBD')
else:
	print('Heisei')

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**10
mod = 10**9+7
dd = [(-1,0),(0,1),(1,0),(0,-1)]
ddn = [(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
def pf(s): return print(s, flush=True)


def main():
    s = S()
    if s > '2019/04/30':
        return 'TBD'

    return 'Heisei'



print(main())

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input().split('/')
print('TBD' if int(''.join(s)) > 20190430 else 'Heisei')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
year,month,day=( int(x) for x in input().split('/') )

if month<=4:
    print("Heisei")

else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

import sys  # {{{
import os
import time
import re
from pydoc import help
import string
import math
from operator import itemgetter
from collections import Counter
from collections import deque
from collections import defaultdict as dd
import fractions
from heapq import heappop, heappush, heapify
import array
from bisect import bisect_left, bisect_right, insort_left, insort_right
from copy import deepcopy as dcopy
import itertools
# }}}

# pre-defined{{{
sys.setrecursionlimit(10**7)
INF = 10**20
GOSA = 1.0 / 10**10
MOD = 10**9+7
ALPHABETS = [chr(i) for i in range(ord('a'), ord('z')+1)]  # can also use string module
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def DP(N, M, first): return [[first] * M for n in range(N)]
def DP3(N, M, L, first): return [[[first] * L for n in range(M)] for _ in range(N)]
from inspect import currentframe
def dump(*args):
    names = {id(v):k for k,v in currentframe().f_back.f_locals.items()}
    print(', '.join(names.get(id(arg),'???')+' => '+repr(arg) for arg in args), file=sys.stderr)
# }}}

def local_input():# {{{
    from pcm.utils import set_stdin
    import sys
    from pathlib import Path
    parentdir = Path(os.path.dirname(__file__)).parent
    inputfile = parentdir.joinpath('test/sample-1.in')
    if len(sys.argv) == 1:
        set_stdin(inputfile)
# }}}

def solve():
    s = input()
    yyyy = int(s[:4])
    mm = int(s[5:7])
    # print(yyyy, mm)
    if (yyyy>=2019 and mm>=5):
        print("TBD")
    else:
        print("Heisei")
    return 0

if __name__ == "__main__":# {{{
    try:
        local_input()
    except:
        pass
    solve()
# vim: set foldmethod=marker:}}}

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S = input().split("/")
N = S[0] + S[1] + S[2]
if int(N) <= 20190430: 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 <=4:
        print("Heisei")
    else:
        print("TBD")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input().split('/')
S=[int(i) for i in S]
if S[1] <= 4:
	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 <=2018:
    print("Heisei")
elif y >=2020:
    print("TBD")
elif m<=3:
    print("Heisei")
elif m>=5:
    print("TBD")
else:
    if d<=30:
        print("Heisei")
    else:
        print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from datetime import datetime

inputLine = input()

transDatatime = datetime.strptime(inputLine, '%Y/%m/%d')

baseDatatime = datetime(2019, 4, 30)

if transDatatime <= baseDatatime:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

Solution code:
import datetime

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

from collections import deque
import itertools as it
import sys
import math

sys.setrecursionlimit(1000000)

INF = 10 ** 18

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

d1 = y * 100000 + m * 1000 + d
d2 = 2019 * 100000 + 4 * 1000 + 30

print 'Heisei' if d1 <= d2 else 'TBD'

Submission status: Accepted

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

Submission status: Accepted

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

#print(yyyy)
#print(mm)
#print(dd)

if int(yyyy) >= 2020:
    print('TED')
elif int(yyyy) <= 2018:
    print('Heisei')
else:
    if int(mm) >= 5:
        print('TBD')
    else:
        print('Heisei')

Submission status: Accepted

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

if int(y) >= 2019:
  if int(m) > 4:
    print('TBD')
  else:
    print('Heisei')
else:
  print('Heisei')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=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')