#abc077a. [abc077_a]Rotation

[abc077_a]Rotation

Problem Statement

You are given a grid with 22 rows and 33 columns of squares. The color of the square at the ii-th row and jj-th column is represented by the character CijC_{ij}.

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

Constraints

  • Ci,j(1leqileq2,1leqjleq3)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:

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

Output

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


Sample Input 1

pot
top

Sample Output 1

YES

This grid remains the same when rotated 180180 degrees.


Sample Input 2

tab
bet

Sample Output 2

NO

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


Sample Input 3

eye
eel

Sample Output 3

NO