import math



num = int(eval(input()))

print(("Yes" if math.floor(num/100) == num%10 else "No"))
n = eval(input())

print(("Yes" if n == n[::-1] else "No"))

import math

num = int(eval(input()))
print(("Yes" if math.floor(num / 100) == num % 10 else "No"))

n = eval(input())
print(("Yes" if n == n[::-1] else "No"))

-import math - -num = int(eval(input())) -print(("Yes" if math.floor(num / 100) == num % 10 else "No")) +n = eval(input()) +print(("Yes" if n == n[::-1] else "No"))