import java.lang.Math.max
import java.lang.Math.min
import java.util.*

fun main(args: Array<String>) {
    val s = Scanner(System.`in`)
    val a = s.nextInt()
    val b = s.nextInt()
    val c = s.nextInt()

    val min = min(a, min(b, c))
    val max = max(a, max(b, c))
    val ret = if (min == c || max == c) "No" else "Yes"
    
    println(ret)
}