ZhenlongDai/ACPR huggingface dataset:
Problem: p03109
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
def main():
    
    

    s = input()
    if int(''.join(s.split('/'))) < 20190430:
        print('Heisei')
    else:
        print('TBD')
    
if __name__ == '__main__':
    main()



Failing test case input:
2019/04/30

Expected output:
Heisei

Actual output:
TBD


Fixed submission (verdict: Accepted):
def main():
    
    

    s = input()
    if int(''.join(s.split('/'))) <= 20190430:
        print('Heisei')
    else:
        print('TBD')
    
if __name__ == '__main__':
    main()

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
print("Heisei" if S <= "2019/4/30" else "TBD")

Failing test case input:
2019/24/10

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
S = input()
print("Heisei" if S <= "2019/04/30" else "TBD")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input().split('/')
a=a[0]+a[1]+a[2]
if int(a) > 20190430:
  print("TDB")
else:
  print('Heisei')


Failing test case input:
2019/11/11

Expected output:
TBD 


Actual output:
TDB


Fixed submission (verdict: Accepted):
a=input().split('/')
a=a[0]+a[1]+a[2]
if int(a) > 20190430:
  print("TBD")
else:
  print('Heisei')

Problem: p03109
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
line = list(input().split("/"))
print(line)
if int(line[0]) <= 2019 and int(line[1]) <= 4:
    print("Heisei") 
else:
    print("TBD")   

Failing test case input:
2029/10/00

Expected output:
TBD 


Actual output:
['2029', '10', '00']
TBD


Fixed submission (verdict: Accepted):
line = list(input().split("/"))
if int(line[0]) <= 2019 and int(line[1]) <= 4:
    print("Heisei") 
else:
    print("TBD")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if int(s[6]) <= 4:
  print("Heisei")
else:
  print("TBD")

Failing test case input:
2019/14/20

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
s = input()
if int(s[6]) <= 4 and int(s[5]) == 0:
  print("Heisei")
else:
  print("TBD")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

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


Failing test case input:
2013/04/90

Expected output:
Heisei


Actual output:
TBD


Fixed submission (verdict: Accepted):

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

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if int(s[6]) <= 4:
    print('Heisei')
else:
    print('TBD')

Failing test case input:
2019/21/11

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
s = input()
if 10*int(s[5])+int(s[6]) <= 4:
    print('Heisei')
else:
    print('TBD')
Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
if S[5:7] == "12>=05":
  print("TBD")
else:
  print("Heisei")

Failing test case input:
2207/20/11

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
S = input()
if int(S[5:7]) <= 4:
    print("Heisei")
else:
    print("TBD")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

def IL(): return list(map(int,input().split()))
def SL(): return input().split()
def I(): return int(input())
def S(): return input()
s=input().split("/")
s=s[0]+s[1]+s[2]
s=int(s)
if s<=2019430:
    print("Heisei")
else:
    print("TBD")

Failing test case input:
2013/04/90

Expected output:
Heisei


Actual output:
TBD


Fixed submission (verdict: Accepted):

def IL(): return list(map(int,input().split()))
def SL(): return input().split()
def I(): return int(input())
def S(): return input()
s=input().split("/")
s=s[0]+s[1]+s[2]
s=int(s)
if s<=20190430:
    print("Heisei")
else:
    print("TBD")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin


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

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

heisei_y = 2019
heisei_m = 4
heisei_d = 1

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

Failing test case input:
2029/11/00

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
from sys import stdin


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

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

heisei_y = 2019
heisei_m = 4
heisei_d = 30

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

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input().split('/')
if int(S[0])>=2019:
    if int(S[1])>=5:
        print('TBD')
else:
    print('Heisei')


Failing test case input:
2019/02/20

Expected output:
Heisei


Actual output:

Fixed submission (verdict: Accepted):
S = input().split('/')
if int(S[0])>=2019:
    if int(S[1])>=5:
        print('TBD')
    else:
      print('Heisei')
else:
    print('Heisei')

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
year, month, day = map(int, input().split("/"))
if year < 2019 or (year == 2019 and month < 4):
  print("Heisei")
else:
  print("TBD")

Failing test case input:
2019/04/20

Expected output:
Heisei


Actual output:
TBD


Fixed submission (verdict: Accepted):
year, month, day = map(int, input().split("/"))
if (month <= 4):
  print("Heisei")
