qyliang/CodeNanoFix huggingface dataset:
Buggy code:
a,b = map(int,input().split())

if a in {1,3,5,7,8,10,12} and b in {1,3,5,7,8,10,12}:
    print("Yes")
if a in{2} and b in {2}:
    print("Yes")
if a in {4,6,9,11} and b in {4,6,9,11}:
    print("Yes")   

else:
    print("No")


Fixed code:
a,b = map(int,input().split())

if a in {1,3,5,7,8,10,12} and b in {1,3,5,7,8,10,12}:
    print("Yes")
elif a in{2} and b in {2}:
    print("Yes")
elif a in {4,6,9,11} and b in {4,6,9,11}:
    print("Yes")   

else:
    print("No")
Buggy code:
x,y = map(int,input().split())

def calc(x):
    if x == 2:
        return  -1
    elif  x == 4 or x == 6 or x == 9 or x == 11:
        return  -2
    else:
        return  -3

print(calc(x),calc(y))
if calc(x)==calc(y):
    print("Yes")
else:
    print("No")

Fixed code:
x,y = map(int,input().split())

def calc(x):
    if x == 2:
        return  -1
    elif  x == 4 or x == 6 or x == 9 or x == 11:
        return  -2
    else:
        return  -3

if calc(x)==calc(y):
    print("Yes")
else:
    print("No")
Buggy code:
x,y = map(int,input().split())
li = [[1, 3, 5, 7, 8, 10, 12], [4, 6, 9, 11], [2]]
for i, l in enumerate(li):
    if x in l and y in l:
        print("YES")
        break
    if i == len(li) - 1:
        print("No")


Fixed code:
x,y = map(int,input().split())
li = [[1, 3, 5, 7, 8, 10, 12], [4, 6, 9, 11], [2]]
for i, l in enumerate(li):
    if x in l and y in l:
        print("Yes")
        break
    if i == len(li) - 1:
        print("No")
Buggy code:
group = [[1, 3, 5, 7, 8, 10, 12],[4, 6, 9, 11],[2]]
x, y = list(map(int, input().split()))
for g in group:
    if x in g and y in g:
        print("Yes")
        break
print("No")

Fixed code:
import sys
group = [[1, 3, 5, 7, 8, 10, 12],[4, 6, 9, 11],[2]]
x, y = list(map(int, input().split()))
for g in group:
    if (x in g) and (y in g):
        print("Yes")
        sys.exit()
print("No")
Buggy code:
x,y=map(int,input().split())
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
c=[2]
if x=2 or y=2:
  print("No")
if (x in a) and (y in a):
  print("Yes")
if (x in b) and (y in b):
  print("Yes")
else:
  print("No")

Fixed code:
x,y=map(int,input().split())
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
c=[2]
if (x in a) and (y in a):
  print("Yes")
elif (x in b) and (y in b):
  print("Yes")
elif (x in c) and (y in c):
  print("Yes")
else:
  print("No")
Buggy code:
x,y=map(int,input().split())
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
if(x in a and y in a) or (x in b and y in b):print("Yes")
else:("No")

Fixed code:
x,y=map(int,input().split())
a=[4,6,9,11]
b=[1,3,5,7,8,10,12]
if (x in a and y in a) or (x in b and y in b):print('Yes')
else:print('No')
Buggy code:
a = list(map(int,input().split()))
b = list(1,3,5,7,8,10,12)
c = list(4,6,9,11)
d = list(2)
e = 0

if a[0] in b and a[1] in b:
  e += 1
elif a[0] in c and a[1] in c:
  e += 1

if e == 1:
  print("Yes")
else:
  print("No")

Fixed code:
a = list(map(int,input().split()))
b = [1,3,5,7,8,10,12]
c = [4,6,9,11]
d = [2]
e = 0

if a[0] in b and a[1] in b:
  e += 1
elif a[0] in c and a[1] in c:
  e += 1

if e == 1:
  print("Yes")
else:
  print("No")
Buggy code:
g = [31,28,31,30,31,30,31,31,30,31,30,31]

tmp = input().split(" ")
print("Yes") if g[tmp[0]] == g[tmp[1]] else print("No")

Fixed code:
g = [31,28,31,30,31,30,31,31,30,31,30,31]
 
tmp = input().split(" ")
print("Yes") if g[int(tmp[0]) - 1] == g[int(tmp[1]) - 1] else print("No")
Buggy code:
a,b=map(int,input().split())
if a==4 or a==6 or a==9 or a==11 : a=2
elif a==2:a=3 
else: a=1
if b==4 or b==6 or b==9 or b==11 : b=2
elif b==2:b=3 
else:b=1

print("Yes" if a==b else "N0")

Fixed code:
a,b=map(int,input().split())
if a==4 or a==6 or a==9 or a==11 : a=2
elif a==2:a=3 
else: a=1
if b==4 or b==6 or b==9 or b==11 : b=2
elif b==2:b=3 
else:b=1

print("Yes" if a==b else "No")
Buggy code:
""" AtCoder """

x, y = map(int, input().split())

a = [1, 3, 5, 7, 8, 10, 12]
b = [4, 6, 9, 11]
c = [2]

if (x in a and y in b) or (x in b and y in b) or (x in c and y in c):
    print("Yes")
else:
    print("No")


Fixed code:
""" AtCoder """

x, y = map(int, input().split())

a = [1, 3, 5, 7, 8, 10, 12]
b = [4, 6, 9, 11]
c = [2]

if (x in a and y in a) or (x in b and y in b) or (x in c and y in c):
    print("Yes")
else:
    print("No")
Buggy code:
x,y=map(int, input().split())
if x==2 or y==2:
  print('No')

a=[4,6,9,11]
if x in a and y in a:
  print('Yes')
elif x not in a and y not in a:
  print('Yes')
else:
  print('No')

Fixed code:
x,y = map(int,input().split())
if 2 in [x,y]:
  print('No')
elif (x in [4,6,9,11] and y in [4,6,9,11]) or (x not in [4,6,9,11] and y not in [4,6,9,11]):
  print('Yes')
else:
  print('No')
Buggy code:
A = [1,3,5,7,8,10,12]
B = [4,6,9,11]
C = [2]

x,y= map(int, input().split())
if (x,y in A) or (x,y in B):
    print("Yes")
else:
    print("No")

Fixed code:
A = [1,3,5,7,8,10,12]
B = [4,6,9,11]
C = [2]

x,y= map(int, input().split())
if (x in A and y in A) or (x in B and y in B):
    print("Yes")
else:
    print("No")
Buggy code:
x,y=map(int,input().split())
if x==1 or x==3 or x==5 or x== 7 or ==8 or x==12 or x==!0:
    if y==1 or y==3 or y==5 or y==7 or y==8 or y==10 or y==12:
        print('Yes')
    else:
        print('No')
elif x==4 or x==6 or x==9 or x==11:
    if y==4 or y==6 or y==9 or y==12:
        print('Yes')
    else:
        print('No')
else:
    print('No')


Fixed code:
x,y=map(int,input().split())
if x==1 or x==3 or x==5 or x== 7 or x==8 or x==12 or x==10:
    if y==1 or y==3 or y==5 or y==7 or y==8 or y==10 or y==12:
        print('Yes')
    else:
        print('No')
elif x==4 or x==6 or x==9 or x==11:
    if y==4 or y==6 or y==9 or y==11:
        print('Yes')
    else:
        print('No')
else:
    print('No')
Buggy code:
a ,b  = map(int, input().split())
g2 =  [4,6,9,11]
g1 =[1,3,5,7,8,10,12]
if a in g2 and b in g2:
    print("Yes")
elif a == 2 and b ==2:
    print("Yes")
elif a in g1 and b in g2:
    print("Yes")
else:print("No")

