import Control.Applicative

main :: IO ()
main = do  
  x <- getInts
  let a = x !! 0 - x !! 1
      b = x !! 1 - x !! 2
  if a < 0 && b < 0 then putStrLn "Yes"
  else putStrLn "No"




getInts = do 
  x <- getLine 
  let y = (map$toInt)$words x
  return y

toInt :: (String -> Int)
toInt x = read x :: Int