else:
  print("TBD")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=str(input())
X=int(S[5:7])
if X>=5:
	print('TBD')
else:
	print('HEISEI')

Failing test case input:
1519/00/03

Expected output:
Heisei


Actual output:
HEISEI


Fixed submission (verdict: Accepted):
S=str(input())
X=int(S[5:7])
if X>=5:
	print('TBD')
else:
	print('Heisei')
Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin

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

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




Failing test case input:
3119/12/11

Expected output:
TBD 


Actual output:
Heisei
TBD


Fixed submission (verdict: Accepted):
import sys

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

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

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = list(input())
k = [s[0], s[1], s[2], s[3]]
l = [s[5], s[6]]
a = int(''.join(k))
b = int(''.join(l))

if a > 2019:
    print('TBD')

elif a == 2018 and b > 4:
    print('TBD')

else:
    print('Heisei')

Failing test case input:
2019/11/01

Expected output:
TBD

Actual output:
Heisei


Fixed submission (verdict: Accepted):
s = input()
s1 = [s[0], s[1], s[2], s[3]]
s2 = [s[5], s[6]]

t1 = int(''.join(s1))
t2 = int(''.join(s2))

if t1 > 2019:
    print('TBD')

elif t1 == 2019 and t2 > 4:
    print('TBD')

else:
    print('Heisei')

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
print('Heisei' if s < '2019/04/30' else 'TBD')

Failing test case input:
2019/04/30

Expected output:
Heisei

Actual output:
TBD


Fixed submission (verdict: Accepted):
s = input()
print('Heisei' if s <= '2019/04/30' else 'TBD')

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

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

if y >= 2019:
    if m >= 4:
        if d >= 30:
            heisei += 1
else:
    heisei += 1

if heisei > 0:
    print("Heisei")
else:
    print("TBD")

Failing test case input:
2019/03/30

Expected output:
Heisei


Actual output:
TBD


Fixed submission (verdict: Accepted):

y, m, d = map(int, input().split("/"))
heisei = 0
if y <= 2019:
    heisei += 1
    if m <= 4:
        heisei += 1
        if d >= 30:
            heisei += 1
if heisei > 1:
    print("Heisei")
else:
    print("TBD")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
T = (12>=5)
if S[5:7] == T:
  print("TBD")
else:
  print("Heisei")

Failing test case input:
2019/43/00

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
S = input()
if int(S[5:7]) <= 4:
    print("Heisei")
else:
    print("TBD")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B,C = map(str,input().split("/"))
if int(A) <= 2018:
  print("Heisei")
elif int(B) <=3:
  print("Heisei")
elif int(C) <=30:
  print("Heisei")
else:
  print("TBG")
  

Failing test case input:
2219/20/20

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
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")
Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
d = 'Heisei'
if int(a[0:4]) ==2019:
  if int(a[5:7]) == 4:
    if int(a[8:10]) <30:
      d = 'TBD'
  elif int(a[5:7]) <=3:
    d = 'TBD'
elif int(a[0:4]) <= 2018:
  d = 'TBD'
print(d)

Failing test case input:
2209/20/01

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
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)

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin


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

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

heisei_y = 2019
heisei_m = 4
heisei_d = 1

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

Failing test case input:
2218/20/01

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
from sys import stdin


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

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

heisei_y = 2019
heisei_m = 4
heisei_d = 30

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

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split('/'))
if a > 2019:
  print("TBD")
elif a == 2019:
  if b> 4:
    print("Heisei")
  else:
    print("TBD")
else:
  print("Heisei")

Failing test case input:
2019/14/20

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split('/'))
if a > 2019:
  print("TBD")
elif a == 2019:
  if b> 4:
    print("TBD")
  else:
    print("Heisei")
else:
  print("Heisei")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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")
  


Failing test case input:
1490/00/30

Expected output:
Heisei


Actual output:
heisei


Fixed submission (verdict: Accepted):
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")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
print('Heisei' if s>='2019/04/30' else 'TBD')

Failing test case input:
2119/35/10

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
s = input()
print('Heisei' if s<='2019/04/30' else 'TBD')

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if(s[6] >= '5'):
    print('TBD')
else:
    print('Heisei')
    

Failing test case input:
2019/11/11

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
s = input()
if(s[5]+s[6] >= '05'):
    print('TBD')
