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] = [i for i in input().split()]

year, month, day = s.split('/')
if int(year) > 2019 or (int(year) == 2019 and int(month) > 4):
    print("TBD")
else:
    print ("Heisei")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

def main():
    S = input()

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

input = lambda: stdin.readline().rstrip()
main()

Submission status: Accepted

Solution code:
d = [int(v) for v in input().split("/")]

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

Submission status: Accepted

Solution code:


def main():
	x,y,z = map(int, raw_input().split("/"))
	if x>2019 or x==2019 and y>4 or x==2019 and y==4 and z>31:
		print "TBD"
	else:
		print "Heisei"
	
	return 0

if __name__ == '__main__':
	main()

Submission status: Accepted

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

Submission status: Accepted

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

def main():
    if S[0]>2019:
        print('TBD')
        return
    elif S[0]==2019 and S[1]>4:
        print('TBD')
        return
    else:
        print('Heisei')
        return 

main()

Submission status: Accepted

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

Submission status: Accepted

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


import sys
import math

#1整数
#n = int(input())

#空白区切り2整数
#n ,m = list(map(int, input().split()))

#空白区切りリスト
#a=list(map(int, input().split()))

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



if int(s[0]) > 2019:
    print('TBD')
    quit()
if int(s[0]) == 2019 and int(s[1]) > 4:
    print('TBD')
    quit()

print('Heisei')

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
s=input()
f=s.split('/')
m=int(f[1])
if m <= 4:
  print('Heisei')
elif m > 4:
  print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
n = int(s[5:7])*100 + int(s[-2:])
if n <= 430:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

# AtCoder Beginner Contest 119：A - Still TBD


def main():
    S = raw_input().strip()
    # 2019/04/30

    d = [int(n) for n in S.split('/')]
    if d[1] >= 5:
        print 'TBD'
    else:
        print 'Heisei'


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
from statistics import mean, median,variance,stdev
import numpy as np
import sys
import math
import fractions
import itertools

def j(q):
    if q==1: print("Heisei")
    else:print("TBD")
    exit(0)


def ct(x,y):
    if (x>y):print("")
    elif (x<y): print("")
    else: print("")

def ip():
    return int(input())

def swap(s,pos):
    s[pos]-=1
    s[pos+1]+=1
    print(s)
    if pos == n-2: return s
    if s[pos+2] == 0: swap(s,pos+1)
    return s


#n = ip()                              #入力整数1つ
#h,w= (int(i) for i in input().split())      #入力整数横2つ
#n,x,y = (int(i) for i in input().split())    #入力整数横3つ
#n,m,x,y= (int(i) for i in input().split())  #入力整数横4つ
#a = [int(i) for i in input().split()]        #入力整数配列
a = input()                                  #入力文字列
#a = input().split()                          #入力文字配列
#n = ip()                      #入力セット(整数改行あり)(1/2)
#a=[ip() for i in range(n)]    #入力セット(整数改行あり)(2/2)

#jの変数はしようできないので注意
#全足しにsum変数使用はsum関数使用できないので注意
if (int(a[0:4]) == 2019 and int(a[5:7]) >= 5) or int(a[0:4]) > 2019 :j(0)
j(1)

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() 
    y, m, d = s.split('/')
    y, m, d = int(y), int(m), int(d)
    if m < 4:
        print('Heisei')
    elif m > 4:
        print('TBD')
    else:
        # 4
        if d <= 30:
            print('Heisei')
        else:
            print('TBD')



if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: utf-8
s = input()
if s <='2019/04/30':
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#coding:utf-8
a = input()
month = int(a[5:7])
if month < 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:
    if S[1] < 4:
        print('Heisei')
    elif S[1] == 4:
        if S[2] <= 30:
            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:10]) <= 30:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

Solution code:
S=[int(x) for x in input().split('/')]
def Solve(S):
    if S[0]<=2019 and S[1]<=4:
        return 'Heisei'
    else:
        return 'TBD'
print(Solve(S))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: UTF-8
import sys
#sys.setrecursionlimit(n)
import heapq
import re
import bisect
import random
import math
import itertools
from collections import defaultdict, deque
from copy import deepcopy
from decimal import *

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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:
#n = int(input())
a,b,c=map(int,input().split("/")) #横並び
#x=[int(input()) for i in range(3)] #縦に並んだのを配列に
#y=list(map(int,input().split())) #横に並んだのを配列に
if b<4 :print("Heisei")
elif b==4 and c<=30 :print("Heisei")
else :print("TBD")
#print('YNEOS'[1::2])

Submission status: Accepted

Solution code:
s = input()
ans = "TBD"
if int(s[0:4]) <= 2018:
    ans = "Heisei"
elif int(s[0:4]) <= 2019 and int(s[5:7]) <= 3:
    ans = "Heisei"
