ZhenlongDai/ACPR huggingface dataset:
Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
C1 = sys.stdin.readline()
C2 = sys.stdin.readline()
c1 = C1.rstrip()
c2 = C2.rstrip()


c3 = c2[::-1]
if c1 == c3:
    print("Yes")
else:
    print("No")

Failing test case input:
s`c
eat

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
import sys
C1 = sys.stdin.readline()
C2 = sys.stdin.readline()
c1 = C1.rstrip()
c2 = C2.rstrip()
c3 = c2[::-1]
if c1 == c3:
    print("YES")
else:
    print("NO")

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
b = input()[::-1]
if a==b:
  print('YES')
else:
  print('N0')

Failing test case input:
yfe
fle

Expected output:
NO


Actual output:
N0


Fixed submission (verdict: Accepted):
a = input()
b = input()[::-1]
if a==b:
  print('YES')
else:
  print('NO')

Problem: p03555
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x =input()
y=input()
print('Yes' if x[2]+x[1]+x[0]==y else 'No')

Failing test case input:
eey
gmf

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
x =input()
y=input()
print('YES' if x[2]+x[1]+x[0]==y else 'NO')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c1=input()
c2=input()
print("YES" if c1==c2[::-1] else "No")

Failing test case input:
s`b
ufa

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
c1=input()
c2=input()
print("YES" if c1==c2[::-1] else "NO")

Problem: p03555
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
c1 = input()
c2 = input()

if c1[0] == c2[-1] and c1[1] == c2[-2] and c1[2] == c2[-3]:
    print("Yes")
else:
    print("No")


Failing test case input:
s`b
tae

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
c1 = input()
c2 = input()

if c1[0] == c2[-1] and c1[1] == c2[-2] and c1[2] == c2[-3]:
    print("YES")
else:
    print("NO")

Problem: p03555
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
S1 = input()
S2 = input()
if S1[0] == S2[2] and S1[1] == S2[1] and S1[2] == S2[0]: print('Yes')
else: print('No')

Failing test case input:
our
qsp

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
S1 = input()
S2 = input()
newS1 = S2[2]+S2[1]+S2[0]
newS2 = S1[2]+S1[1]+S1[0]
if S1 == newS1 and S2 == newS2: print('YES')
else: print('NO')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
t = input()

if s[0] == t[2] and s[1] == t[1] and s[2] == t[0]:
    print('Yes')
else:
    print('No')

Failing test case input:
tab
bet

Expected output:
NO

Actual output:
No


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

if s[0] == t[2] and s[1] == t[1] and s[2] == t[0]:
    print('YES')
else:
    print('NO')
Problem: p03555
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = str(input())
s = str(input())
if n[0]== s[2]and n[1]==s[1] and n[2]== s[0]:
    print('Yes')
else:
    print('No')

    

Failing test case input:
s`c
eat

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
n = str(input())
s = str(input())
if n[0]== s[2]and n[1]==s[1] and n[2]== s[0]:
    print('YES')
else:
    print('NO')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c1 = input()
c2 = input()

print("Yes" if c1 == c2[::-1] else "No")

Failing test case input:
b`s
atf

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
c1 = input()
c2 = input()

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

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
row1 = input()
row2 = input()
if row1 == row2[::-1]:
    print('Yes')
else:
    print('No')

Failing test case input:
fyd
hmh

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
row1 = input()
row2 = input()
if row1 == row2[::-1]:
    print('YES')
else:
    print('NO')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c1 = input()
c2 = input()
if c1[::-1]==c2:
    print('YES')
else:
    print('No')

Failing test case input:
yef
elg

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
c1 = input()
c2 = input()
if c1[::-1]==c2:
    print('YES')
else:
    print('NO')

Problem: p03555
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = list(map(str, input()))
b = list(map(str, input()))

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

Failing test case input:
spp
pps

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
a = list(map(str, input()))
b = list(map(str, input()))

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

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
C1=input().strip()
C2=input().strip()
print("No Yes".split()[C1==C2[::-1]])

Failing test case input:
s`b
aue

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
C1=input().strip()
C2=input().strip()
print("NO YES".split()[int(C1==C2[::-1])])

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
C = [input() for _ in range(2)]
tmp = C[0] + C[1]
if tmp == tmp[::-1]:
    print('Yes')