else:
    print('Heisei')
Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
day = (s.split("/"))
if day[1] == "4":
 print("Heisei")
else:
 print("Reiwa")

Failing test case input:
2019/24/10

Expected output:
TBD 


Actual output:
Reiwa


Fixed submission (verdict: Accepted):
s = input()
day = (s.split("/"))
if int(day[1]) <= 4:
 print("Heisei")
else:
 print("TBD")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input().replace("/", "")
print("Heisei" if S <= S else "TBD")

Failing test case input:
2020/10/91

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
S = int(input().replace("/", ""))
print("Heisei" if S <= 20190430 else "TBD")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
m = s[5:7]
if int(m)>=5:
    print('Heisei')
else:
    print('TBD')

Failing test case input:
2209/20/21

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
s = input()
m = s[5:7]
if int(m)>=5:
    print('TBD')
else:
    print('Heisei')

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ans = "Heisei"
S = list(map(int, input().split("/")))
if S[1] == 4:
    if S[2] < 30:
        ans = "TBD"
elif S[1] < 4:
    ans = "TBD"


Failing test case input:
0409/00/30

Expected output:
Heisei


Actual output:

Fixed submission (verdict: Accepted):
ans = "TBD"
S = list(map(int, input().split("/")))
if S[1] <= 4:
    ans = "Heisei"
print(ans)

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
y,m,d = map(int,input().split('/'))

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


Failing test case input:
2019/04/30

Expected output:
Heisei

Actual output:
TBD


Fixed submission (verdict: Accepted):
y,m,d = map(int,input().split('/'))

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

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()

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

Failing test case input:
2019/03/30

Expected output:
Heisei


Actual output:
Heise


Fixed submission (verdict: Accepted):
S = input()

if 2019 < int(S[0:4]):
    print('TBD')

elif 2019 == int(S[0:4]):

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

else:
    print('Heisei')
Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
y, m, d = map(int, input().split('/'))

if y < 2019:
  print('Heisei')
  sys.exit()

if y == 2019 and d < 5:
  print('Heisei')
  sys.exit()

print('TBD')

Failing test case input:
2019/11/00

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
import sys
y, m, d = map(int, input().split('/'))

if y < 2019:
  print('Heisei')
  sys.exit()

if y == 2019 and m < 5:
  print('Heisei')
  sys.exit()

print('TBD')

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


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:])


Failing test case input:
1419/00/30

Expected output:
Heisei


Actual output:
Helsei


Fixed submission (verdict: Accepted):


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:])

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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')


Failing test case input:
0408/00/31

Expected output:
Heisei


Actual output:
[408, 0, 31]
Heisei


Fixed submission (verdict: Accepted):
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')

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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")

Failing test case input:
2019/04/30

Expected output:
Heisei

Actual output:
TBD


Fixed submission (verdict: Accepted):
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")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
y, m, d = map(int, input().split('/'))

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

Failing test case input:
2013/04/90

Expected output:
Heisei


Actual output:
Heissei


Fixed submission (verdict: Accepted):
y, m, d = map(int, input().split('/'))

if m <= 4:
    print ('Heisei')
else:
    print ('TBD')
Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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")

  

Failing test case input:
2019/03/30

Expected output:
Heisei


Actual output:
TBD


Fixed submission (verdict: Accepted):
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")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
print('HEISEI' if s<='2019/04/30' else 'TBD')

Failing test case input:
2019/01/10

Expected output:
Heisei


Actual output:
HEISEI


Fixed submission (verdict: Accepted):
s = input()
print('Heisei' if s<='2019/04/30' else 'TBD')

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
date=input()
if date>='2019-04-30':
  print('TBD')
else:
  print('Heisei')
  

Failing test case input:
2019/02/20

Expected output:
Heisei


Actual output:
TBD


Fixed submission (verdict: Accepted):
date=input()
if date>'2019/04/30':
  print('TBD')
else:
  print('Heisei')

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):




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



Failing test case input:
2119/12/11

Expected output:
TBD 


Actual output:
TBF


Fixed submission (verdict: Accepted):




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

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = str(input())
S = s.split('/')
if int(S[0]) < 2019:
  print('TBD')
else :
  if int(S[1]) < 4:
    print('TBD')
  else:
    if int(S[2]) < 30:
      print('TBD')
    else:
      print('Heisei')


Failing test case input:
2019/01/00

Expected output:
Heisei


Actual output:
TBD


Fixed submission (verdict: Accepted):
s = str(input())
S = s.split('/')
if int(S[0]) > 2019:
  print('TBD')
elif int(S[0]) == 2019:
  if int(S[1]) > 4:
    print('TBD')
  elif int(S[1]) == 4:
    print('Heisei')
  else:
    print('Heisei')
else:
  print('Heisei')

Problem: p03109
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
y, m, d=map(int, input().split("/"))
if 2020<y:
  print("Heisei")
else:
  if y<2019:
    print("TBD")
    
  else:                   
    if 5<m:
      print("Heisei")
    else:
      if m<=4:
        print("TBD")

Failing test case input:
2119/11/00

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
y, m, d=map(int, input().split("/"))
if 2020<y:
  print("TBD")
else:
  if y<2019:
    print("Heisei")
    
  else:                   
    if 5<=m:
      print("TBD")
    else:
      if m<=4:
        print("Heisei")
Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
if S[5:7] == "12>=5":
  print("TBD")
else:
  print("Heisei")

Failing test case input:
2118/12/11

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
S = input()
if int(S[5:7]) <= 4:
    print("Heisei")
else:
    print("TBD")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

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



Failing test case input:
2029/10/00

Expected output:
TBD 


Actual output:

Fixed submission (verdict: Accepted):

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

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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')


Failing test case input:
2019/11/00

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
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')

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s >= "2019/04/30":
    print("Heisei")
else:
    print("TBD")


Failing test case input:
2208/20/11

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
s = input()
if s <= "2019/04/30":
    print("Heisei")
else:
    print("TBD")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
print('TBD' if S > '2019/4/30' else 'Heisei')


Failing test case input:
2019/11/00

Expected output:
TBD 


Actual output:
Heisei


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

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = list(map(int, input().split('/')))

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

Failing test case input:
2207/20/11

Expected output:
TBD 


Actual output:
[2207, 20, 11]
TBD


Fixed submission (verdict: Accepted):
s = list(map(int, input().split('/')))

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

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
rei = "2019/04/30"
if int(rei[5:7]) < int(s[5:7]):
	print("TBD")
else:
    print("TBD")

Failing test case input:
0408/00/31

Expected output:
Heisei


Actual output:
TBD


Fixed submission (verdict: Accepted):
s = input()
rei = "2019/04/30"
if 4 < int(s[5:7]):
	print("TBD")
else:
    print("Heisei")
Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
y, m, d = map(int, input().split("/"))

if y > 2020 or (y == 2019 and m > 5) or (y == 2019 and m == 4 and d > 30):
    print("TBD")
else:
    print("Heisei")

Failing test case input:
2020/19/01

Expected output:
TBD 


Actual output:
Heisei


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

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

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
y,m,d = map(int,input().split('/'))

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

Failing test case input:
2019/04/20

Expected output:
Heisei


Actual output:

Fixed submission (verdict: Accepted):
y,m,d = map(int,input().split('/'))

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

Problem: p03109
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()

y = S[0:4]
m = S[5:7]
d = S[8:10]

if y < "2019":
    print("Heisei")

elif (y == "2019") and (m < "4"):
    print("Heisei")

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

elif (y == "2019") and (m == "4") and (d > "30"):
    print("TBD")

elif (y == "2019") and (m >= "5"):
    print("TBD")

elif (y > "2019"):
    print("TBD")

Failing test case input:
2019/11/10

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
S = input()

y = S[0:4]
m = S[5:7]
d = S[8:10]

if y < "2019":
    print("Heisei")

elif (y == "2019") and (m < "04"):
    print("Heisei")

elif (y == "2019") and (m == "04") and (d <= "30"):
    print("Heisei")

elif (y == "2019") and (m == "04") and (d > "30"):
    print("TBD")

elif (y == "2019") and (m >= "05"):
    print("TBD")

elif (y > "2019"):
    print("TBD")

Problem: p03109
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
if int(S[5:6]) <= 4:
  print("Heisei")
else:
  print("TBD")

Failing test case input:
2119/10/00

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
S = input()
if int(S[5:7]) <= 4:
  print("Heisei")
else:
  print("TBD")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

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

Failing test case input:
2019/04/30

