LearnPy Hub
← Arena
EasyRating 800

Mirror Translation

In a mirror language, each word is written backwards. Given a word and its translation, print YES if the translation is correct.

Input

Two lines, each a word.

Output

YES or NO.

Sample 1

Input
code
edoc
Output
YES

Sample 2

Input
abb
aba
Output
NO
solution.py
Output appears here
Mirror Translation · Python Arena problem · LearnPy Hub