Fixed code:
a ,b  = map(int, input().split())
g2 =  [4,6,9,11]
g1 =[1,3,5,7,8,10,12]
if a in g2 and b in g2:
    print("Yes")
elif a == 2 and b ==2:
    print("Yes")
elif a in g1 and b in g1:
    print("Yes")
else:print("No")
Buggy code:
x,y = map(int,input().split())

a = [1,3,5,7,,8,10,12]
b = [4,6,9,11]

if x in a and y in a:
  	print("Yes")
elif x in b and y in b:
  	print("Yes")
else:
  	print("No")

Fixed code:
x, y = map(int, input().split())

a = [1,3,5,7,8,10,12]
b = [4,6,9,11]
c = [2]

if x in a and y in a:
  print("Yes")
elif x in b and y in b:
  print("Yes")
elif x in c and y in c:
  print("Yes")
else:
  print("No")
Buggy code:
# -*- coding: utf-8 -*-

x,y = map(int,input().split())

g = [0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1]

if g[x] == g[y]:
    print("Yes")
else:
    print("no")

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

x,y = map(int,input().split())

g = [0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1]

if g[x] == g[y]:
    print("Yes")
else:
    print("No")
Buggy code:
a = map(int, input().split())
input_list = list(a)

group_a = [1, 3, 5, 7, 8, 10, 12]
group_b = [4, 6, 9, 11]
group_c = [2]
list_of_list = [group_a, group_b, group_c]

count_match = 0

for list_i in list_of_list:
    if input_list in list_i:
        count_match += 1
        break

if count_match == 1:
    print('Yes')
else:
    print('No')


Fixed code:
a = map(int, input().split())
input_list = list(a)

group_a = [1, 3, 5, 7, 8, 10, 12]
group_b = [4, 6, 9, 11]
group_c = [2]
list_of_list = [group_a, group_b, group_c]

count_match = 0

for list_i in list_of_list:
    if input_list[0] in list_i and input_list[1] in list_i:
        count_match += 1
        break

if count_match == 1:
    print('Yes')
else:
    print('No')
Buggy code:
b, c = map(int, input().split())
type_short = {2:1,4:1,6:1,9:1}
if(c==b and c==2):
  print("Yes")
elif((b in type_short) ^ ( c in type_short)):
  print("No")
else:
  print("Yes")

Fixed code:
b, c = map(int, input().split())
type_short = {11:1,4:1,6:1,9:1}
if(c==b and c==2):
  print("Yes")
elif(((b in type_short) ^ ( c in type_short)) or b == 2 or c == 2):
  print("No")
else:
  print("Yes")
Buggy code:
x,y = map(int, input().split())
a = [1,3,5,7,8,10,12]
b = [4,6,9,11]
if (x in a and y in a) or x (in b and y in b):
  print("Yes")
else:
  print("No")

Fixed code:
x, y = map(int, input().split())
 
a = [1, 3, 5, 7, 8, 10, 12]
b = [4, 6, 9, 11]
 
if (x in a and y in a) or (x in b and y in b):
    print('Yes')
else:
    print('No')
Buggy code:
a = [1, 3, 5, 7, 8, 10, 12]
b = [4, 6, 9, 11]

x, y = map(int,input().split())

if a.count(x) == a.count(y) or b.count(x) == b.count(y):
  print("Yes")
else:
  print("No")

Fixed code:
x, y = map(int, input().split())
a = [1,3,5,7,8,10,12]
b = [4,6,9,11]
if (x in a and y in a) or (x in b and y in b):
    print('Yes')
else:
    print('No')
Buggy code:
x, y = list(map(int, input().split()))
a = [1,3,5,7,8,10,12]
b = [4,6,9,11]

if x in a and y in b:
    print('Yes')

elif x in b and y in b:
    print('Yes')

elif x == 2 and y == 2:
    print('Yes')

else:
    print('No')


Fixed code:
x, y = list(map(int, input().split()))
a = [1,3,5,7,8,10,12]
b = [4,6,9,11]