else:
    print('No')

Failing test case input:
ptr
rns

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
C = [input() for _ in range(2)]
tmp = C[0] + C[1]
if tmp == tmp[::-1]:
    print('YES')
else:
    print('NO')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
t = input()
s = s[::-1]
print("Yes" if s == t else "No")


Failing test case input:
yfe
glf

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
t = input()
s = s[::-1]
print("YES" if s == t else "NO")
Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

c = input()
d = input()

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


Failing test case input:
spp
pps

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):

c = input()
d = input()

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

Problem: p03555
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = list(map(str, input()))
b = list(map(str, input()))

if a[0] == b[0] and a[1] == b[1] and a[2] == b[2]:
    print('Yes')
else:
    print('No')
    

Failing test case input:
ruo
qsp

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a = list(map(str, input()))
b = list(map(str, input()))

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

Problem: p03555
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=input()
b=input()
if a[0]==b[2] or a[2]==b[2] or a[2]==b[0]:
    print('YES')
else:
    print('NO')

Failing test case input:
fez
gmf

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a=input()
b=input()
if a[0]==b[2] and a[1]==b[1] and a[2]==b[0]:
    print('YES')
else:
    print('NO')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
b = input()
c = a[::-1]
d = b[::-1]

if a == d and b == c:
  print('Yes')
else:
  print('No')

Failing test case input:
atb
bet

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a = input()
b = input()
c = a[::-1]
d = b[::-1]

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

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = str(input())
b = str(input())

print("Yes" if (b == a[::-1]) else "No")

Failing test case input:
s`b
uaf

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a = str(input())
b = str(input())

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

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
b = input()
c = reversed(b)

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

Failing test case input:
spp
pps

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
a = input()
b = input()

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

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s1 = list(input())
s2 = list(input())
if s1[0] == s2[2] and s1[1] == s2[2] and s1[2] == s2[0]:
  print("YES")
else:
  print("NO")

Failing test case input:
spp
pps

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
s1 = list(input())
s2 = list(input())
if s1[0] == s2[2] and s1[1] == s2[1] and s1[2] == s2[0]:
  print("YES")
else:
  print("NO")
Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c1 = input()
c2 = input()
if c1[0] == c2[2] and c1[1] == c2[1] and c1[2] == c2[0]:
    print('Yes')
else:
    print('No')

Failing test case input:
spp
pps

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
c1 = input()
c2 = input()
if c1[0] == c2[2] and c1[1] == c2[1] and c1[2] == c2[0]:
    print('YES')
else:
    print('NO')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c1 = list(input())
c2 = list(input())

if c1[0] == c2[-1] and c1[-1] == c2[0]:
    print('Yes')
else:
    print('No')

Failing test case input:
s`b
aue

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
c1 = list(input())
c2 = list(input())
c1.reverse()

if c1 == c2:
    print('YES')
else:
    print('NO')

Problem: p03555
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
data1 = list(map(str, input().split()))
data2 = list(map(str, input().split()))

count = len(data1) - 1
sw = 0
i = 0
j = len(data2)-1
while i <= count:
    if data1[i] == data2[j]:
        sw += 1
    i += 1
    j -= 1
if sw == len(data1):
    print("Yes")
else:
    print("No")

Failing test case input:
fye
gmh

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
data1 = input()
data2 = input()

count = 3 -1
sw = 0
i = 0
j = len(data2)-1
while i <= count:
    if data1[i] == data2[j]:
        sw += 1
    i += 1
    j -= 1
if sw == 3:
    print("YES")
else:
    print("NO")

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
c_r = input()

if reversed(c) == c_r:
    print("Yes")
else:
    print("No")

Failing test case input:
b`s
atf

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
c = input()
c_r = input()
c = c[::-1]
if c == c_r:
    print("YES")
else:
    print("NO")

Problem: p03555
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x = str(input())
y = str(input())

if x[0] == y[2] and x[1] == y[1] and x[2] == y[0]:
    print('Yes')
else:
    print('No')

Failing test case input:
yfe
glf

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
x = list(input())
y = list(input())

if x[0] == y[2] and x[1] == y[1] and x[2] == y[0]:
    print('YES')
else:
    print('NO')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = list(input())
K = list(input())

if N[0]== K[2] and N[1]==K[1] and N[2]== K[0]:
    print('Yes')
else:
    print('No')


Failing test case input:
toq
top

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
N = list(input())
K = list(input())

if N[0]== K[2] and N[1]==K[1] and N[2]== K[0]:
    print('YES')
else:
    print('NO')
Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l = list(map(str,input()))
m = list(map(str,input()))
if l[0]==m[2] and l[1]==m[1] and l[2]and m[0] :
    print('YES')
else:
    print('NO')


Failing test case input:
pos
top

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
l = list(map(str,input()))
m = list(map(str,input()))
if l[0]==m[2] and l[1]==m[1] and l[2]== m[0] :
    print('YES')
else:
    print('NO')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l1 = list(input())
l2 = list(input())

L1 = reversed(l1)
L2 = reversed(l2)

if l1 == L2 and l2 == L1:
    print("No")
else:
    print("Yes")


Failing test case input:
`tb
bes

Expected output:
NO


Actual output:
Yes


Fixed submission (verdict: Accepted):
l1 = list(input())
l2 = list(input())

L1 = l1[::-1]
L2 = l2[::-1]

if l1 == L2 and l2 == L1:
    print("YES")
else:
    print("NO")

Problem: p03555
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
S1 = input()
S2 = input()
newS2 = S2[2] + S2[1] + S2[0]
if S1 == newS2: print('Yes')
else: print('No')

Failing test case input:
rou
pot

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
S1 = input()
S2 = input()
newS1 = S2[2]+S2[1]+S2[0]
newS2 = S1[2]+S1[1]+S1[0]
if S1 == newS1 and S2 == newS2: print('YES')
else: print('NO')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c1 = input()
c2 = input()

if c1[0] == c2[2] and c1[1] == c2[1] and c1[2] == c2[0]:
    print('Yes') 
else:
    print('No')

Failing test case input:
quo
psr

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
c1 = input()
c2 = input()

if c1[0] == c2[2] and c1[1] == c2[1] and c1[2] == c2[0]:
    print('YES') 
else:
    print('NO')

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

Failing test case input:
qos
pot

Expected output:
NO


Actual output:
q t
NO


Fixed submission (verdict: Accepted):
list_1=list(input())
list_2=list(input())

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

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

Failing test case input:
spp
pps

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
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")
Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def judge(A, B):
  i=0
  if len(A) != len(B):
    return False
  else:
    while i<len(A):
      if A[i] != B[len(B)-i-1]:
        return False
      i+=1
    return True
 
A=input()
B=input()
 
if judge(A, B):
  print("Yes")
else:
  print("No")

Failing test case input:
{cf
hnh

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
def judge(A, B):
  i=0
  if len(A) != len(B):
    return False
  else:
    while i<len(A):
      if A[i] != B[len(B)-i-1]:
        return False
      i+=1
    return True

A=input()
B=input()
 
if judge(A, B):
  print("YES")
else:
  print("NO")

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

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)

Failing test case input:
spp
pps

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):

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)

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print("YES" if input() == "".join(list(reversed(input()))) else "No")


Failing test case input:
ruo
qsp

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
print("YES" if input() == "".join(list(reversed(input()))) else "NO")

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
line1 = input().strip()
line2 = input().strip()
if line1[0] == line2[2] and line1[1] == line2[1] and line1[2] == line2[0]:
    print(True)
else:
    print(False)

Failing test case input:
yfe
glf

Expected output:
NO


Actual output:
False


Fixed submission (verdict: Accepted):
line1 = input().strip()
line2 = input().strip()

if line1[0] == line2[2] and line1[1] == line2[1] and line1[2] == line2[0]:
    print("YES")
else:
    print("NO")
Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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()


Failing test case input:
tor
top

Expected output:
NO


Actual output:
No


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

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
t = input()
if s[0] == t[2] and s[1] == t[2] and s[2] == t[0]:
    print('YES')
else:
    print('NO')

Failing test case input:
spp
pps

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
s = input()
t = input()
if s[0] == t[2] and s[1] == t[1] and s[2] == t[0]:
    print('YES')
