import qualified Data.ByteString.Char8     as C8
import           Data.Maybe

main :: IO ()
main = do
  [n] <- readInts
  putStrLn $ solve n

solve :: Int -> String
solve = pretty . cmp . show

cmp :: String -> Bool
cmp cs = (cs !! 0) == cs !! 2

pretty :: Bool -> String
pretty b = if b then "Yes" else "No"

readInts :: IO [Int]
readInts = map (fst . fromJust . C8.readInt) . C8.words <$> C8.getLine