qyliang/CodeNanoFix huggingface dataset:
Buggy code:
S = input().split("/")
if S[1]==4 and S[2]<=30:
    print("Heisei")
elif S>4:
    print("TBD")
else:
    print("Heisei")


Fixed code:
S = input().split("/")
if int(S[1])==4 and int(S[2])<=30:
    print("Heisei")
elif int(S[1])>4:
    print("TBD")
else:
    print("Heisei")
Buggy code:
s = input().split('/')
if int(s[0]+s[1]+s[2]) > 20190430:
  print('Heisei')
else:
  print('TBD')

Fixed code:
s = input().split('/')
if int(s[0]+s[1]+s[2]) > 20190430:
  print('TBD')
else:
  print('Heisei')
Buggy code:
S = input()
if int(s[5]) == 0 and int(s[6]) <= 4 :
    print('Heisei')
else :
    print('TBD')

Fixed code:
s = input()
if int(s[5]) == 0 and int(s[6]) <= 4 :
    print('Heisei')
else :
    print('TBD')
Buggy code:
S = input()
s = S.split('/')
ss = int(s[1])
res = 'aaa'

if ss<=4:
	res = "heisei"

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

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

if ss<=4:
	res = "Heisei"

if ss >=5:
	res = "TBD"
print(res)
Buggy code:
import re

s = input()
li = s.splite("/")
month = int(li[1])

if month > 4:
  print('TBD')
else:
  print("Heisei")

Fixed code:
import re

s = input()
li = s.split("/")
month = int(li[1])

if month > 4:
  print('TBD')
else:
  print("Heisei")
Buggy code:
a, b, c = input().split("/")
if int(a) < 2019:
    print("Heisei")
elif int(a) == 2019 and int(b) <= 4:
    print("Heiesei")
else:
    print("TBD")

Fixed code:
a, b, c = input().split("/")
if int(a) < 2019:
    print("Heisei")
elif int(a) == 2019 and int(b) <= 4:
    print("Heisei")
else:
    print("TBD")
Buggy code:
a = input()
d = 'Heisei'
if int(a[0:4]) ==2019:
  if int(a[5:7]) == 4:
    if int(a[8:10]) == 30:
      break
    elif int(a[8:10]) <30:
      d = 'TBD'
    else:
      break
  elif int(a[5:7]) <=3:
    d = 'TBD'
  else:
    break
elif int(a[0:4]) <= 2018:
  d = 'TBD'
else:
  break
print(d)

Fixed code:
a = input()
d = 'TBD'
if int(a[0:4]) ==2019:
  if int(a[5:7]) == 4:
    if int(a[8:10]) <=30:
      d = 'Heisei'
  elif int(a[5:7]) <=3:
    d = 'Heisei'
elif int(a[0:4]) <= 2018:
  d = 'Heisei'
print(d)
Buggy 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')

Fixed 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('TBD')
Buggy code:
s = input().split('/')
ss = list(map(int, s))
if (ss[0] > 2019 and ss[1] >= 5):
  print('TBD')
else:
  print('Heisei')

Fixed code:
s = input().split('/')
ss = list(map(int, s))
if (ss[0] >= 2019 and ss[1] >= 5):
  print('TBD')
else:
  print('Heisei')
Buggy code:
S = input()
if int(S[5:7]) <= 4:
	print("TBD")
else:
	print("Heisei")

Fixed code:
S = input()
if int(S[5:7]) <= 4:
    print("Heisei")
else:
    print("TBD")
Buggy code:
A,B,C = map(str,input().split("/"))
if int(A) <= 2018:
  print("Heisei")
elif int(A) = 2019,int(B) <=4,int(C)<=30:
  print("Heisei")
else int(A)>=2019:
print("TBD")

Fixed code:
A,B,C = map(str,input().split("/"))
if int(A) <= 2018:
  print("Heisei")
elif int(A) == 2019 and int(B) <=4 and int(C)<=30:
  print("Heisei")
else:
  print("TBD")
Buggy code:
S = input()
month = S.split("/")[1]

if int(month) <= 4:
    print('Heisei')
else:
    print('TDB')

Fixed code:
S = input()
month = S.split("/")[1]

if int(month) <= 4:
    print('Heisei')
else:
    print('TBD')
Buggy code:
line = list(input().split("/"))
print(line)
if int(line[0]) <= 2019 and int(line[1]) <= 4:
    print("Heisei") 
else:
    print("TBD")   

Fixed code:
line = list(input().split("/"))
if int(line[0]) <= 2019 and int(line[1]) <= 4:
    print("Heisei") 
else:
    print("TBD")
Buggy code:
S=str(input())
X=int(S[5:7])
if X>=5:
	print('TBD')
else:
	print('HEISEI')

Fixed code:
S=str(input())
X=int(S[5:7])
if X>=5:
	print('TBD')
else:
	print('Heisei')
Buggy code:
# coding: utf-8
from sys import stdin
Y,M,D = map(int,stdin.readline().rstrip().split("/"))
print("Heisei" if M >= 5 else "TBD")

Fixed code:
# coding: utf-8
from sys import stdin
Y,M,D = map(int,stdin.readline().rstrip().split("/"))
if Y >= 2019 and  M >= 5:
    print("TBD")
else:
    print("Heisei")
Buggy code:
S = input()
month = int(S[5]+S[6])
if month >= 4:
	print("TBD")
else:
	print("Heisei")

Fixed code:
S = input()
month = int(S[5]+S[6])
if month >= 5:
	print("TBD")
else:
	print("Heisei")
Buggy code:
S=str(input())
if int(str[5:7])<5:
  print("Heisei")
else:
  print('TBD')

Fixed code:
S=str(input())
if int(S[5:7])<5:
  print("Heisei")
else:
  print('TBD')
Buggy code:
a = list(map(int,input().split(/)))
if a[1] > 4:
  print("TBD")
else:
  print("Heisei")


Fixed code:
a = list(map(int,input().split("/")))
if a[1] > 4:
  print("TBD")
else:
  print("Heisei")
Buggy code:
a=int(input().replace("/",""))
if a - 20190430 > 0:
    print("Heisei")
else:
    print("TBD")



Fixed code:
a=int(input().replace("/",""))
if a - 20190430 > 0:
    print("TBD")
else:
    print("Heisei")
Buggy code:
Y, M, D = map(int, input().split(/))
boo = False
if Y < 2019:
  boo = True
else:
  if Y == 2019 and M <= 4:
    boo = True
if boo:
  print("Heisei")
else:
  print("TBD")

Fixed code:
Y, M, D = map(int, input().split("/"))
boo = False
if Y < 2019:
  boo = True
else:
  if Y == 2019 and M <= 4:
    boo = True
if boo:
  print("Heisei")
else:
  print("TBD")
Buggy code:
s = input()
li = s.split('/')
date = int(li[0])*10000 + int(li[1])*100 + int(li[2])*100
if date <= 20190430:
    print('Heisei')
else:
    print('TBD')

Fixed code:
s = input()
li = s.split('/')
date = int(li[0])*10000 + int(li[1])*100 + int(li[2])
if date <= 20190430:
    print('Heisei')
else:
    print('TBD')
Buggy code:
moji = str(input())
if int(moji[0:4]) < 2019:
  print("Heisei")
elif int(moji[0:4]) == 2019:
  if int(moji[6:7])<=4:
    print("Heisei")
  else:
    print("TBD")
else:
  print("TBD")

Fixed code:
moji = str(input())
if int(moji[0:4]) < 2019:
  print("Heisei")
elif int(moji[0:4]) == 2019:
  if int(moji[5:6]) == 0 and int(moji[6:7])<=4:
    print("Heisei")
  else:
    print("TBD")
else:
  print("TBD")
Buggy code:
print(["TBD","Heisei"][input()<"2019/04/30"])

Fixed code:
print(["TBD","Heisei"][input()<="2019/04/30"])
Buggy code:
m = int(''.join(list(input().split('/'))))
if m > 201904030:
    print("TBD")
else:
    print("Heisei")


Fixed code:
m = int(''.join(list(input().split('/'))))
if m > 20190430:
    print("TBD")
else:
    print("Heisei")
Buggy code:
y, m, d = list(input().split('/'))

n = int(y + m + d)

if n <= 20190430:
  print("Heisei")
else:
  print("TDB")



Fixed code:
y, m, d = list(input().split('/'))

n = int(y + m + d)

if n <= 20190430:
  print("Heisei")
else:
  print("TBD")
Buggy code:
s=int(input())
print("Heisei" if s<"2019/04/30" else "TBD")

Fixed code:
s=input()
print("Heisei" if s<="2019/04/30" else "TBD")
Buggy code:
from sys import stdin
import datetime
 
