module Main where

import           Control.Monad
import           Data.List
import           Data.Ord
import           Data.List.Split
import           Data.Array.IO
import qualified Data.Vector            as V
import           Text.Printf

main :: IO ()
main = do
  [a, b, c] <- map read . words <$> getLine :: IO [Int]
  if (min a b <= c && max a b >= c)
    then putStrLn "Yes"
    else putStrLn "No"
