Problem:


Score : 100 points

Problem Statement

You are given a grid with 2 rows and 3 columns of squares.
The color of the square at the i-th row and j-th column is represented by the character C_{ij}.

Write a program that prints YES if this grid remains the same when rotated 180 degrees, and prints NO otherwise.

Constraints

C_{i,j}(1 \leq i \leq 2, 1 \leq j \leq 3) is a lowercase English letter.

Input

Input is given from Standard Input in the following format:

C_{11}C_{12}C_{13}
C_{21}C_{22}C_{23}

Output

Print YES if this grid remains the same when rotated 180 degrees; print NO otherwise.

Sample Input 1

pot
top

Sample Output 1

YES

This grid remains the same when rotated 180 degrees.

Sample Input 2

tab
bet

Sample Output 2

NO

This grid does not remain the same when rotated 180 degrees.

Sample Input 3

eye
eel

Sample Output 3

NO



Sample input:
pot
top


Sample output:
YES

Submission status: Wrong Answer

Solution code:
c=[]
for i in range(2):
    C=list(input())
    c.append(C)

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

Submission status: Wrong Answer

Solution code:
c=[]
for i in range(2):
    C=list(input())
    c.append(C)

if c[0][1]==c[1][1] and c[0]!=c[1]:
    c[0].sort()
    c[1].sort()
    print('YES' if c[0]==c[1] else 'NO')
    
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
c=[]
for i in range(2):
    C=list(input())
    c.append(C)

if c[0][1]==c[1][1]:
    c[0].sort()
    c[1].sort()
    print('YES' if c[0]==c[1] else 'NO')
    
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
import sys

input = sys.stdin.readline


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


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
s = input()
t = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x=input()
y=input()
x1=list(x)
x2=list(y)

if x1[0]==x2[2] and x1[1]==x2[1] and x1[2]==x2[0]:
  print('Yes')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
x=input()
y=input()
x1=list(x)
x2=list(y)

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

Submission status: Wrong Answer

Solution code:
x=input()
y=input()
x1=list(x)
x2=list(y)

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
import math
from fractions import gcd
# import queue
# from collections import Counter
# from itertools import accumulate
# from functools import reduce

def lcm(a, b):
    return a * b // gcd(a, b)

def combination_count(n, r):
    return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))

def permutations_count(n, r):
    return math.factorial(n) // math.factorial(n - r)

big_prime = 1000000007

"""
# 標準入力取得
## 文字列
 =  sys.stdin.readline().rstrip()
 =  list(sys.stdin.readline().rstrip())

## 数値
 =  int(sys.stdin.readline())
 =  map(int, sys.stdin.readline().split())
 =  list(map(int, sys.stdin.readline().split()))
 =  [list(map(int,list(sys.stdin.readline().split()))) for i in range(N)]
"""


S1 =  sys.stdin.readline().rstrip()
S2 =  sys.stdin.readline().rstrip()

if S1[::-1] == S2:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
s = input()
c = input()
if s[0] == c[0] and s[1] == c[1] and s[2] == c[2]:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
print('YNeos'[input()!=input()[::-1]::2])

Submission status: Wrong Answer

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

for i in range(0,len(c1)):
    if c1[i] != c2[-(i+1)]:
        print('NO')
        exit()
print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
c1 = list(input())
c2 = list(input())
print('YES' if c1.reverse() == c2 else 'NO')

Submission status: Wrong Answer

Solution code:
c1 = list(input())
c2 = list(input())
print('YES' if c1 == c2.reverse() else 'NO')

Submission status: Wrong Answer

Solution code:
c1 = list(input())
c2 = list(input())
print('Yes' if c1 == c2.reverse() else 'No')

Submission status: Wrong Answer

Solution 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)])
  print(roll_c)
  print(roll_d)
if list(c) == roll_d and list(d) == roll_c:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution 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 c == roll_d and d == roll_c:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
s = input()[::-1]
t = input()
if s ==t:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c=input()
d,e,f=input()
if a==f and b==e and c==d:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
r = str(input())
g = str(input())

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

Submission status: Wrong Answer

Solution code:
r = str(input())
g = str(input())

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

Submission status: Wrong Answer

Solution code:
s1 = input()
s2 = input()
print("Yes" if s1 == s2[::-1] and s2 == s1[::-1] else "No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
c1 = input()
c2 = input()
if c1[0] == c2[2] and c1[2] == c2[0]:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
Ca=input()
Cb=input()
if Ca[0]==Cb[2] and Ca[1]==Cb[1] and Ca[2]==Cb[0]:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
print('Yes' if input()==input()[::-1] else 'No')

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a=input()
if a[0]==a[2]:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
one = list(input())
two = list(input())
if one == two.reverse():
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
l=open(0).read()
m=l[::-1]
print(["NO","YES"][l==m])

Submission status: Wrong Answer

Solution code:
l=open(0).read()
m=l[::-1]
print(["NO","YES"][l==m])

Submission status: Wrong Answer

Solution code:
l=open(0).read()
m=l[::-1]
print(["no","yes"][l==m])

Submission status: Wrong Answer

Solution code:
C1 = [c1 for c1 in input()]
C2 = [c2 for c2 in input()]
if C1 == reversed(C2):
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
c1 = list(input())
c2 = list(input())
c2.reverse()
print(c1, c2)
if c1 == c2:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
c1 = list(input())
c2 = list(input()).reverse()

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

Submission status: Wrong Answer

Solution code:
l_1 = input()
l_2 = input()

if l_2 == ''.join([l_1[-i-1] for i in range(len(l_1))]):
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
C1=input()
C2=input()
l1=list(C1)
l2=list(C2)
if l1[0]==l2[2] and l1[1]==l2[1] and l1[2]==l2[0]:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
s=input()
m=[s[0],s[1],s[2]]
a=m.reverse()
if str(a)==input():
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
a = input().split()
b = input().split()
c = list(reversed(b))

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()
b = input()
c = reversed(b)

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if c1.reverse() == c2:
  print("YES")
else:
  print("No")

Submission status: Wrong Answer

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

if c1.reverse() == c2:
  print("YES")

Submission status: Wrong Answer

Solution code:
x = str(input())
y = str(input())
if x == y[::-1]:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

a_rev = reversed(a)

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

Submission status: Wrong Answer

Solution code:
S1 = input()
S2 = input()
if S1[0] == S2[2] and S1[1] == S2[1] and S1[2] == S2[0]: print('Yes')
else: print('No')

Submission status: Wrong Answer

Solution code:
S1 = input()
S2 = input()
newS2 = S2[2] + S2[1] + S2[0]
if S1 == newS2: print('Yes')
else: print('No')

Submission status: Wrong Answer

Solution code:
l=input()
m=input()

print("YES" if l[0]==m[2] and l[1]==m[1] and l[2]==m[0] else "No")

Submission status: Wrong Answer

Solution code:
x=input()
y=input()

if x[1]!=y[1]:
    print("NO")

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

Submission status: Wrong Answer

Solution code:
# sys.stdin.readline()
import sys
import math
input = sys.stdin.readline

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
c = [input() for i in range(2)]
a = "".join(list(reversed(c[0])))
if a == c[1]:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
s = input()
t = reversed(input())
if(s == t):
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution 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] == a[-1] and a[1] == a[-2] and a[2] == a[-3]:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
abc = list(str(input()))
efg = list(str(input()))
if abc[0] == efg[2] and abc[1] == efg[1] and abc[2] == efg[0]:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a = list(str(input()))
e = list(str(input()))
if a[0] == e[2] and a[1] == e[1] and a[2] == e[0]:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b = [input() for i in range(2)]
if a[0] == b[2] and a[2] == b[0]:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
a = str(input())
b = str(input())

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

Submission status: Wrong Answer

Solution code:
c1 = input()
c2 = input()
res = "YES" if c1[0] == c2[2] and c1[0] == c2[2] and c1[1] == c2[1] else "NO"
print(res)

Submission status: Wrong Answer

Solution code:
c1 = input()
c2 = input()
res = "YES" if c1[0] == c2[2] and c1[0] == c2[2] else "NO"
print(res)

Submission status: Wrong Answer

Solution code:
c1=input()
c2=input()
c1_re=c1[::-1]
c2_re=c2[::-1]
if c2_re==c1 and c1_re==c2:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import numpy as np

a = input()
b = input()
 
X =[list(a),list(b)]
X = np.array(X)
X1 = np.rot90(X, k=1)
X2 = np.rot90(X1, k=1)
 
if (X == X2).any():
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
import numpy as np

a = input()
b = input()
 
