module Main where

import Control.Applicative
import Control.Monad
import Data.List

main :: IO ()
main = do
    ns <- getLine
    if ns == reverse ns
        then putStrLn "Yes"
        else putStrLn "No"