if x in a and y in a:
    print('Yes')

elif x in b and y in b:
    print('Yes')

elif x == 2 and y == 2:
    print('Yes')

else:
    print('No')
Buggy code:
x,y=map(int,input().split())
if {x,y}<={1,3,5,7,8,10,12} or {x,y}<={2,4,6,9,11}:
  print("Yes")
else:
  print("No")

Fixed code:
x,y=map(int,input().split())
if {x,y}<={1,3,5,7,8,10,12} or {x,y}<={4,6,9,11}:
  print("Yes")
else:
  print("No")
Buggy code:
x,y=map(int,input().split())
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
if (x==y) or (x in a and y in a) or (x in b and y in b):
  print('Yes')

Fixed code:
x,y=map(int,input().split())
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
if (x==y) or (x in a and y in a) or (x in b and y in b):
  print('Yes')
else:
  print('No')
Buggy code:
x, y = map(int, input().split())
group1 = (1, 3, 5, 7, 8, 10, 12)
group2 = (4, 6, 9, 11)
group3 = (2)
if ((x in group1) and (y in group1)) or ((x in group2) and (y in group2)) or ((x in group3) and (y in group3)):
  print("Yes")
else:
  print("No")

Fixed code:
x, y = map(int, input().split())
group1 = [1, 3, 5, 7, 8, 10, 12]
group2 = [4, 6, 9, 11]
group3 = [2]
if ((x in group1) and (y in group1)) or ((x in group2) and (y in group2)) or ((x in group3) and (y in group3)):
  print("Yes")
else:
  print("No")
Buggy code:
list1 = [1,3,5,7,8,10,12]
list2 = [4,6,9,11]
list3 = [2]
x, y  = map(int, input().split())

if (x in list1)==(y in list1) or(x in list2)==(y in list2)or(x in list3)==(y in list3):
    print("Yes")
else:
    print("No")

Fixed code:
list1 = [1,3,5,7,8,10,12]
list2 = [4,6,9,11]
list3 = [2]
x, y  = map(int, input().split())
 
if (x in list1)==(y in list1)==1 or(x in list2)==(y in list2)==1 or (x in list3)==(y in list3)==1:
    print("Yes")
else:
    print("No")
Buggy code:
g=[0,2,0,1,0,1,0,0,1,0,1,0]
a,b=map(int,input().split())
print('Yes' if g[a]==g[b] else 'No')

Fixed code:
g=[0,2,0,1,0,1,0,0,1,0,1,0]
a,b=map(int,input().split())
print('Yes' if g[a-1]==g[b-1] else 'No')
Buggy code:
A={1, 3, 5, 7, 8, 10, 12}
B={4, 6, 9, 11}
C={2}
x, y = {map(int, input().split())}
print("Yes" if {x, y} <= A or {x, y} <= B or {x, y} <= C else "No")
    

Fixed code:
A={1, 3, 5, 7, 8, 10, 12}
B={4, 6, 9, 11}
x, y = map(int, input().split())
print("Yes" if {x, y} <= A or {x, y} <= B else "No")
Buggy code:
a = [4,6,9,	11]
b = [1,3,5,7,8,10,12]
x,y = list(map(int, input().split()))
if x ==2 or y ==2:
  print("No")
elif x in a and y in a:
  print("Yes")
elif x in b and y in b:
  print("No")
else:
  print("No")

Fixed code:
x,y = map(int,input().split())
a = [1,3,5,7,8,10,12]
b = [4,6,9,11]
c = [2]
 
if x in a and y in a:
    print("Yes")
elif x in b and y in b:
    print("Yes")
else:
    print("No")
Buggy code:
G1 = [1, 3, 5, 7, 8, 10, 12]
G2 = [4, 6, 9, 11]

x, y = map(int, input().strip().split(' '))

if x in G1 and y in G1or x in G2 and y in G2:
    print("Yes")
else:
    print("No")

Fixed code:
G1 = [1, 3, 5, 7, 8, 10, 12]
G2 = [4, 6, 9, 11]
 
