N = input()



if N == N[::-1]:

    print("Yes")

else:

    print("No")
N = input()

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

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

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