import sys

pagos=0

lines = sys.stdin.readlines()

for linea in lines:

    c = linea.split()

    c = list(map(str,c))

list(c)

p = c[0]

texto = p

rever = texto[::-1]

if texto == rever:

    print("Yes")

else:

    print("No")
"""MILOY"""

x=eval(input())

p=len(x)

n=int(x)

s=0

c=int(x)

for i in range(p):

    

    rem=n%10

    n=n/10

    s=(s*10)+int(rem)

    n=int(n)

    

    

   

   

if (c==s):

    print('Yes')

else:

    print('No')

    
import sys

pagos = 0
lines = sys.stdin.readlines()
for linea in lines:
    c = linea.split()
    c = list(map(str, c))
list(c)
p = c[0]
texto = p
rever = texto[::-1]
if texto == rever:
    print("Yes")
else:
    print("No")

"""MILOY"""
x = eval(input())
p = len(x)
n = int(x)
s = 0
c = int(x)
for i in range(p):
    rem = n % 10
    n = n / 10
    s = (s * 10) + int(rem)
    n = int(n)
if c == s:
    print("Yes")
else:
    print("No")

-import sys - -pagos = 0 -lines = sys.stdin.readlines() -for linea in lines: -    c = linea.split() -    c = list(map(str, c)) -list(c) -p = c[0] -texto = p -rever = texto[::-1] -if texto == rever: +"""MILOY""" +x = eval(input()) +p = len(x) +n = int(x) +s = 0 +c = int(x) +for i in range(p): +    rem = n % 10 +    n = n / 10 +    s = (s * 10) + int(rem) +    n = int(n) +if c == s: