s = input()t = input()ans = s[::-1]if ans == t: print("YES")else: print("NO")
code code
NO
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!