qyliang/CodeNanoFix huggingface dataset:
Buggy code:
def main():
    year, month, day = int(input().strip().split('/'))

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

    print('TBD')
    return

if __name__ == '__main__':
    main()


Fixed code:

def main():
    year, month, day = map(int, input().strip().split('/'))

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

    print('TBD')
    return

if __name__ == '__main__':
    main()
Buggy code:
y,m,d = list(input().split("/"))
s = y+m+d

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

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

if s <= 20190430:
    print("Heisei")
else:
    print("TBD")
Buggy 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')

Fixed 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')
Buggy code:
date = input()
tdate=[]
 
for s in date:
  tdate.insert[s]
  
if tdate[5] != "0":
  mon = int(tdate[5] + tdate[6])
else:
  mon = int(tdate[6])
 
if mon <= 4:
  print("Heisei")
else:
  print("TBD")

Fixed code:
date = input()
tdate=[]
 
for s in date:
  tdate.append(s)
  
if tdate[5] != "0":
  mon = int(tdate[5] + tdate[6])
else:
  mon = int(tdate[6])


if mon <= 4:
  print("Heisei")
else:
  print("TBD")
Buggy code:
y,m,d=map(int,input().solit("/"))
if m<5:
  print("Heisei")
else:
  print("TBD")

Fixed code:
y,m,d=map(int,input().split("/"))
if m<5:
  print("Heisei")
else:
  print("TBD")
Buggy code:
import sys
input_lines = sys.stdin.readline()
y,m,d = input_lines.split("/")



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

Fixed code:
import sys
input_lines = sys.stdin.readline()
y,m,d = input_lines.split("/")


if(int(m)<=4):
    print("Heisei")
else:
    print("TBD")
Buggy code:
S=input()
S.replace("/","")
if (int(S) - "20190430") <= 0:
  print("Heisei")
else:
  print("TBD")

Fixed code:
S=input()
if (int(S.replace("/","")) - 20190430) <= 0:
  print("Heisei")
else:
  print("TBD")
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:
s = input()
if s <= '2019/04/30':
  print('Heisei')
print('TBD')

Fixed code:
s = input()

if s <= "2019/04/30":
    print("Heisei")
else:
    print("TBD")
Buggy code:
S = list(map(int, input().split("/")))

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

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

result = "TBD"
if y < 2019:
  result = "heisei"
elif m < 5:
  result = "heisei"

print(result)

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

result = "TBD"
if y < 2019:
  result = "Heisei"
elif m < 5:
  result = "Heisei"

print(result)
Buggy code:
S = input()

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

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

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

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

if y < 2019 or (y ==2019 and m <=4):
  print("Heisei")
else:
  print("TBD")
Buggy code:
x, y, z=list(map(int, input().split(/)))
if y>=5:
  print("TBD")
else:
  print("Heisei")

Fixed code:
x, y, z=list(map(int, input().split("/")))
if y>=5:
  print("TBD")
else:
  print("Heisei")
Buggy code:
s = int("".join(input().split("/")))
print(s)
if s > 20190430:
	print("TBD")
else:
	print("Heisei")



Fixed code:
s = int("".join(input().split("/")))
if s > 20190430:
	print("TBD")
else:
	print("Heisei")
Buggy code:
S = input()
A = sorted([S,"2019/4/30"])
if A[0] == A[1]:
    print("Heisei")
elif A[0] == "2019/4/30":
    print("TBD")
else:
    print("Heisei")

Fixed code:
S = input()
A = sorted([S,"2019/04/30"])
if A[0] == A[1]:
    print("Heisei")
elif A[0] == "2019/04/30":
    print("TBD")
else:
    print("Heisei")
Buggy 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')


Fixed 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')
Buggy code:
import re

date_s = input()

date_l = re.replace("/", "")

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

Fixed code:
import re

date_s = input()

date_l = int(date_s.replace("/", ""))

if(date_l <= 20190430):
  print("Heisei")
else:
  print("TBD")
Buggy code:
s = input()
rei = "2019/04/30"
if int(rei[5:7]) < int(s[5:7]):
	print("TBD")
else:
    print("TBD")

Fixed code:
s = input()
rei = "2019/04/30"
if 4 < int(s[5:7]):
	print("TBD")
else:
    print("Heisei")
Buggy code:
dt = [for int(i) in input().split("/")]
if dt[0] >= 2019 and dt[1] >= 5:
    print("TBD")
else :
    print("Heisei")

Fixed code:
dt = [int(i) for i in input().split("/")]

if dt[0] >= 2019 and dt[1] >= 5:
    print("TBD")
else :
    print("Heisei")
Buggy code:
date = input().split("/")
    sum = int(date[0]) * 365 + int(date[1]) * 30 + int(date[2])

    if 737085 < sum:
        print("TBD")
    else:
        print("Heisei")

Fixed code:
date = input().split("/")
sum = int(date[0]) * 365 + int(date[1]) * 30 + int(date[2])

if 737085 < sum:
    print("TBD")
else:
    print("Heisei")
Buggy code:
y,m,d = input().split("/")
flag = False
if(int(y) > 2019) :
  flag = True
elif(int(y) == 2019):
  if(m>=5):
    flag = True
print("TBD" if flag else "Heisei")

Fixed code:
y,m,d = input().split("/")
flag = False
if(int(y) > 2019) :
  flag = True
elif(int(y) == 2019):
  if(int(m)>=5):
    flag = True
print("TBD" if flag else "Heisei")
Buggy code:
s = list(map(int, input().split('/')))
if s[0] = 2018 and s[1] > 4:
  print("TBD")
elif s[0] >2018:
  print("TBD")
else : print("Heisei")

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

Fixed code:
print('TBD'if int(input().split('/')[1])>4 else 'Heisei')
Buggy code:
Y,M,D=map(int,input().split("/"))
if (Y,M,D)<=(2019,4,30):
    print("Heisei")
else:
    print("Reiwa")


Fixed code:
Y,M,D=map(int,input().split("/"))
if (Y,M,D)<=(2019,4,30):
    print("Heisei")
else:
    print("TBD")
Buggy code:
def main():
  s = input()
  if int(s[0:4])<=2018:
    print( "Heisei" )
  elif int(s[0:4])==2019:
    if int(s[5:6])<=4:
      print( "Heisei" )
    else:
      print( "TBD" )
  else:
      print( "TBD" )
  
main()

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

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

Fixed code:
y,m,d=map(int,input().split("/"))
if y<=2018:
  ans="Heisei"
else:
  if m<=4:
    ans="Heisei"
  else:
    ans="TBD"
print(ans)
Buggy code:
import sys
from itertools import product

import numpy as np

sys.setrecursionlimit(200000)


def input():
    return sys.stdin.readline()[:-1]


def ii(t: type = int):
    return t(input())


def il(t: type = int):
    return list(map(t, input().split()))


def imi(N: int, t: type = int):
    return [ii(t) for _ in range(N)]


def iml(N: int, t: type = int):
    return [il(t) for _ in range(N)]


def solve():
    print("Heisei" if ii(str) == "2019/04/30" else "TBD")


if __name__ == "__main__":
    print(solve())


Fixed code:
import sys
from itertools import product

import numpy as np

sys.setrecursionlimit(200000)


def input():
    return sys.stdin.readline()[:-1]


def ii(t: type = int):
    return t(input())


def il(t: type = int):
    return list(map(t, input().split()))


def imi(N: int, t: type = int):
    return [ii(t) for _ in range(N)]


def iml(N: int, t: type = int):
    return [il(t) for _ in range(N)]


def solve():
    return "Heisei" if ii(str) <= "2019/04/30" else "TBD"


if __name__ == "__main__":
    print(solve())
Buggy code:
s=input()
if s <= 2019/04/30:
  print("Heisei")
else:
  print("TBD")

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

Fixed code:
y,m,d=map(int,input().split('/'));print(["TBD","Heisei"][m<5])
Buggy code:
s = list(map(int, input().split('/')))

if s[1] > 5:
    print('TBD')
elif s[i] <= 4:
    print('Heisei')

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

if s[1] >= 5:
    print('TBD')
elif s[1] <= 4:
    print('Heisei')
Buggy code:
S=input().split('/')
for n in range(3):
    S[n]=int(S[n])
