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

Solution (Python):
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:
        
        if d <= 30:
            print('Heisei')
        else:
            print('TBD')



if __name__ == "__main__":
    main()

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

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

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

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

Solution (Python):

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

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

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

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

Solution (Python):

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

Solution (Python):
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')

Solution (Python):
S = input()

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

Solution (Python):
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")

Solution (Python):
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))

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

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

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

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

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

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

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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")

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

Solution (Python):

import sys

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

Solution (Python):
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)

Solution (Python):
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")

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

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

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

Solution (Python):

a,b,c=map(int,input().split("/")) 


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

Solution (Python):
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)

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

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

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

Solution (Python):
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")

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

Solution (Python):
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')

Solution (Python):
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")

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

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

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

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

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

print(ans)

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

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

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

yes = 1

if m > 4: yes = 0

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

Solution (Python):
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")

Solution (Python):
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')

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

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

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

Solution (Python):
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")

Solution (Python):
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)

Solution (Python):


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

Solution (Python):
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())

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

Solution (Python):
s=input()

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

Solution (Python):

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

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

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

Solution (Python):
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')

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

Solution (Python):
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)

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

Solution (Python):
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')

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

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

Solution (Python):
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')

Solution (Python):

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

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

Solution (Python):

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

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

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

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

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

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



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

Solution (Python):



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

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

main()

Solution (Python):
[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')

Solution (Python):

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



if __name__ == '__main__':
    main()

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

Solution (Python):
Ss = input()

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

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

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

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

Solution (Python):



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

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

Solution (Python):
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")

Solution (Python):
S = input()

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

Solution (Python):
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)

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

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

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

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

Solution (Python):
import datetime

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

Solution (Python):
n = input()

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

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

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

Solution (Python):
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')

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

Solution (Python):


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')

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

Solution (Python):
s = input()

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

Solution (Python):

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

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

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

Solution (Python):
s1, s2, s3 = input().split("/")
if int(s2) <=4:
    print("Heisei")
else:
    print("TBD")

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

if Y <= 2019 and M <= 4 and D <= 30:
    print('Heisei')
else:
    print('TBD')

Solution (Python):
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')

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

Solution (Python):
S = input()

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

Solution (Python):
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'

Solution (Python):
S = input()

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

Solution (Python):

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

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

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

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

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

Solution (Python):
def main():
    if 20190430 >= int(input().replace('/', '')):
        print('Heisei')
    else:
        print('TBD')


main()

Solution (Python):

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

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

Solution (Python):
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")

Solution (Python):
s = input()

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

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

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

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

Solution (Python):
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")

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

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

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

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

Solution (Python):
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")

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

Solution (Python):
S = input()

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

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

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

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

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

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

Solution (Python):
s = list(input())

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

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

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

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

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

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

Solution (Python):

S = input()
y,m,d = S.split("/")

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

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

Solution (Python):
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")

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

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

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

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

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

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

Solution (Python):
s = input()

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

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

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

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

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

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

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

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

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

Solution (Python):

s = input()
s = s.replace('/', '')
s = int(s)

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

Solution (Python):
s = input()
m = int(s[5:7])
d = int(s[8:])
if m <= 4:
    print('Heisei')
elif m > 4:
    print('TBD')

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

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

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

Solution (Python):
s=input()

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

Solution (Python):
S = input()

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

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

Solution (Python):
S = input()

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

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