100 atcoder#ABC077A. [ABC077A] Rotation
[ABC077A] Rotation
Score : points
Problem Statement
You are given a grid with rows and columns of squares. The color of the square at the -th row and -th column is represented by the character .
Write a program that prints YES
if this grid remains the same when rotated degrees, and prints NO
otherwise.
Constraints
- is a lowercase English letter.
Input
Input is given from Standard Input in the following format:
Output
Print YES
if this grid remains the same when rotated degrees; print NO
otherwise.
pot
top
YES
This grid remains the same when rotated degrees.
tab
bet
NO
This grid does not remain the same when rotated degrees.
eye
eel
NO