i = stdin.readline().strip()
d = map(int, i.split("/"))
print("Heisei" if d <= (2019,4,30) else "TBD")


Fixed code:
from sys import stdin
 
i = stdin.readline().strip()
d = tuple(map(int, i.split("/")))
print("Heisei" if d <= (2019,4,30) else "TBD")
Buggy code:
s = input()
s = s.replace("/", "")
if s <= 20190430 :
    print("Heisei")
else :
    print("TBD")

Fixed code:
s = input()
s = int(s.replace("/", ""))
if s <= 20190430 :
    print("Heisei")
else :
    print("TBD")
Buggy code:
a,b,c=map(int,input().split("/"))
if b>=5:
  print("TBD")
else:
  print("heisei")

Fixed code:
a,b,c=map(int,input().split("/"))
if b>=5:
  print("TBD")
else:
  print("Heisei")
Buggy code:
a = input()
b = a.split("/")
if (int(b[0]) <= 2019):
  if(int(b[1])<=4):
    print("Heisei")
else:
  print("TBD")

Fixed code:
a = input()
b = a.split("/")
if (int(b[0]) <= 2019):
  if(int(b[1])<=4):
    print("Heisei")
  else:
    print("TBD")
else:
    print("TBD")
Buggy code:
y, m, d = map(int, input().split('/'))
#print (y, m, d)
if m <= 4:
    print ('Heissei')
else:
    print ('TBD')

Fixed code:
y, m, d = map(int, input().split('/'))
#print (y, m, d)
if m <= 4:
    print ('Heisei')
else:
    print ('TBD')
Buggy code:
def getN():
    return int(input())
def getNM():
    return map(int, input().split())
def getList():
    return list(map(int, input().split()))

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

if int(s[0]) <= 2018:
    print("Heisei")
elif int(s[1]) <= 3:
    print("Heisei")
elif int(s[2]) <= 30:
    print("Heisei")
else:
    print("TBD")

Fixed code:
def getN():
    return int(input())
def getNM():
    return map(int, input().split())
def getList():
    return list(map(int, input().split()))

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

if int(s[0]) <= 2018:
    print("Heisei")
elif int(s[0]) >= 2020:
    print("TBD")
elif int(s[1]) <= 3:
    print("Heisei")
elif int(s[1]) >= 5:
    print("TBD")
elif int(s[2]) <= 30:
    print("Heisei")
else:
    print("TBD")
Buggy code:
s = list(input().split('/'))
s = [int(ss) for ss in s]

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


Fixed code:
s = list(input().split('/'))
s = [int(ss) for ss in s]

if s[0] < 2019:
  print("Heisei")
elif s[0] == 2019:
  if s[1] < 4 or (s[1] == 4 and s[2] <= 30):
    print("Heisei")
  else:
    print("TBD")
else:
  print("TBD")
Buggy code:
a = input()
m = int(a[5:7])
if(m<4):
    print("Heisei")
else:
    print("TBD")

Fixed code:
a = input()
m = int(a[5:7])
if(m<=4):
    print("Heisei")
else:
    print("TBD")
Buggy code:
s = input()
s = s.replace("/","")
print("Heisei" if s <= 20190430 else "TBD")

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

v = ""
for line in sys.stdin:
    v = [int(i) for i in line.split("/")]

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

  

Fixed code:
import sys
 
v = ""
for line in sys.stdin:
    v = [int(i) for i in line.split("/")]
 
if v[0] < 2019:
  print("Heisei")
elif v[0] == 2019 and v[1] <= 4 and v[2] <= 30:
  print("Heisei")
else:
  print("TBD")
Buggy code:
a, b, c=map(int, input().split(/))
if a>=2020:
  print("TBD")
elif a==2019 and b>=5:
  print("TBD")
else:
  print("Heisei")

Fixed code:
a, b, c=map(int, input().split("/"))
if a>=2020:
  print("TBD")
elif a==2019 and b>=5:
  print("TBD")
else:
  print("Heisei")
Buggy code:
y,m,d =input().split("/")

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

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

if m<=4:
  print("Heisei")
else:
  print("TBD")
Buggy code:
s=input()
print(s)
if "2019/04/30">=s:
    print('Heisei')
else:
    print('TBD')


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

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



Fixed code:

S = input()
if(S <= '2019/04/30'):
    print('Heisei')
else:
    print('TBD')
Buggy code:
s = input()
day = (s.split("/"))
if day[1] == "4":
 print("Heisei")
