import java.util.Scanner;

class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int a,b,c;
		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();
		
		String str;
		//c???????????§??????
		if (a < c){
			if (b < c){
				if (a < b){
					str = "Yes";
				}else{str = "No";}
			}else{str = "No";}
		}else{str = "No";}
		
		System.out.println(str);
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int a,b,c;
		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();
		
		String str;
		//c???????????§??????
		if (a < c){
			if (b < c){
				if (a < b){
					str = "Yes";
				}else{str = "No";}
			}else{str = "No";}
		}else{str = "No";}
		
		System.out.println(str);
	}
} Main public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int a,b,c;
		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();
		
		String str;
		//c???????????§??????
		if (a < c){
			if (b < c){
				if (a < b){
					str = "Yes";
				}else{str = "No";}
			}else{str = "No";}
		}else{str = "No";}
		
		System.out.println(str);
	} main {
		Scanner scan = new Scanner(System.in);
		int a,b,c;
		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();
		
		String str;
		//c???????????§??????
		if (a < c){
			if (b < c){
				if (a < b){
					str = "Yes";
				}else{str = "No";}
			}else{str = "No";}
		}else{str = "No";}
		
		System.out.println(str);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a a b b c; c a = scan.nextInt() a scan.nextInt() scan.nextInt scan b = scan.nextInt() b scan.nextInt() scan.nextInt scan c = scan.nextInt() c scan.nextInt() scan.nextInt scan String str; str if (a < c){
			if (b < c){
				if (a < b){
					str = "Yes";
				}else{str = "No";}
			}else{str = "No";}
		}else{str = "No";} a < c a c {
			if (b < c){
				if (a < b){
					str = "Yes";
				}else{str = "No";}
			}else{str = "No";}
		} if (b < c){
				if (a < b){
					str = "Yes";
				}else{str = "No";}
			}else{str = "No";} b < c b c {
				if (a < b){
					str = "Yes";
				}else{str = "No";}
			} if (a < b){
					str = "Yes";
				}else{str = "No";} a < b a b {
					str = "Yes";
				} str = "Yes" str "Yes" {str = "No";} str = "No" str "No" {str = "No";} str = "No" str "No" {str = "No";} str = "No" str "No" System.out.println(str) System.out.println System.out System System.out str String args[] args
import java.util.Scanner;

class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int a,b,c;
		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();
		
		String str;
		//c???????????§??????
		if (a < c){
			if (b < c){
				if (a < b){
					str = "Yes";
				}else{str = "No";}
			}else{str = "No";}
		}else{str = "No";}
		
		System.out.println(str);
	}
}