"use strict";
    
const main = arg => {
    arg = arg.trim().split("\n");
    const A = ~~arg[0].split(" ")[0];
    const B = ~~arg[0].split(" ")[1];
    const C = ~~arg[0].split(" ")[2];
    
    const min = Math.min(A, B);
    const max = Math.max(A, B);
    
    console.log(C <= max && min <= C ? "Yes" : "No");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));