
#include<stdlib.h>
int main (){
	int A;
	int B;
	int C;
    scanf("%d",&A);
	scanf("%d",&B);
	scanf("%d",&C);
    
if(-100<=A,B,C<=100&A<C&B<C){
	printf("Yes\n");
}   
     else{
     	 if(A,B,C>100&-100>A,B,C&A>C&C>B){
	 	printf("No\n");
	 }
	
	 }
system("pause");
    return 0;   

}
