output_description: Print `YES` if this grid remains the same when rotated 180 degrees; print `NO`
  otherwise.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      C_{11}C_{12}C_{13}
      C_{21}C_{22}C_{23}
attempt: import functools
  
  import os
  
  INF = float("inf")
  
  
  def inp():
      return int(input())
  
  
  def inpf():
      return float(input())
  
  
  def inps():
      return input()
  
  
  def inl():
      return list(map(int, input().split()))
  
  
  def inlf():
      return list(map(float, input().split()))
  
  
  def inls():
      return input().split()
  
  
  def inpm(line):
      return [inp() for _ in range(line)]
  
  
  def inpfm(line):
      return [inpf() for _ in range(line)]
  
  
  def inpsm(line):
      return [inps() for _ in range(line)]
  
  
  def inlm(line):
      return [inl() for _ in range(line)]
  
  
  def inlfm(line):
      return [inlf() for _ in range(line)]
  
  
  def inlsm(line):
      return [inls() for _ in range(line)]
  
  
  def debug(fn):
      if not os.getenv("LOCAL"):
          return fn
  
      @functools.wraps(fn)
      def wrapper(*args, **kwargs):
          print(
              "DEBUG: {}({}) -> ".format(
                  fn.__name__,
                  ", ".join(
                      list(map(str, args))
                      + ["{}={}".format(k, str(v)) for k, v in kwargs.items()]
                  ),
              ),
              end="",
          )
          ret = fn(*args, **kwargs)
          print(ret)
          return ret
  
      return wrapper
  
  
  s1 = input()
  s2 = input()
  if s1[::-1] == s2:
      print("YES")
  else:
      print("NO")
  
problem_description: Statement
  
  You are given a grid with 2 rows and 3 columns of squares. The color of the
  square at the i-th row and j-th column is represented by the character C_{ij}.
  
  Write a program that prints `YES` if this grid remains the same when rotated
  180 degrees, and prints `NO` otherwise.
samples: [{"input": "pot\n    top", "output": "YES\n    \n\nThis grid remains the same when rotated 180 degrees.\n\n* * *"}, {"input": "tab\n    bet", "output": "NO\n    \n\nThis grid does not remain the same when rotated 180 degrees.\n\n* * *"}, {"input": "eye\n    eel", "output": "NO"}]