Expected output:
Heisei

Actual output:
TBD


Fixed submission (verdict: Accepted):

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')
Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
s1 = [s[0], s[1], s[2], s[3]]
s2 = [s[5], s[6]]

t1 = int(''.join(s1))
t2 = int(''.join(s2))

if t1 > 2019:
    print('TBD')

elif t1 == 2018 and t2 > 4:
    print('TBD')

else:
    print('Heisei')

Failing test case input:
2019/11/00

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
s = input()
s1 = [s[0], s[1], s[2], s[3]]
s2 = [s[5], s[6]]

t1 = int(''.join(s1))
t2 = int(''.join(s2))

if t1 > 2019:
    print('TBD')

elif t1 == 2019 and t2 > 4:
    print('TBD')

else:
    print('Heisei')

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
T = ("5")
if S[5:7] == T:
  print("TBD")
else:
  print("Heisei")
 

Failing test case input:
2119/12/11

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
S = input()
if int(S[5:7]) <= 4:
    print("Heisei")
else:
    print("TBD")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = list(map(int, input().split('/')))

if s[0] >= 2019:
    if s[1] > 4:
        print('TDB')
    else:
        print('Heisei')
else:
    print('Heisei')

Failing test case input:
2208/20/11

Expected output:
TBD 


Actual output:
TDB


Fixed submission (verdict: Accepted):
s = list(map(int, input().split('/')))

if s[0] >= 2019:
    if s[1] > 4:
        print('TBD')
    else:
        print('Heisei')
else:
    print('Heisei')

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input().split('/')
a=a[0]+a[1]+a[2]
if int(a) > 2019430:
  print("TBD")
else:
  print('Heisei')


Failing test case input:
1018/04/20

Expected output:
Heisei


Actual output:
TBD


Fixed submission (verdict: Accepted):
a=input().split('/')
a=a[0]+a[1]+a[2]
if int(a) > 20190430:
  print("TBD")
else:
  print('Heisei')

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


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

Failing test case input:
2019/04/30

Expected output:
Heisei

Actual output:
TBD


Fixed submission (verdict: Accepted):


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

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ymd = list(map(int,input().split("/")))
if ymd[0] > 2019 | ymd[1] > 4:
    print("TBD")
else:
    print("Heisei")

Failing test case input:
2019/33/00

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
ymd = list(map(int,input().split("/")))

if ymd[0] <= 2019 and ymd[1] <= 4:
    print("Heisei")
else:
    print("TBD")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
date=input()
if date>'2019-04-30':
  print('TBD')
else:
  print('Heisei')
  


Failing test case input:
2019/00/00

Expected output:
Heisei


Actual output:
TBD


Fixed submission (verdict: Accepted):
date=input()
if date>'2019/04/30':
  print('TBD')
else:
  print('Heisei')
Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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")

Failing test case input:
3029/11/00

Expected output:
TBD 


Actual output:
[3029, 11, 0]
Heisei


Fixed submission (verdict: Accepted):
a=list(map(int,input().split('/')))

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

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
print("Heisei" if S<="2019/4/30" else "TBD")

Failing test case input:
2019/32/00

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
S = input()
print("Heisei" if S <= "2019/04/30" else "TBD")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s[5] == 0 and int(s[6]) <=4:
  print('Heisei')
else:
  print('TBD')

Failing test case input:
1409/00/30

Expected output:
Heisei


Actual output:
TBD


Fixed submission (verdict: Accepted):
s = input()
if int(s[5:7]) <=4:
  print('Heisei')
else:
  print('TBD')

Problem: p03109
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
s = input()
if int(s[5])>=5: print('TBD')
else: print('Heisei')

Failing test case input:
2119/12/01

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
s = input()
month = s[5:7]
month = int(month)
if month>=5: print('TBD')
else: print('Heisei')

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

ans = input().split("/")
for i in range(3):
    ans[i] =int(ans[i])

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


Failing test case input:
2024/201/9

Expected output:
TBD 


Actual output:
Heisei
TDB


Fixed submission (verdict: Accepted):


import sys
ans = input().split("/")
for i in range(3):
    ans[i] =int(ans[i])

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

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = str(input())

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

sint = int(nexts)

print(sint)


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


Failing test case input:
3111/12/91

Expected output:
TBD 


Actual output:
31111291
TBD


Fixed submission (verdict: Accepted):
s = str(input())

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

sint = int(nexts)

if sint <= 20190430:
    print("Heisei")
else:
    print("TBD")
Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
b = a.split("/")
c = [int(n) for n in b]
if c[0] > 2018:
    print("PBD")
elif c[0] < 2018:
    print("Heisei")
else:
    if c[1] >=5:
        print("PBD")
    else:
        print("Heisei")

Failing test case input:
2024/20/19

Expected output:
TBD 


Actual output:
PBD


Fixed submission (verdict: Accepted):
a = input()
b = a.split("/")
c = [int(n) for n in b]

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

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B,C=(int(i) for i in input().split("/"))
if B>4:
    print("TBD")
elif B<=4:
    print("heisei")

Failing test case input:
1419/00/03

Expected output:
Heisei


Actual output:
heisei


Fixed submission (verdict: Accepted):
A,B,C=(int(i) for i in input().split("/"))
if B>4:
    print("TBD")
elif B<=4:
    print("Heisei")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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==2020 and month >= 5:
	print("TBD")
	quit()
else:
	print("Heisei")

Failing test case input:
2019/13/30

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
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")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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")

Failing test case input:
2019/02/20

Expected output:
Heisei


Actual output:
TBD


Fixed submission (verdict: Accepted):
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")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
S1 = S[0:4]
if int(S1) < 2019:
    print("TBD")
else:
    if int(S[5]) < 5 and S[6] != "1" and S[6] != "2":
        print("TBD")
    else:
        print("Heisei")

Failing test case input:
2019/11/10

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
S = input()
S1 = S[0:4]
if int(S1) < 2019:
    print("Heisei")
else:
    if int(S[5:7]) >= 5:
        print("TBD")
    elif int(S[6]) < 5:
        print("Heisei")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
input_lines = sys.stdin.readline()
y,m,d = input_lines.split("/")



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

Failing test case input:
2119/10/11

Expected output:
TBD 


Actual output:
Heisei


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


if(int(m)<=4):
    print("Heisei")
else:
    print("TBD")
Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s[5::6] >= "04" and s[8::9] >= "30":
  print("Heisei")
else:
  print("TBD")

Failing test case input:
3111/12/91

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
s = input()
if s <= "2019/04/30":
  print("Heisei")
else:
  print("TBD")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if int(s[6]) > 4:
  print("TBD")
else:
  print("Heisei")

Failing test case input:
2119/11/20

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
s = input()
if int(s[6]) <= 4 and int(s[5]) == 0:
  print("Heisei")
else:
  print("TBD")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin


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

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

heisei_y = 2019
heisei_m = 4
heisei_d = 1

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


Failing test case input:
2019/04/30

Expected output:
Heisei

Actual output:
TBD


Fixed submission (verdict: Accepted):
from sys import stdin


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

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

heisei_y = 2019
heisei_m = 4
heisei_d = 30

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

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()

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

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

Failing test case input:
2119/10/00

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
S = input()

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

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
Y, M, _ = map(int, input().split("/"))
print("TBD") if 5 <= M else print("heisei")

Failing test case input:
2019/01/10

Expected output:
Heisei


Actual output:
heisei


Fixed submission (verdict: Accepted):
_, M, _ = map(int, input().split("/"))
print("TBD") if 5 <= M else print("Heisei")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S =input()
if S <= "2019/4/30":
    print("Heisei")
else:
    print("TBD")    

Failing test case input:
2019/11/01

Expected output:
TBD

Actual output:
Heisei


Fixed submission (verdict: Accepted):
S =input()
if S <= "2019/04/30":
    print("Heisei")
else:
    print("TBD")
Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
if a<= '2019/40/30':
    print('Heisei')
else:
    print('TBD')

Failing test case input:
2019/21/11

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
a = input()
if a<= '2019/04/30':
    print('Heisei')
else:
    print('TBD')

Problem: p03109
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
l=list(map(int,input().split('/')))
if(l[1]>4):
    print('Heisei')
else:
    print('TBD')

Failing test case input:
2019/32/00

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
l=list(map(int,input().split('/')))
if(l[1]<=4):
    print('Heisei')
else:
    print('TBD')

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=input()
S=S.replace('/','')
if int(S)>20190430:
    print('TBD')
else:
    print('heisei')

