100 atcoder#ABC077A. [ABC077A] Rotation

[ABC077A] Rotation

Score : 100100 points

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(1i2,1j3)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.

pot
top
YES

This grid remains the same when rotated 180180 degrees.

tab
bet
NO

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

eye
eel
NO