Problem:


Score : 100 points

Problem Statement

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

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

Constraints

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

Input

Input is given from Standard Input in the following format:

S

Output

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

Sample Input 1

2019/04/30

Sample Output 1

Heisei

Sample Input 2

2019/11/01

Sample Output 2

TBD



Sample input:
2019/04/30


Sample output:
Heisei

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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 ("TDB")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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:
        if dd==30:
            pass
        else:
            ans =False

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

Submission status: Wrong Answer

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:
        if dd==30:
            pass
        else:
            ans =False

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

month = int(day[1])

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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")
print(datetime.date(y,m,d))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=str(input())
print(n[0:3])

Submission status: Wrong Answer

Solution code:
S = str(input())
month = int(S.split("/")[1])
date = int(S.split("/")[2])
if(int(month) > 4):
    print("TBS")
elif(int(month) == 4):
    if(date <= 30):
        print("Heisei")
    else:
        print("TBS") 
else:
    print("Heisei")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# python template for atcoder1
import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline


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

Submission status: Wrong Answer

Solution code:
# python template for atcoder1
import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline


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

Submission status: Wrong Answer

Solution code:
# python template for atcoder1
import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline


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

Submission status: Wrong Answer

Solution code:
# python template for atcoder1
import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline


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

Submission status: Wrong Answer

Solution code:
# python template for atcoder1
import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline


s = input()
print("TBD" if s > "1019/4/30" else "Heisei")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Wrong Answer

Solution code:
#abc119a

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

Submission status: Wrong Answer

Solution code:
s = input()

splited = s.split("/")

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

Submission status: Wrong Answer

Solution code:
s = input()

splited = s.split("/")

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

    else:
        return 'TBD'


print(heisei(y,m,d))

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
import os
print(os.path.abspath(__file__))
print(os.listdir('.'))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

b = sum(a)

if b >= 2052:
    print("Heisei")
else :
    print("TBD")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

b = sum(a)

if b >= 2053:
    print("Heisei")
else :
    print("TBD")

Submission status: Wrong Answer

Solution code:
S = input()

y, m, d = map(int, "111/11/2".split("/"))

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

Submission status: Wrong Answer

Solution code:
S = input()

y, m, d = map(int, "111/11/2".split("/"))

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if ss<=4:
	res = "heisei"

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

Submission status: Wrong Answer

Solution code:
import sys
from datetime import datetime

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
S = input()

A = S.split('/')

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()

A = S.split('/')

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

#A
s = input().split("/")
if int(s[0]) > 2019:
    print("Heisei")
elif int(s[0]) == 2019:
    if int(s[1]) > 4:
        print("Heisei")
    elif int(s[1]) == 4:
        if int(s[2]) >= 30:
            print("Heisei")
        else:
            print("TBD")
    else:
        print("TBD")
else:
    print("TBD")
#B

#C
"""
n,a,b,c = LI()
l = IR(n)
f = [True for i in range(3)]
ans = 0
for i in range(n):
    for d in range(3):
        if abs(l[i]-[a,b,c][d]) <= 10 and f[d]:
            ans += abs(l[i]-[a,b,c][d])
            f[d] = False
            l[i] = -float("inf")
k = False
for i in f:
    if i:
        k = True
        break
if not k:
    print(ans)
    quit()
"""
#D
"""
a,b,q = LI()
s = IR(a)
t = IR(b)
for i in range(q):
    x = I()
    c = bisect.bisect_left(s,x)
    ans = float("inf")
    if c == a:
        k = abs(x-s[-1])
        y = s[-1]
        d = bisect.bisect_left(t,y)
        if d == b:
            k += abs(y-t[-1])
        else:
            if abs(y-t[d-1]) < abs(y-t[d]):
                k += abs(y-t[d-1])
            else:
                k += abs(y-t[d])
        ans = min(k,ans)
    else:
        k = abs(x-s[c-1])
        y = s[c-1]
        d = bisect.bisect_left(t,y)
        if d == b:
            k += abs(y-t[-1])
        else:
            if abs(y-t[d-1]) < abs(y-t[d]):
                k += abs(y-t[d-1])
            else:
                k += abs(y-t[d])
        ans = min(k,ans)
        k = abs(x-s[c])
        y = s[c]
        d = bisect.bisect_left(t,y)
        if d == b:
            k += abs(y-t[-1])
        else:
            if abs(y-t[d-1]) < abs(y-t[d]):
                k += abs(y-t[d-1])
            else:
                k += abs(y-t[d])
        ans = min(k,ans)
    c = bisect.bisect_left(t,x)
    if c == b:
        k = abs(x-t[-1])
        y = t[-1]
        d = bisect.bisect_left(s,y)
        if d == a:
            k += abs(y-s[-1])
        else:
            if abs(y-s[d-1]) < abs(y-s[d]):
                k += abs(y-s[d-1])
            else:
                k += abs(y-s[d])
        ans = min(k,ans)
    else:
        k = abs(x-t[c-1])
        y = t[c-1]
        d = bisect.bisect_left(s,y)
        if d == a:
            k += abs(y-s[-1])
        else:
            if abs(y-s[d-1]) < abs(y-s[d]):
                k += abs(y-s[d-1])
            else:
                k += abs(y-s[d])
        ans = min(k,ans)
        k = abs(x-t[c])
        y = t[c]
        d = bisect.bisect_left(s,y)
        if d == a:
            k += abs(y-s[-1])
        else:
            if abs(y-s[d-1]) < abs(y-s[d]):
                k += abs(y-s[d-1])
            else:
                k += abs(y-s[d])
        ans = min(k,ans)
    print(ans)
"""
#E

#F

#G

#H

#I

#J

#K

#L

#M

#N

#O

#P

#Q

#R

#S

#T

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Wrong Answer

Solution code:
input = list(map(str, input().split("/")))
# 文字列の入力
heisei=20190430

input_kai=int(str(input[0])+input[1].zfill(2)+input[2].zfill(2))
print(input_kai)

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

Submission status: Wrong Answer

Solution code:
A = input()

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

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

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

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

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

Submission status: Wrong Answer

Solution code:
input = list(map(str, input().split("/")))
# 文字列の入力
heisei=20190431

input_kai=int(str(input[0])+input[1].zfill(2)+input[2].zfill(2))
print(input_kai)

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

Submission status: Wrong Answer

Solution code:
import datetime

S = input('')
string_date = S
dt = datetime.datetime.strptime(string_date, '%Y/%m/%d')
datetime.date(dt.year, dt.month, dt.day)
if dt.year > 2019:
	print("TBD")
elif dt.year == 2019 and dt.month>5:
	print("TBD")
else:
	print("Heisei")

Submission status: Wrong Answer

Solution code:
A = input()

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

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

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

Submission status: Wrong Answer

Solution code:
import datetime
d1 = input().split("/")

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

dd = datetime.date(y,m,d)
d2 = datetime.date(2019,4,30)

if dd < d2:
  print("Heisei")
else:
  print("TBD")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from datetime import datetime as dt

tstr = input()
tdatetime = dt.strptime(tstr, '%Y/%m/%d')
tdatetimea = dt.strptime('2019/05/01', '%Y/%m/%d')
if tdatetimea < tdatetime:
    print('TBD')
else:
    print('Heisei')

Submission status: Wrong Answer

Solution code:
def main() -> None:
    S = input()
    Y, M, D = S.split("/")
    if int(Y) >= 2019 and int(M) <= 4:
        print("HEISEI")
    else:
        print("TBD")



if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys

a = sys.stdin.readline().rstrip().split('/')

if(int(a[1]) > 4):
    print("TBD")
print("Heisei")

Submission status: Wrong Answer

Solution code:
a = str(input())

a = int(a[:4]) + int(a[5:7]) + int(a[8:])

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

Submission status: Wrong Answer

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

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

elif s[0] < 2019:
    print("Heisei")

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!
import sys
ans = input().split("/")
for i in range(3):
    ans[i] =int(ans[i])

if ans[0]==2019 and ans[1]>=5:
    print("TDB")
    sys.exit()

if ans[0]>2019:
    print("TDB")
    sys.exit()
else:
    print("Heisei")
    sys.exit()

Submission status: Wrong Answer

Solution code:
from sys import stdin

a = stdin.readline().rstrip().split('/')

