<gh_stars>1-10
N = input()
for i in range(10):
    S = "0" * i + N
    if S == S[::-1]:
        print("Yes")
        exit()
print("No")
N = input()
for i in range(10):
    S = "0" * i + N
    if S == S[::-1]:
        print("Yes")
        exit()
print("No")