Failing test case input:
0408/00/31

Expected output:
Heisei


Actual output:
heisei


Fixed submission (verdict: Accepted):
S=input()
S=S.replace('/','')
if int(S)>20190430:
    print('TBD')
else:
    print('Heisei')

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s <= "2019/4/30":
  print("Heisei")
else:
  print("TBD")

Failing test case input:
2019/21/11

Expected output:
TBD 


Actual output:
Heisei


Fixed submission (verdict: Accepted):
s = input()
if s <= "2019/04/30":
  print("Heisei")
else:
  print("TBD")

Problem: p03109
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=list(map(int,input().split('/')))
if int(a[1])<5:
  print('Heisei')
else:
  print('TDB')
  

Failing test case input:
2119/10/00

Expected output:
TBD 


Actual output:
TDB


Fixed submission (verdict: Accepted):
a=list(map(int,input().split('/')))
if int(a[1])<5:
  print('Heisei')
else:
  print('TBD')
Problem: p03740
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y = map(int, input().split())
print('Alice') if (x - y) > 1 else print('Brown')


Failing test case input:
4 41

Expected output:
Alice


Actual output:
Brown


Fixed submission (verdict: Accepted):
x, y = map(int, input().split())
print('Alice') if abs(x - y) > 1 else print('Brown')

Problem: p03740
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,Y = map(int,input().split())
if X >= 2 and Y >= 2:
    print("Alice")
else:
    print("Brown")

Failing test case input:
0 27

Expected output:
Alice


Actual output:
Brown


Fixed submission (verdict: Accepted):
x,y = map(int,input().split())
print("Brown") if abs(x-y) < 2 else print("Alice")

Problem: p03740
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,Y = map(int,input().split(" "))

if abs(X-Y) < 1:
	print("Alice")
else:
	print("Brown")



Failing test case input:
0 116

Expected output:
Alice


Actual output:
Brown


Fixed submission (verdict: Accepted):
X,Y = map(int,input().split(" "))

if abs(X-Y) <= 1:
	print("Brown")
else:
	print("Alice")

Problem: p03740
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, Y = map(int, input().split())
if abs(X - Y) % 2 == 1:
    print('Brown')
else:
    print('Alice')


Failing test case input:
-1 30

Expected output:
Alice


Actual output:
Brown


Fixed submission (verdict: Accepted):
X, Y = map(int, input().split())
if abs(X - Y) <= 1:
    print('Brown')
else:
    print('Alice')

Problem: p03740
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
x, y = map(int, input().split())
if abs(x - y) <= 1:
  print("Alice")
else:
  print("Bob")

Failing test case input:
2 28

Expected output:
Alice


Actual output:
Bob


Fixed submission (verdict: Accepted):
x, y = map(int, input().split())
if abs(x - y) > 1:
  print("Alice")
else:
  print("Brown")
Problem: p03740
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):



import sys
import math
from bisect import bisect_right as br
from bisect import bisect_left as bl
sys.setrecursionlimit(1000000000)
from heapq import heappush, heappop,heappushpop
from collections import defaultdict
from itertools import accumulate
from collections import Counter
from collections import deque
from operator import itemgetter
from itertools import permutations
mod = 10**9 + 7
inf = float('inf')
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))

x,y = LI()
if x == 0 and y == 0:
    print('Brown')
elif x == 0 or y == 0:
    print('Alice')
else:
    if (x^y) % 2:
        print('Brown')
    else:
        print('Alice')


Failing test case input:
4 41

Expected output:
Alice


Actual output:
Brown


Fixed submission (verdict: Accepted):



import sys
import math
from bisect import bisect_right as br
from bisect import bisect_left as bl
sys.setrecursionlimit(1000000000)
from heapq import heappush, heappop,heappushpop
from collections import defaultdict
from itertools import accumulate
from collections import Counter
from collections import deque
from operator import itemgetter
from itertools import permutations
mod = 10**9 + 7
inf = float('inf')
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))

x,y = LI()
if abs(x-y) <= 1:
    print('Brown')
else:
    print('Alice')

Problem: p03740
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
X,Y=map(int,input().split())
print('Alice' if abs(X-Y) < 2 else 'Brown')

Failing test case input:
0 116

Expected output:
Alice


Actual output:
Brown


