import qualified Data.ByteString.Char8 as BC
import Data.Maybe (fromJust)
import Data.List

solve :: String -> String
solve n
    | n1 == n3 = "Yes"
    | otherwise = "No"
    where
        n1 = n!!0
        n3 = n!!2


main :: IO ()
main = do
    n <- getLine
    putStrLn $ solve n