if(int(a[1]) > 4):
  print("TBD")
print("Heisei")

Submission status: Wrong Answer

Solution code:
from sys import stdin


year, month, date = stdin.readline().rstrip().split(sep='/')

y = int(year)
m = int(month)
d = int(date)

heisei_y = 2019
heisei_m = 4
heisei_d = 1

if y < heisei_y:
  print('Heisei')
elif  (y == heisei_y) and (m < heisei_m):
  print('Heisei')
elif  ((y == heisei_y) and m == heisei_m) and (d <= heisei_d):
  print('Heisei')
else:
  print('TBD')

Submission status: Wrong Answer

Solution code:
s = input()

year = int(s[0])*1000+int(s[1])*100+int(s[2])*10+int(s[3])
if year > 2020:
    print('TBD')
elif year == 2019:
    if int(s[6]) > 5:
        print('TBD')
    else:
        print('TBD')
else:
    print('Heisei')

Submission status: Wrong Answer

Solution code:
from sys import stdin


year, month, date = stdin.readline().rstrip().split(sep='/')

y = int(year)
m = int(month)
d = int(date)

heisei_y = 2019
heisei_m = 4
heisei_d = 1

if y < heisei_y:
  print('Heisei')
elif  (y == heisei_y) and (m < heisei_m):
  print('Heisei')
elif  (m == heisei_m) and (d <= heisei_d):
  print('Heisei')
else:
  print('TBD')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import datetime

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

kirikae = datetime.datetime(2019,4,30)
inputlist = datetime.datetime(int(slist[0]),int(slist[1]),int(slist[2]))
print(kirikae)
print(inputlist)
if kirikae < inputlist:
  print("TBD")
else:
  print("Heisei")

Submission status: Wrong Answer

Solution code:
S=str(input())
slice6=S[6]
slice5=S[5]
if int(slice6) < 5 and slice5 ==0:
  print("Heisei")
else:
  print("TBD")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
s = input()

year = int(s[0])*1000+int(s[1])*100+int(s[2])*10+int(s[3])
if year > 2020:
    print('TBD')
elif year == 2019:
    if int(s[6]) > 5:
        print('TBD')
else:
    print('Heisei')

Submission status: Wrong Answer

Solution code:
from sys import stdin


year, month, date = stdin.readline().rstrip().split(sep='/')

y = int(year)
m = int(month)
d = int(date)

heisei_y = 2019
heisei_m = 4
heisei_d = 1

if y < heisei_y:
  print('Heisei')
elif  m < heisei_m:
  print('Heisei')
elif  d <= heisei_d:
  print('Heisei')
else:
  print('TBD')

Submission status: Wrong Answer

Solution code:
import sys

lines = sys.stdin.readlines()
S = lines[0]

Ss = S.split('/')

if int(Ss[0]) >= 2019:
  if int(Ss[1]) > 5:
    print('TBD')
    exit(0)
print('Heisei')

Submission status: Wrong Answer

Solution code:
from sys import stdin


year, month, date = stdin.readline().rstrip().split(sep='/')

y = int(year)
m = int(month)
d = int(date)

heisei_y = 2019
heisei_m = 4
heisei_d = 1

if y < heisei_y:
  print('Heisei')
elif  m < heisei_m:
  print('Heisei')
elif  d < heisei_d:
  print('Heisei')
else:
  print('TBD')

Submission status: Wrong Answer

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

str = input().strip()
splited = ''.join(str.split('/'))
i = int(splited)

if i >= 20190430:
    print('TBD')
else:
    print('Heisei')

Submission status: Wrong Answer

Solution code:
# Your code here!
ans = input().split("/")
for i in range(3):
    ans[i] =int(ans[i])

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

Submission status: Wrong Answer

Solution code:
from sys import stdin

a = stdin.readline().rstrip().split('/')

if(int(a[1]) > 4):
  print("Heisei")
print("TBD")

Submission status: Wrong Answer

Solution code:
s = input()

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

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sun Feb 24 21:00:58 2019

@author: Wataru
"""

S=input()

Stmp=S.split('/')

YY=int(Stmp[0])
MM=int(Stmp[1])
DD=int(Stmp[2])

if YY<2019:
    print('Heisei')
else:
    if MM<4:
        print('Heisei')
    else:
        print('TBD')

Submission status: Wrong Answer

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

if(int(line[0]) <= 2019):
    if(int(line[1]) <= 5):
        print("Heisei")
        exit()

print("TBD")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import datetime

# if not (datetime.datetime.strptime('2019/04/30', '%Y/%m/%d') - datetime.datetime.strptime(input(), '%Y/%m/%d')):
#     print('Heisei')
# else:
#     print('TBD')
a  = (datetime.datetime.strptime('2019/04/30', '%Y/%m/%d') - datetime.datetime.strptime(input(), '%Y/%m/%d')).days
print(a)
if a >= 0:
    print('Heisei')
else:
    print('TBD')

Submission status: Wrong Answer

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

if(int(line[0]) <= 2019):
    if(int(line[1]) <= 5):
        print("Helsei")
        exit()

print("TBD")

Submission status: Wrong Answer

Solution code:
date = input()
year = date[:4]
month = date[5:7]
if int(year) < 2019:
        print("Heisei")
elif int(year)==2019 and month == "01" or "02" or "03" or "04":
        print("Heisei")
else:
        print(TBD)

Submission status: Wrong Answer

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

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

if y < 2019:
    print('Heisei')
elif y == 2019 and m <= 4:
    print('Heisei')
else:
    print('TED')

Submission status: Wrong Answer

Solution code:
def solver():
	a = input().rstrip('\n').split('/')
	if int(a[0]) >= 2019:
		if int(a[1]) >= 4:
			if int(a[2]) >= 30:
				print('TBD')
			else: print('Heisei')
		else: print('Heisei')
	else: print('Heisei')

solver()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def solver():
	a = input().rstrip('\n').split('/')
	print(a)
	if int(a[0]) >= 2019:
		if int(a[1]) >= 4:
			if int(a[2]) >= 30:
				print('TBD')
			else: print('Heisei')
		else: print('Heisei')
	else: print('Heisei')

solver()

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!
ans = input().split("/")
for i in range(3):
    ans[i] =int(ans[i])

if ans[0]==2019 and ans[1]>=5:
    print("TDB")
elif ans[0]>2019:
    print("TDB")
else:
    print("Heisei")

Submission status: Wrong Answer

Solution code:
day = input().rstrip().split("/")
day = [int(i) for i in day]
if day[0]  <= 2018:
    print("Heisei")
elif day[0] == 2019 and day[1] <= 5:
    print("Heisei")
else:
    print("TBD")

Submission status: Wrong Answer

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

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

elif int(s[0]) < 2019:
    print("Heisei")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

if y < 2019:
    print('Heisei')
elif y >= 2019 and m <= 4:
    print('Heisei')
else:
    print('TED')

Submission status: Wrong Answer

Solution code:
s = input()
if int(s[0:4]) > 2019:
    print("TBD")
    exit()
if int(s[0:4]) < 2019:
    print("Heisei")

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sun Feb 24 21:00:58 2019

@author: Wataru
"""

S=input()

Stmp=S.split('/')

YY=int(Stmp[0])
MM=int(Stmp[1])
DD=int(Stmp[2])

if YY<2019:
    print('Heisei')
else:
    if MM<4:
        print('Heisei')
    else:
        if DD<31:
            print('Heisei')
        else:
            print('TBD')

Submission status: Wrong Answer

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

import sys

def parse_input(lines_as_string = None):

    lines = []
    if lines_as_string is None:
        for line in sys.stdin:
            lines.append(line)
    else:
        lines = [e for e in lines_as_string.split("\n")][1:-1]

    params = lines[0].split(" ")
    a = params[0]

    return (a)


def solve(s):

    result = "TBD"
    if s <= "2019/04/30":
        result = "Heisei"
    else:
        result = "TBD"

    return result

def main():
    # 出力

    print("%s" % solve(parse_input()))

if __name__ == '__main__':

    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

year = int(s[0])*1000+int(s[1])*100+int(s[2])*10+int(s[3])
if year > 2020:
    print('TBD')
elif year == 2019:
    if int(s[6]) > 5:
        print('TBD')
else:
    print('Heisai')