Fixed submission (verdict: Accepted):
X,Y=map(int,input().split())
print('Alice' if abs(X-Y) > 1 else 'Brown')

Problem: p03740
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,y = map(int,input().split())
if abs(x-y) <= 1:
  print("Alice")
else:
  print("Brown")

Failing test case input:
4 41

Expected output:
Alice


Actual output:
Brown


Fixed submission (verdict: Accepted):
x,y = map(int,input().split())
if abs(x-y) <= 1:
  print("Brown")
else:
  print("Alice")

Problem: p03740
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,Y=map(int,input().split())
if (Y-X)%9 in [0,1,8]:
    print("Brown")
else:
    print("Alice")

Failing test case input:
0 180

Expected output:
Alice


Actual output:
Brown


Fixed submission (verdict: Accepted):
X,Y=map(int,input().split())
if abs(X-Y)<=1:
    print("Brown")
else:
    print("Alice")

Problem: p03740
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y = map(int, input().split())
print('Alice' if abs(x-y) < 1 else 'Brown')


Failing test case input:
12 -2

Expected output:
Alice


Actual output:
Brown


Fixed submission (verdict: Accepted):
x, y = map(int, input().split())
print('Brown' if abs(x-y) <= 1 else 'Alice')
Problem: p03740
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y = map(int, input().split())
print('Alice' if abs(x-y) <= 1 else 'Brown')


Failing test case input:
0 72

Expected output:
Alice


Actual output:
Brown


Fixed submission (verdict: Accepted):
x, y = map(int, input().split())
print('Brown' if abs(x-y) <= 1 else 'Alice')

Problem: p03740
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
x, y = map(int, input().split())
if abs(x - y) <= 1:
  print("Alice")
else:
  print("Brown")


Failing test case input:
2 41

Expected output:
Alice


Actual output:
Brown


Fixed submission (verdict: Accepted):
x, y = map(int, input().split())
if abs(x - y) > 1:
  print("Alice")
else:
  print("Brown")
Problem: p03018
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = list(input())
pos = 0
str_len = len(s)
count = 0
state = 0

while pos < str_len:
    if state == 0:
        if s[pos] == "A":
            state = 1
        pos += 1
    elif state == 1:
        if s[pos] == "B":
            state = 2
        elif s[pos] == "A":
            state = 1
        else:
            state = 0
        pos += 1
    elif state == 2:
        if s[pos] == "C":
            s[pos-2:pos+1] = "BCA"
            pos -= 3
            if pos < 0:
                pos = 0
            count += 1
        elif s[pos] == "A":
            state = 1
            pos += 1
        else:
            state = 0
            pos += 1

print(count)


Failing test case input:
ABBBCCBACCBCAABCA

Expected output:
2


Actual output:
36


Fixed submission (verdict: Accepted):
s = input()
pos = 0
str_len = len(s)
count = 0
seq_a = 0
seq_bc = 0

while pos < str_len:
    if s[pos] == "A":
        while pos < str_len and s[pos] == "A":
            seq_a += 1
            pos += 1
        if pos + 1 < str_len and s[pos] == "B" and s[pos+1] == "C":
            while pos < str_len and s[pos] == "B" and pos + 1 < str_len and s[pos+1] == "C":
                seq_bc += 1
                pos += 2
            count += seq_a * seq_bc
            if pos < str_len and s[pos] != "A":
                seq_a = 0
            seq_bc = 0
        else:
            pos += 1
            seq_a = 0
    else:
        pos += 1
        seq_a = 0

print(count)

Problem: p03018
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
N = len(S)
a = 0
ans = 0
f = 0
for i in range(N-1):
    if S[i] == 'A':
        a += 1
    elif S[i] == 'B':
        if S[i+1] == 'C':
            ans += a
            f = 1
        else:
            a = 0
    else:
        if f != 1:
            a = 0
print(ans)

Failing test case input:
ABBBCCBACCBCAABCA

Expected output:
2


Actual output:
4


Fixed submission (verdict: Accepted):
S = input()
N = len(S)
a = 0
ans = 0
f = 0
for i in range(N-1):
    if S[i] == 'A':
        a += 1
    elif S[i] == 'B':
        if S[i+1] == 'C':
            ans += a
            f = 1
        else:
            a = 0
    else:
        if f != 1:
            a = 0
        else:
            f = 0
print(ans)