else:
 print("TBD")

Fixed code:
s = input()
day = (s.split("/"))
if int(day[1]) <= 4:
 print("Heisei")
else:
 print("TBD")
Buggy code:
S=str(input())
if int(S[5:7])<=4:
  print('HEISEI')
else:
  print('TBD')

Fixed code:
S=str(input())
if int(S[5:7])<=4:
  print('Heisei')
else:
  print('TBD')
Buggy code:
y,m,d = input().split('/')

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


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

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

Fixed code:
_,b,_=input().split('/')
print("Heisei"if int(b)<5 else"TBD")
Buggy 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')
    
solver()

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

solver()
Buggy code:
x = input()
yyyy, mm, dd = x.split("/")
if mm <= 4:
  print("Heisei")
else:
  print("TBD")
  

Fixed code:
x = input()
yyyy, mm, dd = x.split("/")
if int(mm) <= 4:
  print("Heisei")
else:
  print("TBD")
Buggy 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")
  


Fixed 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")
Buggy code:
y, m, d = int(input().split("/"))

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

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

if y < 2019:
    print("Heisei")
elif m <= 4 :
    print("Heisei")
else:
    print("TBD")
Buggy code:
year, month, day = map(int, input().split("/"))

if year<2019:
  print("Heisei")
elif year == 2019 && month<5:
  print(Heisei)
else:
  print("TBD")

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

if year<2019:
  print("Heisei")
elif year == 2019 and month<5:
  print("Heisei")
else:
  print("TBD")
Buggy code:
S = int(input())
print('Heisei' if S[5]==0 and S[6]<5 else 'TBD')    

Fixed code:
S = list(str(input()))
print('Heisei' if int(S[5])==0 and int(S[6])<5 else 'TBD')
Buggy code:
# -*- coding: utf-8 -*-
"""
A - Still TBD
https://atcoder.jp/contests/abc119/tasks/abc119_a

"""
import sys


def main(args):
    S = input()
    yyyy, mm, dd = map(int, S.split('/'))
    if yyyy >= 2019 and mm >= 5:
        print('TBD')
    else:
        print('Helsei')

if __name__ == '__main__':
    main(sys.argv[1:])


Fixed code:
# -*- coding: utf-8 -*-
"""
A - Still TBD
https://atcoder.jp/contests/abc119/tasks/abc119_a

"""
import sys


def main(args):
    S = input()
    yyyy, mm, dd = map(int, S.split('/'))
    if yyyy >= 2019 and mm >= 5:
        print('TBD')
    else:
        print('Heisei')

if __name__ == '__main__':
    main(sys.argv[1:])
Buggy code:
y,m,d = map(int,input().split("/"))
if m <= 4:
  print("heisei")
else :
  print("TBD")

Fixed code:
y,m,d = map(int,input().split("/"))
if m <= 4:
  print("Heisei")
else :
  print("TBD")
Buggy code:
s = input()
print("Heisei" if s<"2019/04/30" else "TBD")

Fixed code:
s = input()
print("Heisei" if s<="2019/04/30" else "TBD")
Buggy code:
A,B,C=(int(i) for i in input().split("/"))
if B>4:
    print("TBD")
elif B<=4:
    print("heisei")

Fixed code:
A,B,C=(int(i) for i in input().split("/"))
if B>4:
    print("TBD")
elif B<=4:
    print("Heisei")
Buggy code:
S = input()
S = int(S.replace("/",""))
if S < 20190430:
  print("Heisei")
else:
  print("TBD")

Fixed code:
S = input()
S = int(S.replace("/",""))
if S <= 20190430:
  print("Heisei")
else:
  print("TBD")
Buggy code:
a=list(map(int,input().split('/')))
print(a)
if a[0]==2019:
    if a[1]==4:
        if 30<=a[2]:
            print("Heisei")
        else:
            print("TBD")
    elif 5<=a[1]:
        print("Heisei")
    else:
        print("TBD")
elif 2019<a[0]:
    print("Heisei")
else:
    print("TBD")

Fixed code:
a=list(map(int,input().split('/')))
#print(a)
if a[0]==2019:
    if a[1]==4:
        if 30>=a[2]:
            print("Heisei")
        else:
            print("TBD")
    elif 5>a[1]:
        print("Heisei")
    else:
        print("TBD")
elif 2019>=a[0]:
    print("Heisei")
