import java.util.*;
public class Main {

    public static void main(String[] args) {
        Scanner stdIn =new Scanner(System.in);
        int a,b,c;
        a = stdIn.nextInt();
        b = stdIn.nextInt();
        c = stdIn.nextInt();
        if (a < b && b < c) {
            System.out.println("Yes");
        }
        if (a > b && b > c){
            System.out.println("No");
        }
        if (a < b && b > c){
            System.out.println("No");
        }
        if (a > b && b < c){
            System.out.println("No");
        }
        if (a == b && b < c){
            System.out.println("No");
        }
        if (a < b && b ==c){
            System.out.println("No");
        }
        if (a == b && b > c){
            System.out.println("No");
        }
        if (a > b && b ==c){
            System.out.println("No");
        }
        if (a == b && b == c){
            System.out.println("No");
        }

    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner stdIn =new Scanner(System.in);
        int a,b,c;
        a = stdIn.nextInt();
        b = stdIn.nextInt();
        c = stdIn.nextInt();
        if (a < b && b < c) {
            System.out.println("Yes");
        }
        if (a > b && b > c){
            System.out.println("No");
        }
        if (a < b && b > c){
            System.out.println("No");
        }
        if (a > b && b < c){
            System.out.println("No");
        }
        if (a == b && b < c){
            System.out.println("No");
        }
        if (a < b && b ==c){
            System.out.println("No");
        }
        if (a == b && b > c){
            System.out.println("No");
        }
        if (a > b && b ==c){
            System.out.println("No");
        }
        if (a == b && b == c){
            System.out.println("No");
        }

    }
} Main public static void main(String[] args) {
        Scanner stdIn =new Scanner(System.in);
        int a,b,c;
        a = stdIn.nextInt();
        b = stdIn.nextInt();
        c = stdIn.nextInt();
        if (a < b && b < c) {
            System.out.println("Yes");
        }
        if (a > b && b > c){
            System.out.println("No");
        }
        if (a < b && b > c){
            System.out.println("No");
        }
        if (a > b && b < c){
            System.out.println("No");
        }
        if (a == b && b < c){
            System.out.println("No");
        }
        if (a < b && b ==c){
            System.out.println("No");
        }
        if (a == b && b > c){
            System.out.println("No");
        }
        if (a > b && b ==c){
            System.out.println("No");
        }
        if (a == b && b == c){
            System.out.println("No");
        }

    } main {
        Scanner stdIn =new Scanner(System.in);
        int a,b,c;
        a = stdIn.nextInt();
        b = stdIn.nextInt();
        c = stdIn.nextInt();
        if (a < b && b < c) {
            System.out.println("Yes");
        }
        if (a > b && b > c){
            System.out.println("No");
        }
        if (a < b && b > c){
            System.out.println("No");
        }
        if (a > b && b < c){
            System.out.println("No");
        }
        if (a == b && b < c){
            System.out.println("No");
        }
        if (a < b && b ==c){
            System.out.println("No");
        }
        if (a == b && b > c){
            System.out.println("No");
        }
        if (a > b && b ==c){
            System.out.println("No");
        }
        if (a == b && b == c){
            System.out.println("No");
        }

    } Scanner stdIn =new Scanner(System.in); stdIn new Scanner(System.in) int a a b b c; c a = stdIn.nextInt() a stdIn.nextInt() stdIn.nextInt stdIn b = stdIn.nextInt() b stdIn.nextInt() stdIn.nextInt stdIn c = stdIn.nextInt() c stdIn.nextInt() stdIn.nextInt stdIn if (a < b && b < c) {
            System.out.println("Yes");
        } a < b && b < c a < b a b b < c b c {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" if (a > b && b > c){
            System.out.println("No");
        } a > b && b > c a > b a b b > c b c {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" if (a < b && b > c){
            System.out.println("No");
        } a < b && b > c a < b a b b > c b c {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" if (a > b && b < c){
            System.out.println("No");
        } a > b && b < c a > b a b b < c b c {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" if (a == b && b < c){
            System.out.println("No");
        } a == b && b < c a == b a b b < c b c {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" if (a < b && b ==c){
            System.out.println("No");
        } a < b && b ==c a < b a b b ==c b c {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" if (a == b && b > c){
            System.out.println("No");
        } a == b && b > c a == b a b b > c b c {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" if (a > b && b ==c){
            System.out.println("No");
        } a > b && b ==c a > b a b b ==c b c {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" if (a == b && b == c){
            System.out.println("No");
        } a == b && b == c a == b a b b == c b c {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {

    public static void main(String[] args) {
        Scanner stdIn =new Scanner(System.in);
        int a,b,c;
        a = stdIn.nextInt();
        b = stdIn.nextInt();
        c = stdIn.nextInt();
        if (a < b && b < c) {
            System.out.println("Yes");
        }
        if (a > b && b > c){
            System.out.println("No");
        }
        if (a < b && b > c){
            System.out.println("No");
        }
        if (a > b && b < c){
            System.out.println("No");
        }
        if (a == b && b < c){
            System.out.println("No");
        }
        if (a < b && b ==c){
            System.out.println("No");
        }
        if (a == b && b > c){
            System.out.println("No");
        }
        if (a > b && b ==c){
            System.out.println("No");
        }
        if (a == b && b == c){
            System.out.println("No");
        }

    }
} public class Main {

    public static void main(String[] args) {
        Scanner stdIn =new Scanner(System.in);
        int a,b,c;
        a = stdIn.nextInt();
        b = stdIn.nextInt();
        c = stdIn.nextInt();
        if (a < b && b < c) {
            System.out.println("Yes");
        }
        if (a > b && b > c){
            System.out.println("No");
        }
        if (a < b && b > c){
            System.out.println("No");
        }
        if (a > b && b < c){
            System.out.println("No");
        }
        if (a == b && b < c){
            System.out.println("No");
        }
        if (a < b && b ==c){
            System.out.println("No");
        }
        if (a == b && b > c){
            System.out.println("No");
        }
        if (a > b && b ==c){
            System.out.println("No");
        }
        if (a == b && b == c){
            System.out.println("No");
        }

    }
} Main
import java.util.*;
public class Main {

    public static void main(String[] args) {
        Scanner stdIn =new Scanner(System.in);
        int a,b,c;
        a = stdIn.nextInt();
        b = stdIn.nextInt();
        c = stdIn.nextInt();
        if (a < b && b < c) {
            System.out.println("Yes");
        }
        if (a > b && b > c){
            System.out.println("No");
        }
        if (a < b && b > c){
            System.out.println("No");
        }
        if (a > b && b < c){
            System.out.println("No");
        }
        if (a == b && b < c){
            System.out.println("No");
        }
        if (a < b && b ==c){
            System.out.println("No");
        }
        if (a == b && b > c){
            System.out.println("No");
        }
        if (a > b && b ==c){
            System.out.println("No");
        }
        if (a == b && b == c){
            System.out.println("No");
        }

    }
}