X =[list(a),list(b)]
X = np.array(X)
X1 = np.rot90(X, k=1)
X2 =np.rot90(X1, k=1)
 
if (X == X2).any():
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
l1 = list(input())
l2 = list(input())

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

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

Submission status: Wrong Answer

Solution code:
l1 = list(input())
l2 = list(input())

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

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

Submission status: Wrong Answer

Solution code:
c = [input() for i in range(2)]
ans = 'No'
if c[0][0] == c[1][2] and c[0][1] == c[1][1] and c[0][2] == c[1][0]:
    ans = 'Yes'
print(ans)

Submission status: Wrong Answer

Solution code:
a = input()
b = input()[::-1]
if a==b:
  print('YES')
else:
  print('N0')

Submission status: Wrong Answer

Solution code:
c=input()
C=input()
if c[0]==C[2] and c[2]==C[0]:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
a,b=open(0);print('YNEOS'[a!=b[::-1]::2])

Submission status: Wrong Answer

Solution code:
c = list(input())

if c[::-1] == list(input()):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

C1a = C1[2]+C1[1]+C1[0]
C2a = C2[2]+C2[1]+C2[0]

if C1 == C2a and C2 == C1a:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
t = input()
if t[::-1] == s:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print('YNEOS'[input()==input()[::-1]::2])

Submission status: Wrong Answer

Solution code:
print("YES" if input() == "".join(list(reversed(input()))) else "No")

Submission status: Wrong Answer

Solution code:
print("YES" if input() == reversed(input()) else "No")

Submission status: Wrong Answer

Solution code:
def rotation(C: list) -> bool:
    for n in range(2):
        if C[0][n] != C[1][2-n]:
            return False
    return True


if __name__ == "__main__":
    C = [list(map(str, input())) for _ in range(2)]
    yes = rotation(C)
    print('YES' if yes else 'NO')

Submission status: Wrong Answer

Solution code:
a = []
b = []
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")

Submission status: Wrong Answer

Solution code:
s=str(input())
t=str(input())
t=t[::-1]
if s==t:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()
b = input()
for i in range(3):
    if a[i] != b[2-i]:
        print('No')
        exit()
print('Yes')

Submission status: Wrong Answer

Solution code:
S = sorted(input(), reverse = True)
T = input()
ans = "NO"
if(S == T):
  ans = "YES"
print(ans)

Submission status: Wrong Answer

Solution code:
A = input()
B = input()
if A == B[::-1]:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print("YNEOS"[input()!=input()[::-1]])

Submission status: Wrong Answer

Solution code:
n = input()
m = input()

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

Submission status: Wrong Answer

Solution code:
s1=input()
s2=input()
if s1[0] == s2[2] and s1[1]==s2[1] and s1[2]==s2[0]:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,y =[str(input()) for i in range(2)]
x=sorted(x)
y=sorted(y)
if x==y:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
  a = input()
  b = input()
  
  if a[0] == b[2]:
    if a[1] == b[1]:
      if a[2] == b[0]:
        print('Yes')
        return
  print('No')
  return

if __name__ == '__main__':
  main()

Submission status: Wrong Answer

Solution code:
from sys import stdin
a = stdin.readline().rstrip()
b = stdin.readline().rstrip()
if b[::-1] == a:
 print('Yes')
else:
 print('No')

Submission status: Wrong Answer

Solution code:
a=input()
b=input()
print(a[::-1])
print(["NO","YES"][b==a[::-1] and a==b[::-1]])

Submission status: Wrong Answer

