{-# LANGUAGE BangPatterns #-}

import           Control.Monad
import           Control.Monad.Trans.State
import qualified Data.ByteString.Unsafe    as B
import qualified Data.ByteString.Char8     as C8
import           Data.Bits
import           Data.Char
import           Data.List
import           Data.Maybe

main :: IO ()
main = do
  [n] <- readInts
  print $ 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"

-- utils
type Pair = (Int, Int)

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

readPair :: IO Pair
readPair = head . unfoldr readT <$> C8.getLine
  where
    readT = runStateT $
      (,) <$> StateT (C8.readInt . C8.dropWhile isSpace)
          <*> StateT (C8.readInt . B.unsafeTail)