else:
    print('NO')

Problem: p03555
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
C1 = input()

C2 = input()

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

Failing test case input:
rot
top

Expected output:
NO


Actual output:
YES


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

C2 = input()



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

Problem: p03555
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

C1 = str(input())
C2 = str(input())


ori_str = C1 + C2


rev_str = ori_str[-1::-1]


if ori_str == rev_str:
    print("Yes")
else:
    print("No")


Failing test case input:
{cf
ghn

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):

C1 = str(input())
C2 = str(input())


ori_str = C1 + C2


rev_str = ori_str[-1::-1]


if ori_str == rev_str:
    print("YES")
else:
    print("NO")
Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s1 = input()
s2 = input()
ok = True
for i in range(3):
  if s1[i] != s2[2-i]:
    ok = False
print("Yes" if ok else "No")

Failing test case input:
qup
psr

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
s1 = input()
s2 = input()
ok = True
for i in range(3):
  if s1[i] != s2[2-i]:
    ok = False
print("YES" if ok else "NO")

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys


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








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

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


Failing test case input:
spp
pps

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
import sys


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








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

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=str(input())
b=str(input())
if a[0]==b[2] and a[2]==b[0]:
  print('YES')
else:
  print('NO')

Failing test case input:
eye
ele

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a=str(input())
b=str(input())
if a[0]==b[2] and a[2]==b[0] and a[1]==b[1]:
  print('YES')
else:
  print('NO')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input()
b=input()

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

Failing test case input:
tbb
bet

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a=input()
b=input()

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

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input()
b=input()
print(a[::-1])
print(["NO","YES"][b==a[::-1] and a==b[::-1]])


Failing test case input:
yef
gle

Expected output:
NO


Actual output:
fey
NO


Fixed submission (verdict: Accepted):
a=input()
b=input()
print(["NO","YES"][b==a[::-1] and a==b[::-1]])

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
one = list(input())
two = list(input())
if one == two.reverse():
  print('YES')
else:
  print('NO')

Failing test case input:
spp
pps

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
one = list(input())
two = list(input())
two.reverse()
iti = "".join(one)
ni = "".join(two)
if iti == ni:
  print('YES')
else:
  print('NO')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
b = input()
if a==b[::-1]:
    print("Yes")
else:
    print("No")

Failing test case input:
fdz
hnh

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a = input()
b = input()
if a==b[::-1]:
    print("YES")
else:
    print("NO")
Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
b = input()

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

Failing test case input:
pot
top

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
a = input()
b = input()
 
print("YES" if a == b[::-1] else "NO")

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s_a = input()
s_b = input()
if s_a[0] == s_b[2] and s_a[2] == s_a[0] and s_a[1] == s_b[1]:
    print("YES")
else:
    print("NO")

Failing test case input:
pot
top

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
s_a = input()
s_b = input()
if s_a[0] == s_b[2] and s_a[2] == s_b[0] and s_a[1] == s_b[1]:
    print("YES")
else:
    print("NO")

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s1=input()
s2=input()
print('YES' if s1[::-1] is s2 else 'NO')

Failing test case input:
spp
pps

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):

s1=input()
s2=input()
print('YES' if s1[::-1] == s2 else 'NO')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S1 = list(input())
S2 = list(input())

flag = 0
for i in range(3):
  if S1[i] != S2[2-i]:
    flag = 1

if flag:
  print('No')
else:
  print('Yes')

Failing test case input:
{cf
nhg

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
S1 = list(input())
S2 = list(input())

flag = 0
for i in range(3):
  if S1[i] != S2[2-i]:
    flag = 1

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

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = input()
c_r = input()

if reversed(c) == c_r:
    print("YES")
else:
    print("NO")

Failing test case input:
pot
top

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
c = input()
c_r = input()
c = c[::-1]
if c == c_r:
    print("YES")
else:
    print("NO")

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math



a=input()
b=input()


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


Failing test case input:
eye
ele

Expected output:
NO


Actual output:
YES


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

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print('Yes' if input()==input()[::-1] else 'No')

Failing test case input:
fey
gmf

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
print('YES' if input()==input()[::-1] else 'NO')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
c = input()
if s[0] == c[0] and s[1] == c[1] and s[2] == c[2]:
  print("YES")
else:
  print("NO")

Failing test case input:
pot
top

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
s = input()
c = input()
if s[0] == c[2] and s[1] == c[1] and s[2] == c[0]:
  print("YES")
else:
  print("NO")
Problem: p03555
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
C1 = str(input())
C2 = str(input())

if C1[0] == C2[-1] and C1[1] == C2[-2] and C1[2] == C2[-3]:
    print('Yes')
else:
    print('No')

Failing test case input:
eey
ele

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
C1 = str(input())
C2 = str(input())

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

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

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

Failing test case input:
spp
pps

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):

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

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c_1=input()
c_2=input()
if c_1 == c_2[::-1]:
    print('Yes')