else:
        print("TBD")
Buggy code:
y,m,d = map(int,input().split("/")

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

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

if y >= 2020:
    print("TBD")
elif y == 2019:
    if m >= 5:
        print("TBD")
    else:
        print("Heisei")   
else:
    print("Heisei")
Buggy code:
from sys import stdin

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

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




Fixed code:
import sys

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

if(int(a[1]) > 4):
    print("TBD")
else:
	print("Heisei")
Buggy code:
s = input()
if int(s[5:7]) < 4:
    print ("Heisei")
else :
    print ('TBD')


Fixed code:
s = input()

m = s[5:7]

if int(m) <= 4:
  print('Heisei')
  
else:
  print('TBD')
Buggy code:
S=input()

S_l=S.split('/')

if int(S_l[1]>4:
       print('TBD')
else:
       print('Heisei')

Fixed code:
S=input()

S_l=S.split('/')

if int(S_l[1])>4:
       print('TBD')
else:
       print('Heisei')
Buggy code:
a, b, c = input().split("/")
print("TBD" if b > 4 else "Heisei")

Fixed code:
a, b, c = input().split("/")
print("TBD" if int(b) > 4 else "Heisei")
Buggy code:
S = input()
if S >= "2019/04/30":
    print("TBD")
else:
    print("Heisei")


Fixed code:
S = input()
if S > "2019/04/30":
    print("TBD")
else:
    print("Heisei")
Buggy code:
import numpy as np

s = str(input())

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

y, m, d = int(y), int(m), int(d)

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

Fixed code:
import numpy as np

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

y, m, d = int(y), int(m), int(d)

if y < 2019:
  print("Heisei")
elif y==2019 and m<4:
  print("Heisei")
elif y==2019 and m==4 and d <= 30:
  print("Heisei")
else:
  print("TBD")
Buggy code:
s = input()
s = s.replace('/','')
print(s)

result = int(s)
if result <= 20190430:
    print("Heisei")
else:
    print("TBD")

Fixed code:
s = input()
s = s.replace('/','')

result = int(s)
if result <= 20190430:
    print("Heisei")
else:
    print("TBD")
Buggy code:
Y, M, D = list(map(int, input().split("/")))
s = ''.join([Y,M,D])

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

Fixed code:
Y, M, D = map(str, input().split("/"))
s = ''.join([Y,M,D])

if int(s)>20190430:
    print("TBD")
else:
    print("Heisei")
Buggy code:
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
#a = [input() for _ in range(n)]

s = input()

year = int(s[0:4])
month = int(s[6:7])
day = int(s[8:9])

if (year > 2019):
    print("TBD")
elif (year < 2019):
    print("Heisei")
else:
    if (month > 4):
        print("TBD")
    elif (month < 4):
        print("Heisei")
    else:
        if (day > 30):
            print("TBD")
        else:
            print("Heisei")






Fixed code:
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
#a = [input() for _ in range(n)]

s = input()

year = int(s[0:4])
month = int(s[5:7])
day = int(s[9:])



if (year > 2019):
    print("TBD")
elif (year < 2019):
    print("Heisei")
else:
    if (month > 4):
        print("TBD")
    elif (month < 4):
        print("Heisei")
    else:
        if (day > 30):
            print("TBD")
        else:
            print("Heisei")
Buggy code:

S = input()
S = S.replace('/', '')

if int(S) - 2019430 > 0:
  print('TBD')
else:
  print('Heisei')



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

if int(S) - 20190430 > 0:
  print('TBD')
else:
  print('Heisei')
Buggy code:
y, m, d=map(int, input().split("/"))
if 2020<y:
  print("Heisei")
else:
  if y<2019:
    print("TBD")
    
  else:                   #y==2019
    if 5<m:
      print("Heisei")
    else:
      if m<=4:
        print("TBD")

Fixed code:
y, m, d=map(int, input().split("/"))
if 2020<y:
  print("TBD")
else:
  if y<2019:
    print("Heisei")
    
  else:                   #y==2019
    if 5<=m:
      print("TBD")
    else:
      if m<=4:
        print("Heisei")
Buggy code:
s=int(input())
if int(s[5:7])>4:
  print("TBD")
else:
  print("Heisei")

Fixed code:
s=input()
if int(s[5:7])>4:
  print("TBD")
else:
  print("Heisei")
Buggy code:
S = input(S)
T = [c for c in S]
if int(T[0]) * 1000 + int(T[1]) * 100 + int(T[2]) * 10 + int(T[3]) <= 2018 or  (int(T[0]) * 1000 + int(T[1]) * 100 + int(T[2]) * 10 + int(T[3]) == 2019 and int(T[5]) * 1000 + int(T[6]) * 100 + int(T[8]) * 10 + int(T[9]) <= 430 ):
  print('Heisei')
  exit()
print('TBD')  

Fixed code:
S = input()
T = [c for c in S]
if int(T[0]) * 1000 + int(T[1]) * 100 + int(T[2]) * 10 + int(T[3]) <= 2018 or  (int(T[0]) * 1000 + int(T[1]) * 100 + int(T[2]) * 10 + int(T[3]) == 2019 and int(T[5]) * 1000 + int(T[6]) * 100 + int(T[8]) * 10 + int(T[9]) <= 430 ):
  print('Heisei')
  exit()
print('TBD')
Buggy code:
a = input()
if int(a[5])=0 and int(a[6])<=4:
  print('Heisei')
else:
  print('TBD')

Fixed code:
a = input()
if int(a[5])==0 and int(a[6])<=4:
  print('Heisei')
else:
  print('TBD')
Buggy code:
y,m,d=list(map(int,input().split("/")))
if y>2019:
  print("TBD")
elif y<2019:
  print("Heisei")
elif m>4:
  print("TBD")
elif m<4:
  print("Heisei")
elif d>=30:
  print("TBD")
else:
  print("Heisei")

Fixed code:
y,m,d=list(map(int,input().split("/")))
if y>2019:
  print("TBD")
elif y<2019:
  print("Heisei")
elif m>4:
  print("TBD")
elif m<4:
  print("Heisei")
elif d>30:
  print("TBD")
else:
  print("Heisei")
Buggy code:
S = input()
print('Heisei' if S <= '2019/04/30' else 'TBD)

Fixed code:
S = input() 

if S <= "2019/04/30":
    print("Heisei")
else:
    print("TBD")
Buggy code:
s = input()
if int(s[:4]) > 2019:
  print("Heisei")
elif int(s[5:7]) >= 5:
  print("Heisei")
else:
  print("TBD")

Fixed code:
s = input()
if int(s[:4]) > 2019:
  print("TBD")
elif int(s[5:7]) >= 5:
  print("TBD")
else:
  print("Heisei")
Buggy code:
S = input()
y,m,d = map(int,S.split('/'))
ans = 'HBT'
if y <= 2019 and m <= 4 and d <= 30 or y < 2018:
    ans = 'Heisei'
print(ans)




Fixed code:
S = input()
y,m,d = map(int,S.split('/'))
ans = 'TBD'
if y <= 2019 and m <= 4 and d <= 30 or y < 2018:
    ans = 'Heisei'
print(ans)
Buggy code:
y, m, d = map(int, input().split('/'))
if m <= 4:
    print("Heisei")
else:
    print("TBT")

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

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


heisei = False
heisei = heisei or y < 2019
heisei = heisei or y == 2019 and m < 4
heisei = heisei or y == 2019 and m == 4 and d <= 30

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


Fixed code:

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


heisei = False
heisei = heisei or y < 2019
heisei = heisei or y == 2019 and m < 4
heisei = heisei or y == 2019 and m == 4 and d <= 30

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


Fixed 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')
Buggy code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-


def main():
  year, month, _ = map(int, input().split('/'))
  ans = 'TBF'

  if year < 2019 or (year == 2019 and month <= 4):
    ans = 'Heisei'

  print(ans, flush=True)


if __name__ == '__main__':
  main()



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


def main():
  year, month, _ = map(int, input().split('/'))
  ans = 'TBD'

  if year < 2019 or (year == 2019 and month <= 4):
    ans = 'Heisei'

  print(ans, flush=True)


if __name__ == '__main__':
  main()
Buggy code:
s = str(input())

nexts = s.replace("/","")

sint = int(nexts)

print(sint)


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


Fixed code:
s = str(input())

nexts = s.replace("/","")

sint = int(nexts)

if sint <= 20190430:
    print("Heisei")
else:
    print("TBD")
Buggy code:
s = input()
year = int(s[0:4])
month = int(s[5:7])

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

Fixed code:
s = input()
year = int(s[0:4])
month = int(s[5:7])
 
if year >= 2019 and month >= 5:
  print("TBD")
else:
  print("Heisei")