<filename>atcoder/abc077/a.py
#!/usr/bin/env python3
# https://abc077.contest.atcoder.jp/tasks/abc077_a
s = input()
t = input()
if s[0] == t[2] and s[1] == t[1] and s[2] == t[0]: print('YES')
else: print('NO')

<filename>atcoder/abc077/a.py
#!/usr/bin/env python3
# https://abc077.contest.atcoder.jp/tasks/abc077_a
s = input()
t = input()
if s[0] == t[2] and s[1] == t[1] and s[2] == t[0]: print('YES')
else: print('NO')

#!/usr/bin/env python3 # https://abc077.contest.atcoder.jp/tasks/abc077_a