x, y = map(int, input().strip().split(' '))
 
if x in G1 and y in G1 or x in G2 and y in G2:
    print("Yes")
else:
    print("No")
Buggy code:
seta = set(1,3,5,7,8,10,12)
setb = set(4,6,9,11)
setc = set(2)

a,b = map(int, input().split())

if (a in seta and b in seta) or (a in setb and b in setb) or (a in setc and b in setc):
  print('Yes')
else:
  print('No')

Fixed code:
seta = set([1,3,5,7,8,10,12])
setb = set([4,6,9,11])
setc = set([2])
 
a,b = map(int, input().split())
 
if (a in seta and b in seta) or (a in setb and b in setb) or (a in setc and b in setc):
  print('Yes')
else:
  print('No')
Buggy code:
x, y = map(int, input().split())

a = [1, 3, 5, 7, 8, 10, 12]
b = [4, 6, 9, 11]
c = [2]

if x in a and y in a:
    print("Yes")
elif x in b and y in b:
    print("Yes")
elif x in c and y in b:
    print("Yes")
else:
    print("No")

Fixed code:
a = [1, 3, 5, 7, 8, 10, 12]
b = [4, 6, 9, 11]
c = [2]

x, y = map(int, input().split())

if (x in a) and (y in a):
    print('Yes')
elif (x in b) and (y in b):
    print('Yes')
elif (x in c) and (y in c):
    print('Yes')
else:
    print('No')
Buggy code:
g = [0,2,0,1,0,1,0,0,1,0,1,0]
x, y = map(int, input().split())
print('Yes' if g[x]==g[y] else 'No')

Fixed code:
g = [-1,0,2,0,1,0,1,0,0,1,0,1,0]
x, y = map(int, input().split())
print('Yes' if g[x]==g[y] else 'No')
Buggy code:
x,y=map(int,input().split())
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
c=[2]
if x in a and y in a:
    print("yes")
elif x in b and y in b:
    print("Yes")
elif x in c and y in c:
    print("Yes")
else:
    print("No")

Fixed code:
x,y=map(int,input().split())
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
if x in a and y in a: print('Yes')
elif x in b and y in b: print('Yes')
else: print('No')
Buggy code:
a=[0,1,3,1,2,1,2,1,1,2,1,2,1]
x,y=map(int,input().split())
print("Yes" if a[x]==x[y] else "No")

Fixed code:
a=[0,1,3,1,2,1,2,1,1,2,1,2,1]
x,y=map(int,input().split())
print("Yes" if a[x]==a[y] else "No")
Buggy code:
a_list=[1,3,5,7,8,10,12]
b_list=[4,6,9,11]
c_list=[2]
x,y=map(int,input().split())
print("Yes" if (x in a_list and y in a_list) or (x in b_list and y in b_list) or (x in c_list and y in c_list) else "NO")

Fixed code:
a_list=[1,3,5,7,8,10,12]
b_list=[4,6,9,11]
c_list=[2]
x,y=map(int,input().split())
print("Yes" if (x in a_list and y in a_list) or (x in b_list and y in b_list) or (x in c_list and y in c_list) else "No")
Buggy code:
x,y=map(int,input().split())
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
c=[2]
if (x in a and y in a):
    ptint("yes")
elif   (x in b and y in b):
    print("Yes")
elif   (x in c and y in c):
    print("Yes")
else:
    print("No")


Fixed code:
x,y=map(int,input().split())
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
c= [2]
if x in a and y in a:
	print("Yes")
elif x in b and y in b:
    print("Yes")
elif x in c and y in c:
    print("Yes")
else:
    print("No")
Buggy code:
x,y=map(int,input().split())
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
c=[2]
if (x in a and y in a) or (x in b and y in b) or (x in c and y in c):
    ptint("yes")
else:
    print("No")

Fixed code:
x, y = map(int, input().split())