elif int(s[0:4]) <= 2019 and int(s[5:7]) <= 4 and int(s[8:10]) <= 30:
    ans = "Heisei"
print(ans)

Submission status: Accepted

Solution code:
S = input().replace('2019','').replace('/','')
if(int(S) <= 430):
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=input()
a=a.split('/')
a="".join(a)
if int(a)<=20190430:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S = list(input().split('/'))
A = int("".join(S))

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

Submission status: Accepted

Solution code:
s=input()
s2='2019/04/30'
l=[s,s2]
l.sort()
if l[0]==s:
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

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

if X <= 20190430:
    ans = 'Heisei'
else:
    ans = 'TBD'

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

yes = 1

if m > 4: yes = 0

if yes: print 'Heisei'
else: print 'TBD'

Submission status: Accepted

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

Submission status: Accepted

Solution code:
words = list(map(int, input().split('/')))
if words[1] < 4:
    print('Heisei')
elif words[1] > 4:
    print('TBD')
else:
    if words[2] <= 30:
        print('Heisei')
    else:
        print('TBD')

Submission status: Accepted

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

print("Heisei" if s <= [4, 30] else "TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

ans = 'TBD'
if y < 2019:
    ans = 'Heisei'
elif y == 2019 and (m < 4 or m == 4 and d <= 30):
    ans = 'Heisei'

print(ans)

Submission status: Accepted

Solution code:
# https://atcoder.jp/contests/abc119/tasks/abc119_a

def main():
    S = list(map(int, input().split("/")))
    if S[0] < 2019:
        print("Heisei")
    elif S[1] < 4:
        print("Heisei")
    elif S[1] == 4 and S[2] <= 30:
        print("Heisei")
    else:
        print("TBD")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys
import datetime

def main():
    for line in sys.stdin:
        line = line.rstrip()
        lst = line.split('/')
        year = int(lst[0])
        month = int(lst[1])
        day = int(lst[2])

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

    return 0

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

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split('/'))
if (a == 2019 and b <= 4 and c <= 30) or (a < 2019):
    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:
# -*- coding: utf-8 -*-
"""
Spyderエディタ

これは一時的なスクリプトファイルです
"""

import math
import copy
import bisect
def nCast(number):
    if type(number)==str:
        return int(number)
    for idx in range(0,len(number)):
        if type(number[idx])==str:
 
            number[idx]=int(number[idx])
        else:
            nCast(number[idx])
    return number
    
def inputArr(w):
    l=list()
    for idx in range(0,w):
        l.append(input())
    return l
def inputArr1(w):
    l=list()
    for idx in range(0,w):
        l.append(input().split())
    return l
 
n=input()
 
 
 
def func():
    if n<="2019/04/30":
        return "Heisei"
    return "TBD"
 
 
print(func())

Submission status: Accepted

Solution code:
inp = input()
x = int(inp[0:4]) * 10000 + int(inp[5:7]) * 100 + int(inp[8:]) 
if x > 20190500:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

m = int(s.split('/')[1])
d = int(s.split('/')[2])

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

Submission status: Accepted

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

Submission status: Accepted

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

ans = 'Heisei'
for a, b in zip(s, [2019, 4, 30]):
    if a < b:
        break
    elif a > b:
        ans = 'TBD'
        break

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if y <= 2018 or (y == 2019 and m <= 4):
    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')
    elif m>4:print('TBD')
elif y>2019:print('TBD')

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python2
"""
This file is part of https://github.com/cheran-senthil/PyRival
Copyright 2019 Cheran Senthilkumar <hello@cheran.io>

"""
from __future__ import division, print_function

import itertools
import os
import sys
from atexit import register
from io import BytesIO


class dict(dict):
    """dict() -> new empty dictionary"""

    def items(self):
        """D.items() -> a set-like object providing a view on D's items"""
        return dict.iteritems(self)

    def keys(self):
        """D.keys() -> a set-like object providing a view on D's keys"""
        return dict.iterkeys(self)

    def values(self):
        """D.values() -> an object providing a view on D's values"""
        return dict.itervalues(self)


def gcd(x, y):
    """greatest common divisor of x and y"""
    while y:
        x, y = y, x % y
    return x


range = xrange

filter = itertools.ifilter
map = itertools.imap
zip = itertools.izip

sys.stdin = BytesIO(os.read(0, os.fstat(0).st_size))
sys.stdout = BytesIO()
register(lambda: os.write(1, sys.stdout.getvalue()))

input = lambda: sys.stdin.readline().rstrip('\r\n')


def main():
     s = input()

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

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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



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

Submission status: Accepted

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

import sys


def main():
    s = sys.stdin.readline().rstrip()
    y, m, d = list(map(int, s.split('/')))
    if y<2019:
        sys.exit(1)
    elif y>=2019 and m <= 4:
        print("Heisei")
    else:
        print("TBD")

