n=int(eval(input()))

if n//100==n%10:

    print("Yes")

else:

    print("No")
n=eval(input())

if n[0]==n[2]:

    print("Yes")

else:

    print("No")
n = int(eval(input()))
if n // 100 == n % 10:
    print("Yes")
else:
    print("No")

n = eval(input())
if n[0] == n[2]:
    print("Yes")
else:
    print("No")

-n = int(eval(input())) -if n // 100 == n % 10: +n = eval(input()) +if n[0] == n[2]: