import java.util.Scanner;

class Range {
	
	private boolean getRange(int n1, int n2, int n3) {
		return (n1 < n2) ? (n2 < n3 ? true : false) : false; 
	}
	
	public String compare(int n1, int n2, int n3) {
		if (getRange(n1, n2, n3)) {
			return "Yes";
		}
		return "No";
	}
}

public class Main {

	
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String result = new Range().compare(scan.nextInt(), scan.nextInt(), scan.nextInt());
		System.out.println(result);

	}

} import java.util.Scanner; Scanner java.util class Range {
	
	private boolean getRange(int n1, int n2, int n3) {
		return (n1 < n2) ? (n2 < n3 ? true : false) : false; 
	}
	
	public String compare(int n1, int n2, int n3) {
		if (getRange(n1, n2, n3)) {
			return "Yes";
		}
		return "No";
	}
} Range private boolean getRange(int n1, int n2, int n3) {
		return (n1 < n2) ? (n2 < n3 ? true : false) : false; 
	} getRange {
		return (n1 < n2) ? (n2 < n3 ? true : false) : false; 
	} return (n1 < n2) ? (n2 < n3 ? true : false) : false; (n1 < n2) ? (n2 < n3 ? true : false) : false (n1 < n2) n1 n2 (n2 < n3 ? true : false) n2 < n3 n2 n3 true false false int n1 n1 int n2 n2 int n3 n3 public String compare(int n1, int n2, int n3) {
		if (getRange(n1, n2, n3)) {
			return "Yes";
		}
		return "No";
	} compare {
		if (getRange(n1, n2, n3)) {
			return "Yes";
		}
		return "No";
	} if (getRange(n1, n2, n3)) {
			return "Yes";
		} getRange(n1, n2, n3) getRange n1 n2 n3 {
			return "Yes";
		} return "Yes"; "Yes" return "No"; "No" int n1 n1 int n2 n2 int n3 n3 public class Main {

	
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String result = new Range().compare(scan.nextInt(), scan.nextInt(), scan.nextInt());
		System.out.println(result);

	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String result = new Range().compare(scan.nextInt(), scan.nextInt(), scan.nextInt());
		System.out.println(result);

	} main {
		Scanner scan = new Scanner(System.in);
		String result = new Range().compare(scan.nextInt(), scan.nextInt(), scan.nextInt());
		System.out.println(result);

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String result = new Range().compare(scan.nextInt(), scan.nextInt(), scan.nextInt()); result new Range().compare(scan.nextInt(), scan.nextInt(), scan.nextInt()) new Range().compare new Range() scan.nextInt() scan.nextInt scan scan.nextInt() scan.nextInt scan scan.nextInt() scan.nextInt scan System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

	
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String result = new Range().compare(scan.nextInt(), scan.nextInt(), scan.nextInt());
		System.out.println(result);

	}

} public class Main {

	
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String result = new Range().compare(scan.nextInt(), scan.nextInt(), scan.nextInt());
		System.out.println(result);

	}

} Main
import java.util.Scanner;

class Range {
	
	private boolean getRange(int n1, int n2, int n3) {
		return (n1 < n2) ? (n2 < n3 ? true : false) : false; 
	}
	
	public String compare(int n1, int n2, int n3) {
		if (getRange(n1, n2, n3)) {
			return "Yes";
		}
		return "No";
	}
}

public class Main {

	
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String result = new Range().compare(scan.nextInt(), scan.nextInt(), scan.nextInt());
		System.out.println(result);

	}

}
