from sys import stdin

import math

import bisect

import heapq

import numpy as np

from math import factorial



s = stdin.readline().rstrip()

t = stdin.readline().rstrip()



if s[::-1] == t:

    print("YES")

else:

    print("NO")
from sys import stdin

from sys import setrecursionlimit

setrecursionlimit(10 ** 7)



s = eval(input())

t = input()[::-1]



if s == t:

    print("YES")

else:

    print("NO")
from sys import stdin
import math
import bisect
import heapq
import numpy as np
from math import factorial

s = stdin.readline().rstrip()
t = stdin.readline().rstrip()
if s[::-1] == t:
    print("YES")
else:
    print("NO")

from sys import stdin
from sys import setrecursionlimit

setrecursionlimit(10**7)
s = eval(input())
t = input()[::-1]
if s == t:
    print("YES")
else:
    print("NO")

-import math -import bisect -import heapq -import numpy as np -from math import factorial +from sys import setrecursionlimit -s = stdin.readline().rstrip() -t = stdin.readline().rstrip() -if s[::-1] == t: +setrecursionlimit(10**7) +s = eval(input()) +t = input()[::-1] +if s == t: