qyliang/CodeNanoFix huggingface dataset:
Buggy code:
C=[input().split(),input().split()]
res='YES'
for i in range(3):
  if C[0][i]!=C[1][2-i]: res='NO'
print(res)

Fixed code:
C=[input(),input()]
res='YES'
for i in range(3):
  if C[0][i]!=C[1][2-i]: res='NO'
print(res)
Buggy code:
s = input()
i = input()
print("YES" if s==t[::-1] else "NO")

Fixed code:
s = input()
t = input()
if s == t[::-1]:
  print('YES')
else:
  print('NO')
Buggy code:
l = input()
m = input()
if l[0] == m[2] and l[1] == m[1] and l[2] == l[0]:
    print("YES")
else:
    print("NO")


Fixed code:
l = input()
m = input()
if l[0] == m[2] and l[1] == m[1] and l[2] == m[0]:
    print("YES")
else:
    print("NO")
Buggy code:
c = [input() for i in range(2)]
print("YES" if c[0] == c[1][::-1]) else "NO")

Fixed code:
c = [input() for i in range(2)]
print("YES" if c[0] == c[1][::-1] else "NO")
Buggy code:
print([NO,YES][input().strip()[::-1]==input().strip()])

Fixed code:
print(["NO","YES"][input().strip()[::-1]==input().strip()])
Buggy code:
a = str(input())
b = str(input())

rev_a = a[::-1]

