import java.util.Scanner;

class Main {

	public static void main(String[] args) {

		int a,b,c;

		Scanner stdIn = new Scanner(System.in);

		a = Integer.parseInt(stdIn.next());
		b = Integer.parseInt(stdIn.next());
		c = Integer.parseInt(stdIn.next());

		if(c > b && c > a) {
			if(b > a) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		} else {
			System.out.println("No");
		}
	}
} import java.util.Scanner; Scanner java.util class Main {

	public static void main(String[] args) {

		int a,b,c;

		Scanner stdIn = new Scanner(System.in);

		a = Integer.parseInt(stdIn.next());
		b = Integer.parseInt(stdIn.next());
		c = Integer.parseInt(stdIn.next());

		if(c > b && c > a) {
			if(b > a) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		} else {
			System.out.println("No");
		}
	}
} Main public static void main(String[] args) {

		int a,b,c;

		Scanner stdIn = new Scanner(System.in);

		a = Integer.parseInt(stdIn.next());
		b = Integer.parseInt(stdIn.next());
		c = Integer.parseInt(stdIn.next());

		if(c > b && c > a) {
			if(b > a) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		} else {
			System.out.println("No");
		}
	} main {

		int a,b,c;

		Scanner stdIn = new Scanner(System.in);

		a = Integer.parseInt(stdIn.next());
		b = Integer.parseInt(stdIn.next());
		c = Integer.parseInt(stdIn.next());

		if(c > b && c > a) {
			if(b > a) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		} else {
			System.out.println("No");
		}
	} int a a b b c; c Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) a = Integer.parseInt(stdIn.next()) a Integer.parseInt(stdIn.next()) Integer.parseInt Integer stdIn.next() stdIn.next stdIn b = Integer.parseInt(stdIn.next()) b Integer.parseInt(stdIn.next()) Integer.parseInt Integer stdIn.next() stdIn.next stdIn c = Integer.parseInt(stdIn.next()) c Integer.parseInt(stdIn.next()) Integer.parseInt Integer stdIn.next() stdIn.next stdIn if(c > b && c > a) {
			if(b > a) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		} else {
			System.out.println("No");
		} c > b && c > a c > b c b c > a c a {
			if(b > a) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		} if(b > a) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			} b > a b a {
				System.out.println("Yes");
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
				System.out.println("No");
			} System.out.println("No") System.out.println System.out System System.out "No" {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" String[] args args
import java.util.Scanner;

class Main {

	public static void main(String[] args) {

		int a,b,c;

		Scanner stdIn = new Scanner(System.in);

		a = Integer.parseInt(stdIn.next());
		b = Integer.parseInt(stdIn.next());
		c = Integer.parseInt(stdIn.next());

		if(c > b && c > a) {
			if(b > a) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		} else {
			System.out.println("No");
		}
	}
}