import java.util.Scanner;

public class Main {

    private final static String YES = "Yes";
    private final static String NO = "No";

    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);

        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        int[] array = { a, b, c };

        boolean inputOK = false;

        for (int i : array) {
            if (0 <= i && i <= 100) {
                inputOK = true;
            }
        }

        if (inputOK) {
            if (a < b && a < c) {
                System.out.println(b < c ? YES : NO);
            } else if (a < c && b < c) {
                System.out.println(a < b ? YES : NO);
            } else {
                System.out.println(NO);
            }
        }

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

    private final static String YES = "Yes";
    private final static String NO = "No";

    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);

        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        int[] array = { a, b, c };

        boolean inputOK = false;

        for (int i : array) {
            if (0 <= i && i <= 100) {
                inputOK = true;
            }
        }

        if (inputOK) {
            if (a < b && a < c) {
                System.out.println(b < c ? YES : NO);
            } else if (a < c && b < c) {
                System.out.println(a < b ? YES : NO);
            } else {
                System.out.println(NO);
            }
        }

    }
} Main private final static String YES = "Yes"; YES "Yes" private final static String NO = "No"; NO "No" public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);

        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        int[] array = { a, b, c };

        boolean inputOK = false;

        for (int i : array) {
            if (0 <= i && i <= 100) {
                inputOK = true;
            }
        }

        if (inputOK) {
            if (a < b && a < c) {
                System.out.println(b < c ? YES : NO);
            } else if (a < c && b < c) {
                System.out.println(a < b ? YES : NO);
            } else {
                System.out.println(NO);
            }
        }

    } main {
        Scanner scan = new Scanner(System.in);

        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        int[] array = { a, b, c };

        boolean inputOK = false;

        for (int i : array) {
            if (0 <= i && i <= 100) {
                inputOK = true;
            }
        }

        if (inputOK) {
            if (a < b && a < c) {
                System.out.println(b < c ? YES : NO);
            } else if (a < c && b < c) {
                System.out.println(a < b ? YES : NO);
            } else {
                System.out.println(NO);
            }
        }

    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = scan.nextInt(); c scan.nextInt() scan.nextInt scan int[] array = { a, b, c }; array { a, b, c } a b c boolean inputOK = false; inputOK false for (int i : array) {
            if (0 <= i && i <= 100) {
                inputOK = true;
            }
        } int i array {
            if (0 <= i && i <= 100) {
                inputOK = true;
            }
        } {
            if (0 <= i && i <= 100) {
                inputOK = true;
            }
        } if (0 <= i && i <= 100) {
                inputOK = true;
            } 0 <= i && i <= 100 0 <= i 0 i i <= 100 i 100 {
                inputOK = true;
            } inputOK = true inputOK true if (inputOK) {
            if (a < b && a < c) {
                System.out.println(b < c ? YES : NO);
            } else if (a < c && b < c) {
                System.out.println(a < b ? YES : NO);
            } else {
                System.out.println(NO);
            }
        } inputOK {
            if (a < b && a < c) {
                System.out.println(b < c ? YES : NO);
            } else if (a < c && b < c) {
                System.out.println(a < b ? YES : NO);
            } else {
                System.out.println(NO);
            }
        } if (a < b && a < c) {
                System.out.println(b < c ? YES : NO);
            } else if (a < c && b < c) {
                System.out.println(a < b ? YES : NO);
            } else {
                System.out.println(NO);
            } a < b && a < c a < b a b a < c a c {
                System.out.println(b < c ? YES : NO);
            } System.out.println(b < c ? YES : NO) System.out.println System.out System System.out b < c ? YES : NO b < c b c YES NO if (a < c && b < c) {
                System.out.println(a < b ? YES : NO);
            } else {
                System.out.println(NO);
            } a < c && b < c a < c a c b < c b c {
                System.out.println(a < b ? YES : NO);
            } System.out.println(a < b ? YES : NO) System.out.println System.out System System.out a < b ? YES : NO a < b a b YES NO {
                System.out.println(NO);
            } System.out.println(NO) System.out.println System.out System System.out NO String args[] args public class Main {

    private final static String YES = "Yes";
    private final static String NO = "No";

    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);

        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        int[] array = { a, b, c };

        boolean inputOK = false;

        for (int i : array) {
            if (0 <= i && i <= 100) {
                inputOK = true;
            }
        }

        if (inputOK) {
            if (a < b && a < c) {
                System.out.println(b < c ? YES : NO);
            } else if (a < c && b < c) {
                System.out.println(a < b ? YES : NO);
            } else {
                System.out.println(NO);
            }
        }

    }
} public class Main {

    private final static String YES = "Yes";
    private final static String NO = "No";

    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);

        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        int[] array = { a, b, c };

        boolean inputOK = false;

        for (int i : array) {
            if (0 <= i && i <= 100) {
                inputOK = true;
            }
        }

        if (inputOK) {
            if (a < b && a < c) {
                System.out.println(b < c ? YES : NO);
            } else if (a < c && b < c) {
                System.out.println(a < b ? YES : NO);
            } else {
                System.out.println(NO);
            }
        }

    }
} Main
import java.util.Scanner;

public class Main {

    private final static String YES = "Yes";
    private final static String NO = "No";

    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);

        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        int[] array = { a, b, c };

        boolean inputOK = false;

        for (int i : array) {
            if (0 <= i && i <= 100) {
                inputOK = true;
            }
        }

        if (inputOK) {
            if (a < b && a < c) {
                System.out.println(b < c ? YES : NO);
            } else if (a < c && b < c) {
                System.out.println(a < b ? YES : NO);
            } else {
                System.out.println(NO);
            }
        }

    }
}