if rev_a == b:
  print('YES)
else:
  print('NO')

Fixed code:
a = str(input())
b = str(input())
 
rev_a = a[::-1]
 
if rev_a == b:
  print('YES')
else:
  print('NO')
Buggy code:
a = input()
b = input()
print(["NO", "YES"][a[0]=b[2] and a[1]=b[1] and a[2]=b[0]])

Fixed code:
a = input()
b = input()
print(["NO", "YES"][a[0]==b[2] and a[1]==b[1] and a[2]==b[0]])
Buggy code:
list_1=list(input())
list_2=list(input())
print(list_1[0],list_2[2])
if(list_1[0]==list_2[2] and list_1[1]==list_2[1] and list_1[2]==list_2[0]):
  print('YES')
else:print('NO')

Fixed code:
list_1=list(input())
list_2=list(input())
#print(list_1[0],list_2[2])
if(list_1[0]==list_2[2] and list_1[1]==list_2[1] and list_1[2]==list_2[0]):
  print('YES')
else:print('NO')
Buggy code:
a = list(input())
b = list(input())
if a[0] == a[2] and b[0] == b[2]:
    print('YES')
else:
    print('NO')

Fixed code:
a = list(input())
b = list(input())
if a[0] == b[2] and b[0] == a[2] and a[1]==b[1]:
    print('YES')
else:
    print('NO')
Buggy code:
s,t=input()
if s[0]==t[2] and s[1]==t[1] and s[2]=t[0]:
    print("YES")
else:
    print("NO")

Fixed code:
s=input()
t=input()
if s[0]==t[2] and s[1]==t[1] and s[2]==t[0]:
    print("YES")
else:
    print("NO")
Buggy code:
a=list(input())
b=list(input())
if a[0]==b[2] and a[1]==b[1] and a[2]==b[2]:
  print('YES')
else:
  print('NO')

Fixed code:
a=list(input())
b=list(input())
if a[0]==b[2] and a[1]==b[1] and a[2]==b[0]:
  print('YES')
else:
  print('NO')
Buggy code:
print('YES' if input() == ''.join([e for e in reversed(list(input()))] else 'NO')

Fixed code:
print('YES' if input() == ''.join([e for e in reversed(list(input()))]) else 'NO')
Buggy code:
#!/usr/bin/env python3
from sys import stdin, stdout

def rint():
   return map(int, stdin.readline().split())
lines = stdin.readlines()

a = input()
b = input()
if a[0] == b[2] and a[1] == b[1] and a[2] == b[0]:
   print("YES")
else:
   print("NO")

Fixed code:
#!/usr/bin/env python3
from sys import stdin, stdout

def rint():
   return map(int, stdin.readline().split())
#lines = stdin.readlines()

a = input()
b = input()
if a[0] == b[2] and a[1] == b[1] and a[2] == b[0]:
   print("YES")
else:
   print("NO")
Buggy code:
C=[list(input()) for i in range(2)]
if C[0]==reverse(C[1]):
    print('YES')
else:
    print('NO')

Fixed code:
C=[list(input()) for i in range(2)]
if C[0][0]==C[1][2] and C[0][1]==C[1][1] and C[0][2]==C[1][0]:
    print('YES')
else:
    print('NO')
Buggy code:
a = input()
b = input()
if a[0]=b[2] and a[1]=b[1] and a[2]=b[0]:
  print("YES")
else:
  print("NO")

Fixed code:
a=input()
b=input()
if (a[0]==b[2] and a[1]==b[1] and a[2]==b[0]):
    print("YES")
else:
    print("NO")
Buggy code:
a=str(input())
b=str(input())
if a[0]==b[2] and a[2]==b[0]:
  print('YES')
else:
  print('NO')

Fixed code:
a = str(input())
b = str(input())
if a[1] == b[1] and a[0] == b[2] and a[2] == b[0]:
    print("YES")
else:
    print("NO")
Buggy code:
import math

def A():
    a, b = [int(x) for x in input().split()]
    print(math.ceil((a + b)/2))

def B():
    a = ''.join(sorted(list(input()), key=lambda x:ord(x)))
    b = ''.join(sorted(list(input()), key=lambda x:-ord(x)))
    if a < b:
        print('Yes')
    else:
        print('No')

def C():
    N = input()
    A = [x for x in input().split()]
    counter = {}

    for a in A:
        if(a in counter):
            counter[a] += 1
        else:
            counter[a] = 1
    remove_count = 0
    for key in counter:
        if counter[key] - int(key) >= 0:
            remove_count += counter[key] - int(key)
        else:
            remove_count += counter[key]
    print(remove_count)

def E():
    s1 = input()
    s2 = input()
    if s1 == s2[::-1]:
        print('Yes')
    else:
        print('No')
E()


Fixed code:
import math

def A():
    a, b = [int(x) for x in input().split()]
    print(math.ceil((a + b)/2))

def B():
    a = ''.join(sorted(list(input()), key=lambda x:ord(x)))
    b = ''.join(sorted(list(input()), key=lambda x:-ord(x)))
    if a < b:
        print('Yes')
    else:
        print('No')

def C():
    N = input()
    A = [x for x in input().split()]
    counter = {}

    for a in A:
        if(a in counter):
            counter[a] += 1
        else:
            counter[a] = 1
    remove_count = 0
    for key in counter:
        if counter[key] - int(key) >= 0:
            remove_count += counter[key] - int(key)
        else:
            remove_count += counter[key]
    print(remove_count)

def E():
    s1 = input()
    s2 = input()
    if s1 == s2[::-1]:
        print('YES')
    else:
        print('NO')
E()
Buggy code:
a=input()
b=input()
print(["NO","YES"][a==a[::-1] and b=b[::-1]])

Fixed code:
a=input()
b=input()
print(["NO","YES"][b==a[::-1] and a==b[::-1]])
Buggy code:
C1=input()
C2=input()

if (C1[0]==C[2]) and (C1[0]==C2[2]) and (C1[1]==C2[1]):
  print("YES")
else:
  print("NO")

Fixed code:
C1=input()
C2=input()

if (C1[0]==C2[2]) and (C1[2]==C2[0]) and (C1[1]==C2[1]):
  print("YES")
else:
  print("NO")
Buggy code:
A = int(input())
G = int(input())
 
if A[0]+A[1]+A[2] ==G[2]+G[1]+G[0]:
	print('YES')
else:
	print('NO')

Fixed code:
A = input()
G = input()
 
if A[0]+A[1]+A[2] ==G[2]+G[1]+G[0]:
	print('YES')
else:
	print('NO')
Buggy code:
C1 = list(input())
C2 = list(input())

if C1[0] == C2[2] and C1[2] == C2[0]:
    print("YES")
else:
    print("NO")

Fixed code:
C1=list(input())
C2=list(input())

if C1[1]==C2[1] and C1[0]==C2[2] and C1[2]==C2[0]:
    print('YES')
else:
    print('NO')
Buggy code:
a=input()
b=input()
c=b[::-1]
if a == c[::-1]:
  print("YES")
else:
  print("NO")

Fixed code:
a=input()
b=input()
c=b[::-1]
if a == c:
  print("YES")
else:
  print("NO")
Buggy code:
a = input()
b = input()
if aa[0] == b[2] and a[1] == b[1] and [2] == b[0]:
    print("YES")
else:
    print("NO")

Fixed code:
a = input()
b = input()
if a[0] ==b[2] and a[1] == b[1] and a[2] == b[0]:
 print("YES")
else:
 print("NO")
Buggy code:
c1 = list(input())
c2 = list(input())
for i in range(3):
    if c1[i]!=c[2-i]:
        print("NO")
        exit()
print("YES")

Fixed code:
c1 = list(input())
c2 = list(input())
for i in range(3):
    if c1[i]!=c2[2-i]:
        print("NO")
        exit()
print("YES")
Buggy code:
a = int(input())
b = int(input())

if a = b[::-1]:
  print("YES")
else:
  print("NO")

Fixed code:
a = input()
b = input()

if a == b[::-1]:
  print("YES")
else:
  print("NO")
Buggy code:
a=input()
b=input()
if a[0]==b[2] and a[2]==b[2] and a[2]==b[0]:
    print('YES')
else:
    print('NO')

Fixed code:
a = input()
b = input()
if a[0]==b[2] and a[1]==b[1] and a[2]==b[0]:
  print("YES")
else:
  print("NO")
Buggy code:
C1 = list(input().split())
C2 = list(input().split())

if C1[0] == C2[2] and C1[1] == C2[1] and C1[2] == C2[0]:
    print("YES")
else:
    print("NO")


Fixed code:
C1=list(input())
C2=list(input())
if C1[0]==C2[2] and C1[1]==C2[1] and C1[2]==C2[0]:
	print('YES')
else: print('NO')
Buggy code:
c1 = list(input())
c2 = list(input())
print('YES' if c1 == c2.reverse() else 'NO')

Fixed code:
c1 = list(input())
c2 = list(input())
c1.reverse()
print('YES' if c1 == c2 else 'NO')
Buggy code:
S1 = input()
S2 = input()

isMatch = True
for i in range( len(S1) ):
    if S1[i] != S2[-i]:
        isMatch = False
        break

if isMatch: print( 'YES' )
else:       print( 'NO' )

Fixed code:
S1 = input()
S2 = input()

isMatch = True
for i in range( len(S1) ):
    if S1[i] != S2[-i-1]:
        isMatch = False
        break

if isMatch: print( 'YES' )
else:       print( 'NO' )
Buggy code:
#A_Rotation
def rotation(c1, c2):
	if str(c1) == str(c2)[:-1]:
		print("YES")
	else:
		print("NO")

if __name__ == "__main__":
	c1 = input()
	c2 = input()
	rotation(c1, c2)

Fixed code:
#A_Rotation
def rotation(c1, c2):
	if str(c1) == str(c2)[::-1]:
		print("YES")
	else:
		print("NO")

if __name__ == "__main__":
	c1 = input()
	c2 = input()
	rotation(c1, c2)
Buggy code:
x =[str(input()) for i in range(2)]
if x[0][0]==x[1][0] and x[0][1]==x[1][1] and x[0][2]==x[1][2]:
  print("YES")
else:
  print("NO")

Fixed code:
x =[str(input()) for i in range(2)]
if x[0][0]==x[1][2] and x[0][1]==x[1][1] and x[0][2]==x[1][0]:
  print("YES")
else:
  print("NO")
Buggy code:
a=input();b=input();print("YNEOS"[a[::-1]!=b])

Fixed code:
a=input();b=input();print("YNEOS"[a[::-1]!=b::2])
Buggy code:
a=input()
d=input()

if a[2]==d[0] and a[1]==d[1] and a[0]==d[2]:
    print("YES")
else:
    NO

Fixed code:

a=input()
d=input()

if a[2]==d[0] and a[1]==d[1] and a[0]==d[2]:
    print("YES")
else:
    print("NO")
Buggy code:
S=input()
T=input()
if (S[0]==T[2] and T[0]==S[2]):
  print("YES")
else:
  print("NO")

Fixed code:
S=input()
T=input()
if (S[0]==T[2] and T[0]==S[2] and T[1]==S[1]):
  print("YES")
else:
  print("NO")
Buggy code:
c = [list(input()) for i in range(2)]
tmp = [[], []]
tmp[0] = c[0][:]
tmp[1] = c[1][:]
tmp[0][0], tmp[0][-1] = tmp[0][-1], tmp[0][0]
tmp[1][0], tmp[1][-1] = tmp[1][-1], tmp[1][0]
tmp[0], tmp[1] = tmp[1], tmp[0]
ans = 'YES'
for i in range(2):
    for j in range(3):
        if c[i][j] != tmp[i][j]:
            print('c:', c[i][j])
            print('tmp:', tmp[i][j])
            ans = 'NO'
print(ans)

Fixed code:
c = [list(input()) for i in range(2)]
tmp = [[], []]
tmp[0] = c[0][:]
tmp[1] = c[1][:]
tmp[0][0], tmp[0][-1] = tmp[0][-1], tmp[0][0]
tmp[1][0], tmp[1][-1] = tmp[1][-1], tmp[1][0]
tmp[0], tmp[1] = tmp[1], tmp[0]
ans = 'YES'
for i in range(2):
    for j in range(3):
        if c[i][j] != tmp[i][j]:
            ans = 'NO'
print(ans)
Buggy code:
a,b=input()
if a[0]==b[2] and a[1]==b[1] and a[2]==b[0]:print('YES')
else:print('NO')

Fixed code:
a = input()
b = input()

if a[0] == b[2] and a[1] == b[1] and a[2] == b[0]:
    print("YES")
else:
    print("NO")
Buggy code:
a=input()
b=input()
print('YES' if a[0]==b[2] and a[2]==b[0] else 'NO')

Fixed code:
a=input()
b=input()
print('YES' if a[0]==b[2] and a[2]==b[0] and a[1]==b[1] else 'NO')
Buggy code:
read = lambda: sys.stdin.readline().rstrip()
s1 = read()
s2 = read()
if s1[0] == s2[2] and s1[1] == s2[1] and s1[2] == s2[0]:
  print("YES")
else:
  print("NO")

Fixed code:
import sys
read = lambda: sys.stdin.readline().rstrip()
s1 = read()
s2 = read()
if s1[0] == s2[2] and s1[1] == s2[1] and s1[2] == s2[0]:
  print("YES")
else:
  print("NO")
Buggy code:
# -*- coding: <encoding name> -*-

line_1 = input
line_2 = input
line = line_1 + line_2
print('YES' if line == line[::-1] else 'NO')

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

line_1 = input()
line_2 = input()
line = line_1 + line_2
print('YES' if line == line[::-1] else 'NO')
Buggy code:

c = input()
d = input()

print("YES" if c==c[::-1] and d==d[::-1] else "NO")


Fixed code:

c = input()
d = input()

print("YES" if c==d[::-1] else "NO")
Buggy code:
a=input()
b=input()
if a[0]==b[2] and a[2]==b[0]:
    if a[1]==b[1]:
        print("YES")
    else:
        print("NO")

Fixed code:
a=input()
b=input()
if a[0]==b[2] and a[2]==b[0]:
    if a[1]==b[1]:
        print("YES")
    else:
        print("NO")
else:
    print("NO")
Buggy code:
n = input()
m = input()

if n[0]==m[2] and n[2]==m[0]:
  print("YES")
else:
  print("NO")

Fixed code:
n = input()
m = input()
 
if n[0]==m[2] and n[2]==m[0] and n[1]==m[1]:
  print("YES")
else:
  print("NO")
Buggy code:
import math



a=input()
b=input()


print("YES" if a[0]==b[2] and b[0] ==a[2] else "NO")


Fixed code:
import math



a=input()
b=input()


print("YES" if a[0]==b[2] and b[0] ==a[2] and a[1]==b[1] else "NO")
Buggy code:
c1 = list(input())
c2 = list(input())

r1 = c1[::-1]
r2 = c2[::-1]
if c1 == r1 and c2 == r2:
  print("YES")
else:
  print("NO")


Fixed code:
c1 = list(input())
c2 = list(input())

r1 = c1[::-1]
r2 = c2[::-1]

if c1 == r2 and c2 == r1:
  print("YES")
else:
  print("NO")
Buggy code:
c_11, c_12, c_13 = input()
c_21, c_22, c_23 = input()
if c_11 == c_23 and c_12 == c_22 and c_13 == c_21:
  print(YES)
else:
  print(NO)

Fixed code:
c_11, c_12, c_13 = input()
c_21, c_22, c_23 = input()
if c_11 == c_23 and c_12 == c_22 and c_13 == c_21:
  print('YES')
else:
  print('NO')
Buggy code:
c1 = list(input())
c2 = list(input())
if c1.reverse == c2:
  print("YES")
else:
  print("NO")

Fixed code:
c1 = list(input())
c2 = list(input())
c1.reverse()
if c1 == c2:
  print("YES")
else:
  print("NO")
Buggy code:
    s=input()
    t=input()
    print("YES" if s==t[::-1] else "NO")

Fixed code:
s = input()
t = input()
print('YES' if s[::-1] == t else 'NO')
Buggy code:
C=input()+input()
print("YNEOS"[sum([1 for i in range(3)if C[i]!=C[-i-1]])::2])

Fixed code:
C=input()+input()
print("YNEOS"[1 in[1 for i in range(3)if C[i]!=C[-i-1]]::2])
Buggy code:
S1=input()
S2=input()
ans=1
for i in range(3):
  if S1[i]!=S2[2-i]:
    ans*0
print(["NO","YES"][ans])

Fixed code:
S1=input()
S2=input()
ans=1
for i in range(3):
  if S1[i]!=S2[2-i]:
    ans=ans*0
print(["NO","YES"][ans])
Buggy code:
c1 = list(input())
c2 = list(input())
ans = "YES" if c2 = c2[::-1] else "NO"
print(ans)

Fixed code:
c1 = list(input())
c2 = list(input())
ans = "YES" if c2 == c1[::-1] else "NO"
print(ans)
Buggy code:
a=input()
b=input()
ans=0
if(a[0]==b[2]):
  if(a[1]==b[1]):
    if(a[2]==b[0]):
      print("YES")
      ans=1
      
if(ans=0):
  print("NO")

Fixed code:
a=input()
b=input()
ans=0
if(a[0]==b[2]):
  if(a[1]==b[1]):
    if(a[2]==b[0]):
      print("YES")
      ans=1
      
if(ans==0):
  print("NO")
Buggy code:
a = input()
b = input()
if a == b[--1]:
  print('YES')
else:
  print('NO')

Fixed code:
a = input()
b = input()
if a == b[::-1]:
  print('YES')
else:
  print('NO')
Buggy code:
print('YES') if input()[::1]==input() else print('NO')

Fixed code:
print('YES') if input()[::-1]==input() else print('NO')
Buggy code:
A = input()
B = input()

REA = (A[0] + A[1] + A[2])
REB = (A[2] + A[1] +A[0])

if REA == REB:
    print("YES")
else:
    print("NO")

Fixed code:
A = input()
B = input()

REA = (A[0] + A[1] + A[2])
REB = (B[2] + B[1] +B[0])

if REA == REB:
    print("YES")
else:
    print("NO")
Buggy code:
ls_c = [[i for i in input()] for j in range(2)]

if (ls_c[0][0] == ls_c[1][2]) and (ls_c[0][2] == ls_c[1][0]):
    print("YES")
else:
    print("NO")

Fixed code:
ls_c = [[i for i in input()] for j in range(2)]

if (ls_c[0][0] == ls_c[1][2]) and (ls_c[0][2] == ls_c[1][0]) and (ls_c[0][1] == ls_c[1][1]):
    print("YES")
else:
    print("NO")
Buggy code:
from sys import stdin
s1 = (stdin.readline().rstrip())
s2 = int(stdin.readline().rstrip())
if s1 == s2[::-1]:
    print("YES")
else:
    print("NO")

Fixed code:
from sys import stdin
s1 = (stdin.readline().rstrip())
s2 = (stdin.readline().rstrip())
if s1 == s2[::-1]:
    print("YES")
else:
    print("NO")
Buggy code:
a,b = [input() for i in range(2)]
if a[0] == b[2] and a[2] == b[0]:
    print('YES')
else:
    print('NO')

Fixed code:
a,b = [input() for i in range(2)]
if a[0] == b[2] and a[1]==b[1] and a[2] == b[0]:
    print('YES')
else:
    print('NO')
Buggy code:
line1 = sys.stdin.readline().rstrip()
line2 = sys.stdin.readline().rstrip()

len2 = len(line2)

res = True

for i in range(0, len(line1)):
    if line2[len2-1 - i] != line1[i]:
        res = False
        print("NO")
        break

if res == True:
    print("YES")

Fixed code:
import sys

line1 = sys.stdin.readline().rstrip()
line2 = sys.stdin.readline().rstrip()

len2 = len(line2)

res = True

for i in range(0, len(line1)):
    if line2[len2-1 - i] != line1[i]:
        res = False
        print("NO")
        break

if res == True:
    print("YES")
Buggy code:
a = input()
b = input()

c = a[::-1]
d = b[::-1]

if a = d and b = c:
    print('YES')
else:
    print('NO')


Fixed code:
a = input()
b = input()

c = a[::-1]
d = b[::-1]

if a == d and b == c:
    print('YES')
else:
    print('NO')
Buggy code:
a=input()
b=input()

if a[0]==b[2] and b[0]==a[2]:
  print("YES")
else:
  print("NO")

Fixed code:
a=input()
b=input()

if a[0]==b[2] and a[2]==b[0] and a[1]==b[1]:
  print("YES")
else:
  print("NO")
Buggy code:
a,b,c=map(str,input().split())
e,f,g=map(str,input().split())
if a==g and b==f and c==e:
    print("YES")
else:
    print("NO")

Fixed code:
a,b,c=map(str,input().replace(""," ").split())
e,f,g=map(str,input().replace(""," ").split())
if a==g and b==f and c==e:
    print("YES")
else:
    print("NO")
Buggy code:
S1=int(input())
S2=int(input())
if S1 == S2[2]+S2[1]+S2[0]:
  print('YES')
else:
  print('NO')

Fixed code:
S1=str(input())
S2=str(input())
if S1 == S2[2]+S2[1]+S2[0]:
  print('YES')
else:
  print('NO')
Buggy code:
c1 = input()
c2 = input()
if c1[0] == c2[2] and c1[2] == c2[0]:
  print("YES")
else:
  print("NO")


Fixed code:
c1 = input()
c2 = input()

if c1[0] == c2[2] and c1[1] == c2[1] and c1[2] == c2[0]:
  print('YES')
else:
  print('NO')
Buggy code:
# -*- coding: utf-8 -*-
C1 = input()
C2 = input()
if C1[0] == C2[2] and C1[1] == C2[2] and C1[2] == C2[0]:
    print('YES')
else:
    print('NO')

Fixed code:
# -*- coding: utf-8 -*-
C1 = input()
C2 = input()
if C1[0] == C2[2] and C1[1] == C2[1] and C1[2] == C2[0]:
    print('YES')
else:
    print('NO')
Buggy code:
A=input()
B=input()
if A[:-1]==B:
    print("YES")
else:
    print("NO")

Fixed code:
A=input()
B=input()
if A[::-1]==B:
    print("YES")
else:
    print("NO")
Buggy code:
A=str(input())
B=str(input())
if A[0]==B[2] and A[1]==B[1] and A[2]==B[2]:
    print("YES")
else:
    print("NO")


Fixed code:
A=str(input())
B=str(input())
if A[0]==B[2] and A[1]==B[1] and A[2]==B[0]:
    print("YES")
else:
    print("NO")
Buggy code:
a = input()
b = input()
print(b[::-1])
if a == b[::-1]:
    print('YES')
else:
    print('NO')


Fixed code:
a = input()
b = input()
if a == b[::-1]:
    print('YES')
else:
    print('NO')
Buggy code:
C1 = input()
C2 = input()
if(C1[0]==C2[2] and C2[0]==C1[2]):
  print('YES')
else:
  print('NO')

Fixed code:
C1 = input()
C2 = input()

if C1[0]==C2[2] and C1[1]==C2[1] and C1[2]==C2[0]:
  print('YES')
else:
  print('NO')
Buggy code:
x,y =[str(input()) for i in range(2)]
if x[0]==y[2] and x[2]==y[0]:
    print('YES')
else:
    print('NO')


Fixed code:
x,y =[str(input()) for i in range(2)]
if x[0]==y[2] and x[2]==y[0] and x[1]==y[1]:
    print('YES')
else:
    print('NO')
Buggy code:
s = input()
t = input()
if s[0] == t[2] and s[1] == t[2] and s[2] == t[0]:
    print('YES')
else:
    print('NO')

Fixed code:
s = input()
t = input()
if s[0] == t[2] and s[1] == t[1] and s[2] == t[0]:
    print('YES')
else:
    print('NO')
Buggy code:
a=input()
b=input()
ret='YES'
for i in range(3):
  if a[i]!=b[2-i]
    ret='NO'
    break
print(ret)

Fixed code:
a=input()
b=input()
ret='YES'
for i in range(3):
  if a[i]!=b[2-i]:
    ret='NO'
    break
print(ret)
Buggy code:
# A - Rotation
line1 = input()
line2 = input()
my_list1 = []
my_list2 = []

for i in line1:
    my_list1.append(i)

for i in line2:
    my_list2.append(i)

my_list2.reverse()

if my_list1 == my_list2:
    print('YES')
else:
    print('No')

# print(my_list1, my_list2)



Fixed code:
# A - Rotation
line1 = input()
line2 = input()
my_list1 = []
my_list2 = []
 
for i in line1:
    my_list1.append(i)
 
for i in line2:
    my_list2.append(i)
 
my_list2.reverse()
 
if my_list1 == my_list2:
    print('YES')
else:
    print('NO')
 
# print(my_list1, my_list2)
Buggy code:
a = list(input())
b = list(input())
if b = a.reverse():
  print("YES")
else:
  print("NO")

Fixed code:
a = list(input())
b = list(input())
a.reverse()
if a == b:
  print("YES")
else:
  print("NO")
Buggy code:
# 077a

def atc_077a(input_value: str) -> str:
    C1 = input_value[0]
    C2 = input_value[1]

    if C1[0] == C2[2] and C1[1] == C2[1]:
        return "YES"
    else:
        return "NO"

C1 = input()
C2 = input()
print(atc_077a(C1,C2))


Fixed code:
# 077a

def atc_077a(input_value: str) -> str:
    C1 = input_value[0]
    C2 = input_value[1]

    if C1[0] == C2[2] and C1[1] == C2[1] and C1[2] == C2[0]:
        return "YES"
    else:
        return "NO"


C1 = input()
C2 = input()
print(atc_077a([C1, C2]))
Buggy code:
strlist1 = input()
strlist2 = input()

flag = True

for i in range(3):
  if strlist1[i] != strlist2[2 - i]:
    flag = false

if flag:
  print("YES")
else:
  print("NO")


Fixed code:
strlist1 = input()
strlist2 = input()

flag = True

for i in range(3):
  if strlist1[i] != strlist2[2 - i]:
    flag = False

if flag:
  print("YES")
else:
  print("NO")
Buggy code:
x = input()
y = input()
if x[::-1] = y:
	print('YES')
else:
	print('NO')

Fixed code:
x = input()
y = input()
if x == y[::-1]:
    print('YES')
else:
    print('NO')
Buggy code:
a=input()
b=input()
if(a[0]==b[2] and a[1]==b[1] and a[2]=b[0]):
    print("YES")
else:
    print("NO")


Fixed code:
a=input()
b=input()
if(a[0]==b[2] and a[1]==b[1] and a[2]==b[0]):
    print("YES")
else:
    print("NO")
Buggy code:
import sys


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

# N = int(input())
# A = [int(x) for x in input().split()]
# a, b, c = map(int, input().split())
# name1 = str(input())
# alph = {"A": 1, "B": 2, "C": 3, "D": 4, "E": 5}


a, b, c = map(int, input().split())
e,f,g = map(int, input().split())
if a==g and b==f and c==e:
    print("YES")
else:
    print("NO")

Fixed code:
import sys


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

# N = int(input())
# A = [int(x) for x in input().split()]
# a, b, c = map(int, input().split())
# name1 = str(input())
# alph = {"A": 1, "B": 2, "C": 3, "D": 4, "E": 5}


a=str(input())
b=str(input())

if a[0] == b[-1] and a[1] == b[-2] and a[2] == b[-3]:
    print("YES")
else:
    print("NO")
Buggy code:
C = [list(input().split()) for i in range(2)]
if C[0][0] == C[1][2] and C[1][0] == C[0][2] and C[0][1] == C[1][1]:
    print('YES')
else:
    print('NO')



Fixed code:
C = [list(input()) for i in range(2)]
if C[0][0] == C[1][2] and C[1][0] == C[0][2] and C[0][1] == C[1][1]:
    print('YES')
else:
    print('NO')
Buggy code:
a=input()
b=input()
if a[0]==b[2] and a[1]==b[a] and a[2]==b[0]:
  print("YES")
else:
  print("NO")

Fixed code:
a = input()
b = input()
if a[0] == b[2] and a[1] == b[1] and a[2] == b[0]:
    print ('YES')
else:
    print ('NO')
Buggy code:
c = input()
d = input()
roll_c = []
roll_d = []
for i in range(len(c)):
  roll_c.append(c[-1])
  roll_d.append(d[-1])
if c == roll_d and d == roll_c:
  print("YES")
else:
  print("NO")

Fixed code:
c = input()
d = input()
roll_c = []
roll_d = []
for i in range(len(c)):
  roll_c.append(c[-(i+1)])
  roll_d.append(d[-(i+1)])
if list(c) == roll_d and list(d) == roll_c:
  print("YES")
else:
  print("NO")
Buggy code:
n = list(input())
m = list(input())
if n[0]==m[2] and n[1]==m[1] and n[2]==m[1]:
  print('YES')
else:
  print('NO')

Fixed code:
n = list(input())
m = list(input())
if n[0]==m[2] and n[1]==m[1] and n[2]==m[0]:
  print('YES')
else:
  print('NO')
Buggy code:

a = input()
b = reversed(input())

if a == b:
    print("YES")
else:
    print("NO")

Fixed code:
a = list(input())
b = list(reversed(input()))
if a == b:
    print('YES')
else:
    print('NO')
Buggy code:
c1 = input()
c2 = input()

print("YES" if c1=c2[::-1] "NO")

Fixed code:
c1=input()
c2=input()
print("YES" if c1[::-1]==c2 else "NO")
Buggy code:
a = [0,0]
temp = [0,0]

for k in range(2):
    temp[k] = input()
    a[1-k] = temp[k][::-1]

print(temp, a)
if (temp[0] == a[0]) and (temp[1] == a[1]):
    print('YES')
else:
    print('NO')

Fixed code:
a = [0,0]
temp = [0,0]

for k in range(2):
    temp[k] = input()
    a[1-k] = temp[k][::-1]

if (temp[0] == a[0]) and (temp[1] == a[1]):
    print('YES')
else:
    print('NO')