{-# LANGUAGE ScopedTypeVariables, LambdaCase #-}

import qualified Data.List as List
import qualified Data.Set as Set

main :: IO ()
main = do
    [a, _, b]<- getLine
    putStrLn $ if a == b then "Yes" else "No"