else:
    print('No')

Failing test case input:
rot
top

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
c_1=input()
c_2=input()
if c_1 == c_2[::-1]:
    print('YES')
else:
    print('NO')

Problem: p03555
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=list(input()),list(input())
a.reverse()
print("Yes" if a == b else "No")

Failing test case input:
fzd
hmh

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a,b=list(input()),list(input())
a.reverse()
print("YES" if a == b else "NO")

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s,t = [input() for i in range(2)]
if s[0] == t[2] and s[1] == t[1] and s[2] == t[0]:
  print("Yes")
else:
  print("No")
  

Failing test case input:
puq
rsp

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
s,t = [input() for i in range(2)]
if s[0] == t[2] and s[1] == t[1] and s[2] == t[0]:
  print("YES")
else:
  print("NO")

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
up = input()
down = input()

rev_up = up[::-1]
rev_down = down[::-1]

if rev_up == down and rev_down == up:
    print('Yes')
else:
    print('No')


Failing test case input:
b`s
ufa

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
up = input()
down = input()
 
rev_up = up[::-1]
rev_down = down[::-1]
 
if rev_up == down and rev_down == up:
    print('YES')
else:
    print('NO')

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

a=input()
b=input()
if a[0]==b[-1] and a[1]==b[1] and a[-1]==b[0]:
    print('Yes')
else:
    print('No')

Failing test case input:
rot
pot

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):

a=input()
b=input()
if a[0]==b[-1] and a[1]==b[1] and a[-1]==b[0]:
    print('YES')
else:
    print('NO')
Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
C1 = list(input())
C2 = list(input())

ans = 'Yes'

for i in range(3):
    if C1[i] == C2[-i-1]:
        continue
    else:
        ans = 'No'
print(ans)


Failing test case input:
fez
gmf

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
C1 = list(input())
C2 = list(input())

ans = 'YES'

for i in range(3):
    if C1[i] == C2[-i-1]:
        continue
    else:
        ans = 'NO'
print(ans)

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
b = input()
print("Yes" if a==b[::-1] else "No")

Failing test case input:
b`r
ufa

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a = input()
b = input()
print("YES" if a==b[::-1] else "NO")

Problem: p03555
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
s1 = input()
s2 = input()
print("Yes" if s1 == s2[::-1] and s2 == s1[::-1] else "No")

Failing test case input:
ptq
rso

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
s1 = input()
s2 = input()
print("YES" if s1 == s2[::-1] and s2 == s1[::-1] else "NO")

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


def main():
    c1 = input()
    c2 = input()

    if c1 == c2[::-1]:
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    main()

Failing test case input:
ptq
rso

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):


def main():
    c1 = input()
    c2 = input()

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

if __name__ == '__main__':
    main()

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input()
b=input()
if a[0]==b[2] and a[1]==b[1] and a[2]==b[0]:
    print("Yes")
else:
    print("No")

Failing test case input:
s`b
ave

Expected output:
NO


Actual output:
No


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

Problem: p03555
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
print('YES' if input()==reversed(input()) else 'NO')

Failing test case input:
pot
top

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
print('YES' if input()==input()[::-1] else 'NO')

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








s1 = input()
s2 = input()

if s1[0] == s2[2] and s1[1] == s2[1] and s1[2] == s2[0]:
    ans = "Yes"
else :
    ans = "No"


print(ans)

Failing test case input:
fey
gmf

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):








s1 = input()
s2 = input()

if s1[0] == s2[2] and s1[1] == s2[1] and s1[2] == s2[0]:
    ans = "YES"
else :
    ans = "NO"


print(ans)
Problem: p03555
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
up  = list(input())
down = list(input())

up.reverse()
if up == down:
    print('Yes')
else:
    print('No')



Failing test case input:
b`s
ufa

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
up  = list(input())
down = list(input())