Solution code:
a=input()
b=input()
print(["NO","YES"][a==a[::-1] and b==b[::-1]])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
c = [list(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')

Submission status: Wrong Answer

Solution code:
c=[[i for i in input()] for j 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")

Submission status: Wrong Answer

Solution code:
a = input()
b = input()
b = ''.join([i for i in reversed(b)])
if a == b:
        print('Yes')
else:
        print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def same(C):
	for i in range(2):
		for j in range(3):
			if C[i][j] != C[-i-1][-j-1]:
				return False
	return True

C = []
C.append(raw_input())
C.append(raw_input())
print "Yes" if same(C) else "No"

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = input(), input()
print('Yes' if a == b[::-1] else 'No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = list(input())
b = list(input())

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

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
T = input()

ans = "Yes"

if S[0] != T[2]:
    ans = "No"

if S[1] != T[1]:
    ans = "No"

if S[2] != T[0]:
    ans = "No"

print(ans)

Submission status: Wrong Answer

Solution code:
M = input()
N = input()
if (M[0] == N[2] and M[2] == N[0]):
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
x = input()
y = input()
if x[0] == y[2] and x[1] == y[1] and x[2] == y[0]:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
C1=input()
C2=input()
if C1==C2[::-1]:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
C1=input()
C2=input()
ans='Yes'
for i in range(3):
    if C1[i]!=C2[2-i]:
        ans='No'
print(ans)

Submission status: Wrong Answer

Solution code:
s1 = input()
s2 = input()

if(s1[0] == s2[2]):
    if(s1[1] == s2[1]):
        if(s1[2] == s2[0]):
            print("Yes")
        else:
            print("No")
    else:
        print("No")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a=input();b=input();print("YNEOS"[a[::-1]==b::2])

Submission status: Wrong Answer

Solution code:
a=input();b=input();print("YNEOS"[a[::-1]==b])

Submission status: Wrong Answer

Solution code:
a=input();b=input();print("YNEOS"[a[::-1]!=b])

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A = list(input())
B = list(input())
if A[2]==B[0] and A[1]==B[1] and A[2]==B[0] :
    print("YES")
else :
    print("NO")

Submission status: Wrong Answer

Solution code:
c = []
for i in range(2):
	c.append(input())

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

Submission status: Wrong Answer

Solution code:
# cook your dish here
a=list(input())
b=list(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A = list(input())
B = list(input())
for i in range(3) :
    if A[0] == B[2] and A[1] == B[1] and A[2] == B[0] :
        print("Yes")
        break
    else :
        print("No")
        break

Submission status: Wrong Answer

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

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

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
print("YES" if input()==input()[::-1] else "N0")

Submission status: Wrong Answer

Solution code:
#coding:utf-8
n1=str(input())
n2=str(input())
if(n1[0]==n2[2] and n1[2]==n2[0]):
  if(n1[1]==n2[1]):
    print("YES")
else:print("NO")

Submission status: Wrong Answer

Solution code:
#coding:utf-8
n1=str(input())
n2=str(input())
if(n1[0]==n2[2] and n1[2]==n2[0]):
  print("YES")
else:print("NO")

Submission status: Wrong Answer

Solution code:
A=list(input())
B=list(input())

B.reverse()

if A==B:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A=input()
B=input()
if A[:-1]==B:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
C1=input().strip()
C2=input().strip()
print("No Yes".split()[C1==C2[::-1]])

Submission status: Wrong Answer

Solution code:
l = input()
m = input()
res = 'Yes'


if l[0] != m[2]:
    res = 'No'
    
if l[1] != m[1]:
    res = 'No'
    
if l[2] != m[0]:
    res = 'No'
        
print(res)

Submission status: Wrong Answer

Solution code:
l = input()
m = input()
res = 'Yes'

for i in range(3):
    if l[i] != m[2-i]:
        res = 'No'
        
print(res)

Submission status: Wrong Answer

Solution code:
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')

Submission status: Wrong Answer

Solution code:
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')

Submission status: Wrong Answer

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

if strlist1[0] == strlist2[2] and strlist1[1] == strlist2[1] and strlist1[2] == strlist2[0]:
  print("YES")
else:
  print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
print('Yes' if input() == input()[::-1] else 'No')

Submission status: Wrong Answer

Solution code:
S=list(input())
T=list(reversed(input()))
print(S,T)
print(["NO","YES"][S==T])

Submission status: Wrong Answer

Solution code:
S1 = input()
S2 = input()
if S1[0] == S2[2] and S1[1] ==S2[1]:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()
b = input()
c = a[::-1]
d = b[::-1]

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
c = input()
c_r = input()
c = c[::-1]
if c == c_r:
    print("YES")
else:
    print("NO")
    
print(c)
print(c_r)

Submission status: Wrong Answer

Solution code:
c = input()
c_r = input()

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

Submission status: Wrong Answer

Solution code:
c = input()
c_r = input()

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

Submission status: Wrong Answer

Solution code:
work1 = input()
work2 = input()
if work1[0] == work2[2]:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

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

# AtCoder Beginner Contest
# Problem A

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

Submission status: Wrong Answer

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

# AtCoder Beginner Contest
# Problem A

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

Submission status: Wrong Answer

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