if __name__=="__main__":
    main()

Submission status: Accepted

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

main()

Submission status: Accepted

Solution code:
[year, month, date] = list(map(int, input().split('/')))

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

Submission status: Accepted

Solution code:

def main():
    a = list(map(int, input().split('/')))
    if a[1] <= 4:
        print('Heisei')
    else:
        print('TBD')



if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
Ss = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#! /usr/bin/python3

# ABC119 A
import sys

def debug(fmt, *args):
    print(fmt, *args, file=sys.stderr)

def main():
    pass

if __name__ == "__main__":
    N = input()
    if N <= "2019/04/30":
        print("Heisei")
    else:
        print("TBD")
    #N = [int(x) for x in input().split()]
    #A = [tuple(int(x) for x in input().split()) for _ in N]
    #main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime

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

Submission status: Accepted

Solution code:
n = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8

S = str(input())

year, month, day =  list(map(int,S.strip().split('/')))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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:
s1, s2, s3 = input().split("/")
if int(s2) <=4:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline
s = input()
y = int(s.split('/')[0])
m = int(s.split('/')[1])
d = int(s.split('/')[2])
if m < 5:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

year, month, day = map(int, S.split('/'))
if year >= 2019 and month >= 5:
  print('TBD')
else:
  print('Heisei')

Submission status: Accepted

Solution code:
l = raw_input().split('/')
m = int(l[1])
d = int(l[2])
if m < 4:
	print 'Heisei'
elif m == 4:
	if d <= 30:
		print 'Heisei'
	else:
		print 'TBD'
else:
	print 'TBD'

Submission status: Accepted

Solution code:
S = input()

if (S[5]+S[6])<='04':
	print("Heisei")
else:
	print("TBD")

Submission status: Accepted

Solution code:
#!/usr/bin/env python2
"""
This file is part of https://github.com/cheran-senthil/PyRival
Copyright 2019 Cheran Senthilkumar <hello@cheran.io>

"""
from __future__ import division, print_function

import itertools
import os
import sys
from atexit import register
from io import BytesIO


class dict(dict):
    """dict() -> new empty dictionary"""

    def items(self):
        """D.items() -> a set-like object providing a view on D's items"""
        return dict.iteritems(self)

    def keys(self):
        """D.keys() -> a set-like object providing a view on D's keys"""
        return dict.iterkeys(self)

    def values(self):
        """D.values() -> an object providing a view on D's values"""
        return dict.itervalues(self)


def gcd(x, y):
    """greatest common divisor of x and y"""
    while y:
        x, y = y, x % y
    return x


range = xrange

filter = itertools.ifilter
map = itertools.imap
zip = itertools.izip

sys.stdin = BytesIO(os.read(0, os.fstat(0).st_size))
sys.stdout = BytesIO()
register(lambda: os.write(1, sys.stdout.getvalue()))

input = lambda: sys.stdin.readline().rstrip('\r\n')


def main():
    s = input().split('/')
    if int(s[1]) <= 4:
        print('Heisei')
    else:
        print('TBD')


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def main():
    if 20190430 >= int(input().replace('/', '')):
        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:
import sys
stdin = sys.stdin
 
sys.setrecursionlimit(10**5) 
 
def li(): return map(int, stdin.readline().split())
def li_(): return map(lambda x: int(x)-1, stdin.readline().split())
def lf(): return map(float, stdin.readline().split())
def ls(): return stdin.readline().split()
def ns(): return stdin.readline().rstrip()
def lc(): return list(ns())
def ni(): return int(stdin.readline())
def nf(): return float(stdin.readline())

s = ns()
mm = s[5:7]
dd = s[8:10]

if int(mm) < 4:
    print("Heisei")
elif int(mm) == 4 and int(dd) < 31:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    Y, M, D = tuple(map(int, input().split("/")))
    if Y <= 2018:
        print("Heisei")
    if Y == 2019 and M < 5:
        print("Heisei")
    else:
        print("TBD")

Submission status: Accepted

Solution code:
Y,M,D=list(map(int,input().split("/")))

if Y<2019: print("Heisei")
else:
	if M<=4: print("Heisei")
	else: print("TBD")

Submission status: Accepted

Solution code:
m = int(input().split("/")[1])

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
y = int(S[:4])
m = int(S[5:7])
if y >= 2019 and m >= 5:
    print('TBD')
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:
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 = list(input())

m = int(''.join(s[5:7]))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if int(m) < 5:
    print("Heisei")
else:
    print("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:
s = input()

YYYY = int(s[:4])
MM = int(s[5:7])
if YYYY < 2019 or (YYYY == 2019 and MM <= 4):
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import itertools
a,b,c=map(int,input().split('/'))

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