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

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


range x y
  | x > y = [y..x]
  | otherwise = [x..y]
main :: IO ()
main = do
  a_c <- getInts
  print $ filter (== (a_c !! 2)) (range (a_c !! 0) (a_c !! 1))
  if (filter (== (a_c !! 2)) (range (a_c !! 0) (a_c !! 1))) != [] then putStrLn "Yes"
        else putStrLn "No"