a = [1, 3, 5, 7, 8, 10, 12]
b = [4, 6, 9, 11]
c = [2]

if (x in a and y in a) or (x in b and y in b) or (x in c and y in c):
    print ("Yes")
else:
    print ("No")
Buggy code:
import sys
import math
import bisect

def main():
    A = 1, 3, 5, 7, 8, 10, 12]
    B = [4, 6, 9, 11]
    C = [2]
    x, y = map(int, input().split())
    if x in A and y in A:
        print('Yes')
    elif x in B and y in B:
        print('Yes')
    elif x in C and y in C:
        print('Yes')
    else:
        print('No')

if __name__ == "__main__":
    main()


Fixed code:
import sys
import math
import bisect

def main():
    A = [1, 3, 5, 7, 8, 10, 12]
    B = [4, 6, 9, 11]
    C = [2]
    x, y = map(int, input().split())
    if x in A and y in A:
        print('Yes')
    elif x in B and y in B:
        print('Yes')
    elif x in C and y in C:
        print('Yes')
    else:
        print('No')

if __name__ == "__main__":
    main()
Buggy code:
import sys
x,y=map(int,input().split())
a =[(1,3,5,7,8,10,12),(4,6,9,11),(2,)]
for i in a:
	print(type(i))
	if x in i and y in i:
		print('Yes')
		sys.exit()
print('No')


Fixed code:
import sys
x,y=map(int,input().split())
a =[(1,3,5,7,8,10,12),(4,6,9,11),(2,)]
for i in a:
	if x in i and y in i:
		print('Yes')
		sys.exit()
print('No')
Buggy code:
a = [1, 3, 5,  7, 8, 10, 12]
b = [4, 6, 9, 11]
c = [2]

# print(a)
# print(b)
# print(c)

x, y = map(int, input().split())

# print(a.index(x))
# print(b.index(x))
# print(c.index(x))

# print(a.index(y))
# print(b.index(y))
# print(c.index(y))

# print(x in a)
# print(x in b)
# print(x in c)

# print(b in a)
# print(b in b)
# print(b in c)

if x in a and b in a:
    print('Yes')
elif x in b and b in b:
    print('Yes')
elif x in c and b in c:
    print('Yes')
else:
    print('No')

Fixed code:
x,y = map(int,input().split())
a = [1,3,5,7,8,10,12]
b = [4,6,9,11]
c = [2]
if a.count(x) == 1 and a.count(y) == 1:
    print("Yes")
elif b.count(x) == 1 and b.count(y) == 1:
    print("Yes")
elif x == 2 and y == 2:
    print("Yes")

else:
    print("No")
Buggy code:
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]

n,m=map(int,input().split())

if n in a == m in a:
  print("Yes")
elif n in b == m in b:
  print("Yes")
else:
  print("No")

Fixed code:
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]

n,m=map(int,input().split())

if n in a and m in a:
  print("Yes")
elif n in b and m in b:
  print("Yes")
else:
  print("No")
