module Main where

import Control.Monad

main :: IO()
main = do
  inputNum <- read <$> getLine
  putStrLn . solve $ inputNum

solve :: Int -> String
solve num
  | num == (read . reverse . show $ num)  = "Yes"
  | otherwise                             = "No"
