AtCoder Beginner Contest 077
A
Rotation
AtCoder
⌀ 0
原题
←B →
翻译中…

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.

翻译中…

样例

Input #1
pot
top
Output #1
YES
This grid remains the same when rotated $180$ degrees.
Input #2
tab
bet
Output #2
NO
This grid does not remain the same when rotated $180$ degrees.
Input #3
eye
eel
Output #3
NO
题目信息
题号
abc077_a
时间限制
2 s
内存限制
256 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。