Buggy code:
a = [0,1,3,1,2,1,2,1,1,2,1,2,1]
x,y = map(int(input().split())

if x[a] == y[a]:
	print("Yes")
else:
    print("No")

Fixed code:
a = [0,1,3,1,2,1,2,1,1,2,1,2,1]
x,y = map(int,input().split())

if a[x] == a[y]:
	print("Yes")
else:
    print("No")
Buggy code:
x,y=input().split()
a=(1,3,5,7,8,10,12)
b=(4,6,9,11)
if (x in a and y in a) and (x in b and y in b):
    print("Yes")
else:
    print("No")

Fixed code:
x,y = map(int,input().split(" "))
a=(1,3,5,7,8,10,12)
b=(4,6,9,11)
if (x in a and y in a) or (x in b and y in b):
    print("Yes")
else:
    print("No")
Buggy code:
g1 = [1,3,5,7,8,10,12]
g2 = [4,6,9,11]
g3 = [2]

a,b = map(int, input().split())

if a in g1 and b in g1:
  print('Yes')
elif a in g2 and b in g2:
  print('Yes')
elif a in g3 and b in g2:
  print('Yes')
else:
  print('No')

Fixed code:
g1 = [1,3,5,7,8,10,12]
g2 = [4,6,9,11]
g3 = [2]

a,b = map(int, input().split())

if a in g1 and b in g1:
  print('Yes')
elif a in g2 and b in g2:
  print('Yes')
elif a in g3 and b in g3:
  print('Yes')
else:
  print('No')
Buggy code:
L = [0, 0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0]

x, y = map(int, input().split())

print(["Yes", "No"] [L[x] == L[y]])


Fixed code:
L = [0, 0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0]

x, y = map(int, input().split())

print(["No", "Yes"] [L[x] == L[y]])
Buggy code:
ipt = input().split()

a = [1, 3, 5, 7, 8, 10, 12]
b = [4, 6, 9, 11]
i=int(ipt[0])
j=int(ipt[1])
if i==j:
    print('Yes')
elif i in and j in a:
    print('Yes')
elif i in b and j in b:
    print('Yes')
else:
    print('No')

Fixed code:
ipt = input().split()

a = [1, 3, 5, 7, 8, 10, 12]
b = [4, 6, 9, 11]
i=int(ipt[0])
j=int(ipt[1])
if i==j:
    print('Yes')
elif i in a and j in a:
    print('Yes')
elif i in b and j in b:
    print('Yes')
else:
    print('No')
Buggy code:
x, y = map(int,input().split())
a = {'1','3','5','7','8','10','12'}
b = {'4','6','9','11'}
print("Yes" if {x,y} <= a or {x,y} <= b else "No")

Fixed code:
x, y = input().split()
a = {'1','3','5','7','8','10','12'}
b = {'4','6','9','11'}
print("Yes" if {x,y} <= a or {x,y} <= b else "No")
Buggy code:
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
ans=''
x,y=map(int,input().split(' '))
if x==y: ans='Yes'
else:
    for c in [a,b]:
        ans='Yes' if x in c and y in c
if ans=='': ans='No'
print(ans)

Fixed code:
a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
ans=''
x,y=map(int,input().split(' '))
if x==y: ans='Yes'
else:
    for c in [a,b]:
        if (x in c)*(y in c):
            ans='Yes'
            break
if ans=='': ans='No'
print(ans)
Buggy code:
x,y=map(int,input().split())

a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
c=[2]

for i in a:
  if x==i:
    x='a'
  if y==i:
    y='a'

for i in b:
  if x==i:
    x='b'
  if y==i:
    y='b'

for i in c:
  if x==i:
    x='c'
  if y==i:
    y='c'

if x==y:
  print('yes')
else:
  print('No')


Fixed code:
x,y=map(int,input().split())

a=[1,3,5,7,8,10,12]
b=[4,6,9,11]
c=[2]

for i in a:
  if x==i:
    x='a'
  if y==i:
    y='a'

for i in b:
  if x==i:
    x='b'
  if y==i:
    y='b'

for i in c:
  if x==i:
    x='c'
  if y==i:
    y='c'

if x==y:
  print('Yes')
else:
  print('No')
Buggy code:
A = [1,3,5,7,8,10,12]
B = [4,6,9,11]
C = [2]
x,y = map(str, input().split())

if (x in A and y in A) or (x in B and y in B) or (x in C and y in C):
  print("Yes")
else:
  print("No")

Fixed code:
A = [1,3,5,7,8,10,12]
B = [4,6,9,11]
C = [2]
x,y = map(int, input().split())

if (x in A and y in A) or (x in B and y in B) or (x in C and y in C):
  print("Yes")
else:
  print("No")
Buggy code:
import sys
x,y = list(input().split())
judge = 0
x = x.translate(string.maketrans({"3":"1","5":"1","7":"1","8":"1","10":"1","12":"1","6":"4","9":"4","11":"4"}))
y = y.translate(string.maketrans({"3":"1","5":"1","7":"1","8":"1","10":"1","12":"1","6":"4","9":"4","11":"4"}))

print("Yes" if x == y else "No")

Fixed code:
import sys
x,y = list(input().split())
judge = 0
x = x.translate(str.maketrans({"3":"1","5":"1","7":"1","8":"1","6":"4","9":"4"}))
y = y.translate(str.maketrans({"3":"1","5":"1","7":"1","8":"1","6":"4","9":"4"}))
x = x.replace("10", "1").replace("12", "1").replace("11","4")
y = y.replace("10", "1").replace("12", "1").replace("11","4")

print("Yes" if x == y else "No")
Buggy code:
def main():
    from sys import stdin, setrecursionlimit
    #setrecursionlimit(10**9)
    #n = int(stdin.readline()[:-1])   
    r = stdin.readline()[:-1]
    #n = int(stdin.readline()[:-1])   
    #r = [stdin.readline() for i in range(n)]
    #t = [int(stdin.readline()) for i in range(n)]
    #a = r.split()
    a = list(map(int, r.split()))
    #a = [int(s[i]) for i in range(1, n+1)]
    #a = [list(map(int, r.split())) for i in range(1,n+1)]
    #res = 0

    g1 = [1,2,3,5,7,8,10,12]
    g2 = [4,6,9,11]
    g3 = [2]

    x = [0]*2
    for i in range(len(a)):
        print(a[i])
        if a[i] in g1:
            x[i] = 1
        elif a[i] in g2:
            x[i] = 2
        elif a[i] in g3:
            x[i] = 3
    if x[0] != 0 and x[0] == x[1]:
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    main()


Fixed code:
def main():
    from sys import stdin, setrecursionlimit
    #setrecursionlimit(10**9)
    #n = int(stdin.readline()[:-1])   
    r = stdin.readline()[:-1]
    #n = int(stdin.readline()[:-1])   
    #r = [stdin.readline() for i in range(n)]
    #t = [int(stdin.readline()) for i in range(n)]
    #a = r.split()
    a = list(map(int, r.split()))
    #a = [int(s[i]) for i in range(1, n+1)]
    #a = [list(map(int, r.split())) for i in range(1,n+1)]
    #res = 0

    g1 = [1,3,5,7,8,10,12]
    g2 = [4,6,9,11]
    g3 = [2]

    x = [0]*2
    for i in range(len(a)):
        if a[i] in g1:
            x[i] = 1
        elif a[i] in g2:
            x[i] = 2
        elif a[i] in g3:
            x[i] = 3
    if x[0] != 0 and x[0] == x[1]:
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    main()
Buggy code:
x,y=map(int,input().split())
a=[4,6,9,11]
if (x in a==y in a)and x!=2 and y!=2:
    ans='Yes'
else:ans='No'
print(ans)
     
     

Fixed code:
x,y=map(int,input().split())
a=[4,6,9,11]
if ((x in a)==(y in a)) and x!=2 and y!=2:
    ans='Yes'
else:ans='No'
print(ans)
Buggy code:
x,y=map(int,input().split())
A=[1,3,5,7,8,10,12]
B=[4,6,9,11]
C=[2]

while True:
    for l in A,B,C:
        if x in l and y in l:
            print('Yes')
            break
    break    
    print('No')
    break


Fixed code:
x,y=map(int,input().split())
A=[1,3,5,7,8,10,12]
B=[4,6,9,11]
C=[2]
def ans():
    while True:
        for l in A,B,C:
            if x in l and y in l:
                return 'Yes'
                break
        return 'No'
        break
print(ans())
Buggy code:
x,y=map(int,input().split())
a=[0,1,3,1,2,1,2,1,1,2,1,2,1
if a[x]==a[y]:
    print("Yes")
else:
    print("No")


Fixed code:
x, y = map(int, input().split())
a = [1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1]
if a[x-1] == a[y-1]:
    print("Yes")
else:
    print("No")