print(S)
if S[0]>=2020 or (S[0]==2019 and S[1]>=5):
    print('TDB')
else:
    print('Heisei')


Fixed code:
S=input().split('/')
for n in range(3):
    S[n]=int(S[n])
if S[0]>=2020 or (S[0]==2019 and S[1]>=5):
    print('TBD')
else:
    print('Heisei')
Buggy code:
#!/usr/bin/python
# coding: UTF-8

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

h='Heisei'
t = 'TBD'

if y > 2019:
  print(t)
elif y < 2020:
  print(h)
else:
  if m > 4:
    print(t)
  elif m < 4:
    print(h)
  else:
    if m > 30:
      print(t)
    else:
      print(h)


Fixed code:
#!/usr/bin/python
# coding: UTF-8

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

h='Heisei'
t = 'TBD'

if m > 4:
    print(t)
elif m < 4:
    print(h)
else:
    if m > 30:
        print(t)
    else:
        print(h)
Buggy code:
s = input()

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

print(month)

if year < 2019:
	print("Heisei")
	quit()

if year >= 2020:
	print("TBD")
	quit()

if year==2020 and month >= 5:
	print("TBD")
	quit()
else:
	print("Heisei")

Fixed code:
s = input()

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


if year < 2019:
	print("Heisei")
	quit()

if year >= 2020:
	print("TBD")
	quit()

if year==2019 and month >= 5:
	print("TBD")
	quit()
else:
	print("Heisei")
Buggy code:
S=input()
if S[5:7]<5:
    print('Heisei')
else:
    print('TBD')
    

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

month = int(day[1])

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


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

month = int(day[1])

if (month >= 5):
    print("TBD")
else:
    print("Heisei")
Buggy code:
# -*- coding: utf-8 -*-

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

if(int(date[0]) >= 2020):
  print('TBD')
  elif(int(date[0]) == 2019 && int(date[1]) >=5):
    print('TBD')
    else:
      print('Heisei')
      
      
  


Fixed code:
# -*- coding: utf-8 -*-
 
date = input().split('/')
 
if(int(date[0]) >= 2020):
  print('TBD')
elif(int(date[0]) == 2019 and int(date[1]) >=5):
  print('TBD')
else:
  print('Heisei')
Buggy 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')
            

Fixed 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<5:
        print('Heisei')
    else:
        print('TBD')
Buggy code:
# coding: utf-8
s = input()
s if s <='2019/04/30' else print("TBD")

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

listS = S.split('/')

if int(listS[0]) < 2019:
    print('Heisei')
elif int(listS[0]) == 2019:
    print('a')
    if int(listS[1]) < 5:
        print('Heisei')
    else:
        print('TBD')
else:
    print('TBD')

Fixed code:
S = str(input())

listS = S.split('/')

if int(listS[0]) < 2019:
    print('Heisei')
elif int(listS[0]) == 2019:
    if int(listS[1]) < 5:
        print('Heisei')
    else:
        print('TBD')
else:
    print('TBD')
Buggy code:
s = map(int,input().split("/"))
if s[1] < 5:
    print('Heisei')
else:
    print('TBD')

Fixed code:
s = list(map(int,input().split("/")))
if s[1] < 5:
    print('Heisei')
else:
    print('TBD')
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 int(m) <= 4:
    print('Heisei')
else:
    print('TBD')
Buggy code:
s = input().split('/')
date = ''
for i in s:
    date += i
print(date)
print('Heisei') if int(date) <=20190430 else print('TBD')

Fixed code:
s = input().split('/')
date = ''
for i in s:
    date += i
print('Heisei') if int(date) <=20190430 else print('TBD')
Buggy code:
print('Heisei' if int(input().split('/')[1]) > 4 else 'TBD')

Fixed code:
print('TBD' if int(input().split('/')[1]) > 4 else 'Heisei')
Buggy code:
print(['TBD','Heisei'][int(input()[5:7])>4])

Fixed code:
print(['Heisei','TBD'][int(input()[5:7])>4])
Buggy code:
_,m,_ = map(int,input().split("/"))
print("TBD" if m > 4 else "HEISEI")