up.reverse()
if up == down:
    print('YES')
else:
    print('NO')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys

input = sys.stdin.readline


def main():
    print("YES" if input() == input()[::-1] else "NO")


if __name__ == "__main__":
    main()


Failing test case input:
pot
top

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
def main():
    print("YES" if input() == input()[::-1] else "NO")


if __name__ == "__main__":
    main()

Problem: p03555
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s1 = input()
s2 = input()
if s1[0] == s2[2] and s1[1] == s2[1] and s1[2] == s2[0]:
  print("Yes")
else:
  print("No")

Failing test case input:
`sb
bet

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
s1 = input()
s2 = input()
if s1[0] == s2[2] and s1[1] == s2[1] and s1[2] == s2[0]:
  print("YES")
else:
  print("NO")

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = [input() for _ 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")

Failing test case input:
`sb
bet

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
c = [input() for _ 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")

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

Failing test case input:
pot
top

Expected output:
YES

Actual output:
NO


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

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
C1 = input()
C2 = input()
print(C1,C2)

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

Failing test case input:
fey
gmf

Expected output:
NO


Actual output:
fey gmf
NO


Fixed submission (verdict: Accepted):
C1 = input()
C2 = input()

if C1[0] == C2[2] and\
    C1[1] == C2[1] and\
    C1[2] == C2[0]:
        print("YES")
else:
    print("NO")
Problem: p03555
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
C = [input() for _ in range(2)]

print('Yes' if C[0][0] == C[1][2] and C[0][1] == C[1][1] and C[0][2] == C[1][0] else 'No')


Failing test case input:
`sb
bet

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
C = [input() for _ in range(2)]

print('YES' if C[0][0] == C[1][2] and C[0][1] == C[1][1] and C[0][2] == C[1][0] else 'NO')

Problem: p03555
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
C=input()+input()
print("YNEOS"[sum([1 for i in range(3)if C[i]!=C[-i-1]])::2])

Failing test case input:
quo
psr

Expected output:
NO


Actual output:
O


Fixed submission (verdict: Accepted):
C=input()+input()
print("YNEOS"[1 in[1 for i in range(3)if C[i]!=C[-i-1]]::2])

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c1 = input()
c2 = input()
if c1[0] == c2[2] and c1[2] == c2[0]:
  print("YES")
else:
  print("NO")


Failing test case input:
tab
bet

Expected output:
NO

Actual output:
YES


Fixed submission (verdict: Accepted):
c1 = input()
c2 = input()
if c1[0]==c2[2] and c1[2]==c2[0] and c1[1]==c2[1]:
  print("YES")
else:
  print("NO")

Problem: p03555
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
s1 = input()
s2 = input()
print("YES") if s1 == s2[::-1] else print("No")

Failing test case input:
s`b
aet

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
s1 = input()
s2 = input()[::-1]
print("YES") if s1 == s2 else print("NO")

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = input()
D = input()
if A[0] == D[2] and A[1] == D[1] and A[2] == D[0]:
    print("Yes")
else:
    print("No")


Failing test case input:
yef
elg

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
A = input()
D = input()
if A[0] == D[2] and A[1] == D[1] and A[2] == D[0]:
    print("YES")
else:
    print("NO")

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

Failing test case input:
tab
bet

Expected output:
NO

Actual output:
YES


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

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





if __name__ == '__main__':
    c = [list(map(str, list((input().split())))) for _ in range(2)]

    if (c[0][0][0] == c[1][0][2]) and (c[1][0][0] == c[0][0][2]) and (c[0][0][1] == c[1][0][1]):
        print('Yes')
    else:
        print('No')


Failing test case input:
efy
ele

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):