Fixed code:
_,m,_ = map(int,input().split("/"))
print("TBD" if m > 4 else "Heisei")
Buggy code:
#coding:utf-8

if __name__ == "__main__":

    i = str(input())

    j = i.split('/')

    print(j[1].split('0')[1])

    if int(j[0]) < 2019:
        print("Heisei")
    elif int(j[1].split('0')[1]) < 5:
        print("Heisei")
    else:
        print("TBD")

Fixed code:
#coding:utf-8

if __name__ == "__main__":

    i = str(input())

    j = i.split('/')

    if int(j[0]) < 2019:
        print("Heisei")
    elif int(j[1]) < 5:
        print("Heisei")
    else:
        print("TBD")
Buggy code:
lst = list(map(int, input().split('/'))
if lst[1] >= 5:
    print('TBD')
else:
    print('Heisei')

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

Fixed code:
a = int("".join(input().split("/")))
if a <= 20190430:
  print("Heisei")
else:
  print("TBD")
Buggy code:
Y, M, D = map(int, input().split('/'))
if M <= 4:
    print('Heisei')
else:
    print('TDB')


Fixed code:
Y, M, D = map(int, input().split('/'))
if M <= 4:
    print('Heisei')
else:
    print('TBD')
Buggy code:
n=input()
if int(n[5]+n[6]) >=5:
  print('TBD'):
else:
  print('Heisei')

Fixed code:
n=input()
if int(n[5]+n[6]) >=5:
  print('TBD')
else:
  print('Heisei')
Buggy code:
S = input()
if S[5] == 0 and int(S[6]) <= int('5'):
    print('Heisei')
else:
    print('TBD')

Fixed code:
S = input()
if S[5] == '0' and int(S[6]) < int('5'):
    print('Heisei')
else:
    print('TBD')
Buggy code:
# -*- coding: utf-8 -*-

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

201if int(a[1])<5:
    print("Heisei")
else:
    print("TBD")
    

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

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

if int(a[1])<5:
    print("Heisei")
else:
    print("TBD")
Buggy code:
s = input()
if s <= 2019/04/30:
  print("Heisei")
else:
  print("TBD")

Fixed code:
s = input()
print("Heisei" if s <= "2019/04/30" else "TBD")
Buggy code:
# -*- coding: <encoding name> -*-

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

Fixed code:
# -*- coding: <encoding name> -*-

s = input()
print('Heisei' if s <= '2019/04/30' else 'TBD')
Buggy code:
S = list(map(int,input().split('/')))

print(S)

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


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

if S[0] > 2019:
	print("TBD")
elif S[0] == 2019 and S[1] >= 5:
	print("TBD")
elif S[0] == 2019 and S[1] >= 4 and S[2] == 30:
	print("Heisei")
else:
	print("Heisei")
Buggy 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')


Fixed 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')
Buggy code:
a,b,c=map(int,input.split('/'))
if b>4:
  print('TBD')
else:
  print('Heisei')

Fixed code:
a,b,c=list(map(int,input().split('/')))
if b>4:
  print('TBD')
else:
  print('Heisei')
Buggy code:
###A - Still TBD
import datetime

y,m,d = map(int, input().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')

Fixed code:
###A - Still TBD
import datetime

y,m,d = map(int, input().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')
Buggy code:
a = input()
a = int(str.replace(a, "/", ""))
if a <= 20190430:
    print("heisei")
else:
    print("TBD")


Fixed code:
a = input()
a = int(str.replace(a, "/", ""))
if a <= 20190430:
    print("Heisei")
else:
    print("TBD")
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()
print("TBD" if S[6]>=5 or S[5]>=1 else "Heisei")

Fixed code:
S = input()
print("TBD" if S[6]>="5" or S[5]>="1" else "Heisei")
Buggy code:
a,b,c = input().split(/)
A = a + b + c
if A <= "20190430" :
    print("Heisei")
else :
    print("TBD")

Fixed code:
a,b,c = input().split("/")
A = a + b + c
if A <= "20190430" :
    print("Heisei")
else :
    print("TBD")
Buggy code:
y,m,d=map(int,input().split("/"))
if y<2019:
    print("Heisei")
elif y==2019:
    if m<=4:
        print("Heisei")
else:
    print("TBD")

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

print(S)

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


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


if S[0] < 2019:
    print("Heisei")
elif S[0] == 2019:
    if S[1] >=5:
        print('TBD')
    else:
        print('Heisei')
else:
    print('TBD')
Buggy code:
import sys

if __name__ == '__main__':
    a = input()
    a = a.split('/')
    year = int(a[0])
    month = int(a[1])
    date = int(a[2])
    if year > 2019:
        print('TBD')
    elif year < 2019:
        print('Heisei')
    elif month < 4:
        print('Heisei')
    elif month > 4:
        print('TBD')
    elif data < 30:
        print('Heisei')
    else:
        print('TBD')

Fixed code:
import sys

if __name__ == '__main__':
    a = input()
    a = a.split('/')
    year = int(a[0])
    month = int(a[1])
    date = int(a[2])
    if year > 2019:
        print('TBD')
    elif year < 2019:
        print('Heisei')
    elif month < 4:
        print('Heisei')
    elif month > 4:
        print('TBD')
    elif date <= 30:
        print('Heisei')
    else:
        print('TBD')
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()

l = s.split("/")

n1 = int(l[0])
n2 = int(l[1])

if n1>2019:
    print("Heisei")
elif n1<2019:
    print("TBD")
elif n2>4:
    print("Heisei")
elif n2<=4:
    print("TBD")


Fixed code:
s = input()

l = s.split("/")

n1 = int(l[0])
n2 = int(l[1])

if n1<2019:
    print("Heisei")
elif n1>2019:
    print("TBD")
elif n2<=4:
    print("Heisei")
elif n2>4:
    print("TBD")
Buggy code:
a=input().split('/')
if int(a[1]<=4):
  print("Heisei")
else:
  print("TBD")
  
  

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

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

Fixed code:
y, m, d = map(int, input().split('/'))
 
if y < 2019:
	print("Heisei")
elif y == 2019:
	if m < 4 or (m == 4 and d <= 30):
		print("Heisei")
	else:
		print("TBD")
else:
	print("TBD")
Buggy code:
print(["TBD","Heisei"][int(20190430>=int(str(input()).replace("/","")))]

Fixed code:
print(["TBD","Heisei"][int(20190430>=int(str(input()).replace("/","")))])
Buggy code:
s = str(input())
mon = int(s[5:7])
print (mon)
if mon > 5:
  print('TBD')
else:
  print('Heisei')

Fixed code:
s = str(input())
mon = int(s[5:7])
if mon >= 5:
  print('TBD')
else:
  print('Heisei')
Buggy code:
date = map(int, input().split("/"))
if date[0] > 2019:
	if date[1] > 5:
		print("Heisei")
else:
	print("TBD")


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

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

Fixed code:
a = input().rstrip().split("/")
if(int(a[1]) <=4):
    print("Heisei")
else:
    print("TBD")
Buggy code:
s=input()
l=list(map(int,s.split("/")))
if l[0] <=2018 or l[0] ==2019 and (l[1]<=3 or l[1] ==4 and l[2]<=30):
    print('TBD')
else:
    print("Heisei")

Fixed code:
s=input()
l=list(map(int,s.split("/")))
if l[0] <=2018 or l[0] ==2019 and (l[1]<=3 or l[1] ==4 and l[2]<=30):
    print('Heisei')
else:
    print("TBD")
Buggy 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")


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

if int(S[0:4])<2019:
  print('HEISEI')
elif int(S[0:4])==2019 and int(S[5:7])<=4:
  print('HEISEI')
else:
  print('TBD')

  

Fixed code:
S=input()

if int(S[0:4])<2019:
  print('Heisei')
elif int(S[0:4])==2019 and int(S[5:7])<=4:
  print('Heisei')
else:
  print('TBD')
Buggy code:
import sys

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

if y < 2019:
    print("Heisei")
    sys.exit()
elif m < 5:
    print("Heisei")
    sys.exit()
elif d < 31:
    print("Heisei")
    sys.exit()
else:
    print("TBD")


Fixed code:
import sys

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

if y < 2019:
    print("Heisei")
    sys.exit()
elif m < 5:
    print("Heisei")
    sys.exit()

else:
    print("TBD")