if __name__ == '__main__':
    c = [input() for _ 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')
Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
C1=input()
C2=input()
if C1==C2[::-1]:
    print('Yes')
else:
    print('No')

Failing test case input:
eey
gmf

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
C1=input()
C2=input()
if C1==C2[::-1]:
    print('YES')
else:
    print('NO')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
b = input()
for i in range(3):
    if a[i] != b[2-i]:
        print('No')
        exit()
print('Yes')

Failing test case input:
our
ssp

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a = input()
b = input()
for i in range(3):
    if a[i] != b[2-i]:
        print('NO')
        exit()
print('YES')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(input())
b = list(input())
b.reverse()
print('Yes' if a == b else 'No')

Failing test case input:
s`b
uae

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a = list(input())
b = list(input())
b.reverse()
print('YES' if a == b else 'NO')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c1 = list(input())
c2 = list(input())

print(c1, c2)
if c1 == c2:
  print('YES')
else:
  print('NO')

Failing test case input:
b`s
atf

Expected output:
NO


Actual output:
['b', '`', 's'] ['a', 't', 'f']
NO


Fixed submission (verdict: Accepted):
c1 = list(input())
c2 = list(input())
c2.reverse()

if c1 == c2:
  print('YES')
else:
  print('NO')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
r = str(input())
g = str(input())

if r == g[::-1]:
  print('Yes')
else:
  print('No')

Failing test case input:
fze
gmf

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
r = str(input())
g = str(input())

if r == g[::-1]:
  print('YES')
else:
  print('NO')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print("YES" if input() == reversed(input()) else "No")


Failing test case input:
atb
bes

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
print("YES" if input() == "".join(list(reversed(input()))) else "NO")

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
word1 = input()
word2 = input()
point= 0

for i in range(0,3):
    for j in range(2,-1,-1):
        if word1[i] == word2[j]:
            point+=1

if point == 3:
    print("YES")
else:
    print("NO")


Failing test case input:
btb
teb

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
word1 = input()
word2 = input()
point= 0

for i in range(0,3):
    if word1[i] == word2[2-i]:
            point+=1

if point == 3:
    print("YES")
else:
    print("NO")
Problem: p03555
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
data1 = input()
data2 = input()

count = len(data1) - 1
sw = 0
i = 0
j = len(data2)-1
while i <= count:
    if data1[i] == data2[j]:
        sw += 1
    i += 1
    j -= 1
if sw == len(data1):
    print("Yes")
else:
    print("No")

Failing test case input:
s`b
aet

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
data1 = input()
data2 = input()

count = 3 -1
sw = 0
i = 0
j = len(data2)-1
while i <= count:
    if data1[i] == data2[j]:
        sw += 1
    i += 1
    j -= 1
if sw == 3:
    print("YES")
else:
    print("NO")

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c1 = list(input())
c2 = list(input())

if c1[0] == c2[-1] and c1[-1] == c2[0] and c1[2] == c2[2]:
    print('YES')
else:
    print('NO')

Failing test case input:
pot
top

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
c1 = list(input())
c2 = list(input())
c1.reverse()

if c1 == c2:
    print('YES')
else:
    print('NO')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s1 = list(input())
s2 = list(input())
if reversed(s1) == s2 or reversed(s2) == s1:
    print("YES")
else:
    print("NO")

Failing test case input:
pot
top

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
s1 = input()
s2 = input()
if s1[0] == s2[2] and s1[1] == s2[1] and s1[2] == s2[0]:
    print("YES")
else:
    print("NO")

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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 c == roll_d and d == roll_c:
  print("YES")
else:
  print("NO")

Failing test case input:
pot
top

Expected output:
YES

Actual output:
NO


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

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input()
b=input()

if a[0]==b[2] and a[1]==b[1] and a[2]==b[0]:
  print('Yes')
else:
  print('No')

Failing test case input:
efy
gmf

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a=input()
b=input()

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

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print('YNEOS'[input()==input()[::-1]::2])

Failing test case input:
`tb
bes

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
print('YNEOS'[input()!=input()[::-1]::2])

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A =input()
B =input()
if A==B[::-1]:
    print("Yes")
else:
    print("No")

Failing test case input:
{cf
nhg

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
A =input()
B =input()
if A==B[::-1]:
    print("YES")
else:
    print("NO")
Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
t = input()
if s[0] == t[2] and s[1] == t[1] and s[2] == t[0]:
  print("Yes")
else:
  print("No")

Failing test case input:
pos
pot

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
t = input()
if s[0] == t[2] and s[1] == t[1] and s[2] == t[0]:
  print("YES")
else:
  print("NO")

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c1 = list(input())
c2 = list(input())

print('Yes') if (list(reversed(c1)) == c2 and list(reversed(c2)) == c1) else print('No')


Failing test case input:
eye
eel

Expected output:
NO

Actual output:
No


Fixed submission (verdict: Accepted):
c1 = list(input())
c2 = list(input())

print('YES') if (list(reversed(c1)) == c2 and list(reversed(c2)) == c1) else print('NO')

Problem: p03555
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s1 = input()
s2 = input()
if s1[0] == s2[2] and s1[1] == s2[1] and s1[2] == s2[0]:
  print("Yes")
print("No")

Failing test case input:
pos
top

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
s1 = input()
s2 = input()
if s1[0] == s2[2] and s1[1] == s2[1] and s1[2] == s2[0]:
  print("YES")
else:
  print("NO")

Problem: p03555
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
c1 = list(input())
c2 = list(input())
if c1 == reversed(c2):
    print("YES")
else:
    print("NO")

Failing test case input:
spp
pps

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
c1 = list(input())
c2 = list(input())
c2.reverse()
if c1 == c2:
    print("YES")
else:
    print("NO")

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input()
b=input()
if a[0]==b[2] and a[1]==b[1] and a[2]==b[0]:
    print('Yes')
else:
    print('No')

Failing test case input:
qos
pot

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):


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

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
t=input()
print('YNeos'[s!=t[::-1]::2])

Failing test case input:
`tb
bes

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
s=input()
t=input()
print('YNEOS'[s!=t[::-1]::2])

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





if __name__ == '__main__':
    c = [input() for _ 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')


Failing test case input:
qot
pot

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):





if __name__ == '__main__':
    c = [input() for _ 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')
Problem: p03555
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x = str(input())
y = str(input())

conditions = x[0] == y[2] and x[1] == y[1] and x[2] == y[0]

if conditions:
    print("Yes")
else:
    print("No")

Failing test case input:
rot
pot

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
x = str(input())
y = str(input())

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

Problem: p03555
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

C1 =str(input())
C2 =str(input())

if C1[0] == C2[2] and C1[1] == C2[1] and C1[2] == C2[0]:
    print('Yes')

else:
    print('No')



Failing test case input:
{cf
ghn

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):

C1 =str(input())
C2 =str(input())

if C1[0] == C2[2] and C1[1] == C2[1] and C1[2] == C2[0]:
    print('YES')

else:
    print('NO')

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = input()
y = input()
if x[0] == y[2] and x[1] == y[1] and x[2] == y[0]:
  print("Yes")
else:
  print("No")

Failing test case input:
fzd
hnh

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
x = input()
y = input()
if x[0] == y[2] and x[1] == y[1] and x[2] == y[0]:
  print("YES")
else:
  print("NO")

Problem: p03555
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
c1 = list(input())
c2 = list(input())

c1.reverse()

if c1 == c2:
    print("Yes")
else:
    print("No")

Failing test case input:
ptr
rso

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
c1 = list(input())
c2 = list(input())

c1.reverse()

if c1 == c2:
    print("YES")
else:
    print("NO")

Problem: p03555
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=input()
b=input()
if a[0]==b[2] and a[1]==b[1]:
  print("YES")
else:
  print("NO")

Failing test case input:
pos
top

Expected output:
NO


Actual output:
YES


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

Problem: p03555
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
def main():
    s1 = input()
    s2 = input()

    s2 = s2[::-1]

    print('Yes' if s1 == s2 else 'No')

if __name__ == '__main__':
    main()

Failing test case input:
quo
psr

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
def main():
    s1 = input()
    s2 = input()

    s2 = s2[::-1]

    print('YES' if s1 == s2 else 'NO')

if __name__ == '__main__':
    main()

Problem: p03555
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input()
b=input()
print(["NO","YES"][a==a[::-1] and b==b[::-1]])


Failing test case input:
pot
top

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
a=input()
b=input()
print(["NO","YES"][b==a[::-1] and a==b[::-1]])