import java.io.*;
class Main {
    public static void main( String[] args ) throws IOException {
        BufferedReader br = new BufferedReader( new InputStreamReader( System.in ) );
        String line = br.readLine();
        String[] p = line.split( " ", 0 );
        boolean flg = true;
        for( int i = 1 ; i < p.length ; i++ ) {
            if( Integer.parseInt( p[ i - 1 ] ) >= Integer.parseInt( p[ i ] ) ) {
                flg = false;
                break;
            }
        }
        if( flg ) {
            System.out.println( "Yes" );
        } else {
            System.out.println( "No" );
        }
    }
} import java.io.*; io.* java class Main {
    public static void main( String[] args ) throws IOException {
        BufferedReader br = new BufferedReader( new InputStreamReader( System.in ) );
        String line = br.readLine();
        String[] p = line.split( " ", 0 );
        boolean flg = true;
        for( int i = 1 ; i < p.length ; i++ ) {
            if( Integer.parseInt( p[ i - 1 ] ) >= Integer.parseInt( p[ i ] ) ) {
                flg = false;
                break;
            }
        }
        if( flg ) {
            System.out.println( "Yes" );
        } else {
            System.out.println( "No" );
        }
    }
} Main public static void main( String[] args ) throws IOException {
        BufferedReader br = new BufferedReader( new InputStreamReader( System.in ) );
        String line = br.readLine();
        String[] p = line.split( " ", 0 );
        boolean flg = true;
        for( int i = 1 ; i < p.length ; i++ ) {
            if( Integer.parseInt( p[ i - 1 ] ) >= Integer.parseInt( p[ i ] ) ) {
                flg = false;
                break;
            }
        }
        if( flg ) {
            System.out.println( "Yes" );
        } else {
            System.out.println( "No" );
        }
    } main {
        BufferedReader br = new BufferedReader( new InputStreamReader( System.in ) );
        String line = br.readLine();
        String[] p = line.split( " ", 0 );
        boolean flg = true;
        for( int i = 1 ; i < p.length ; i++ ) {
            if( Integer.parseInt( p[ i - 1 ] ) >= Integer.parseInt( p[ i ] ) ) {
                flg = false;
                break;
            }
        }
        if( flg ) {
            System.out.println( "Yes" );
        } else {
            System.out.println( "No" );
        }
    } BufferedReader br = new BufferedReader( new InputStreamReader( System.in ) ); br new BufferedReader( new InputStreamReader( System.in ) ) String line = br.readLine(); line br.readLine() br.readLine br String[] p = line.split( " ", 0 ); p line.split( " ", 0 ) line.split line " " 0 boolean flg = true; flg true for( int i = 1 ; i < p.length ; i++ ) {
            if( Integer.parseInt( p[ i - 1 ] ) >= Integer.parseInt( p[ i ] ) ) {
                flg = false;
                break;
            }
        } int i = 1 ; int i = 1 ; i 1 i < p.length i p.length p p.length i++ i++ i {
            if( Integer.parseInt( p[ i - 1 ] ) >= Integer.parseInt( p[ i ] ) ) {
                flg = false;
                break;
            }
        } {
            if( Integer.parseInt( p[ i - 1 ] ) >= Integer.parseInt( p[ i ] ) ) {
                flg = false;
                break;
            }
        } if( Integer.parseInt( p[ i - 1 ] ) >= Integer.parseInt( p[ i ] ) ) {
                flg = false;
                break;
            } Integer.parseInt( p[ i - 1 ] ) >= Integer.parseInt( p[ i ] ) Integer.parseInt( p[ i - 1 ] ) Integer.parseInt Integer p[ i - 1 ] p i - 1 i 1 Integer.parseInt( p[ i ] ) Integer.parseInt Integer p[ i ] p i {
                flg = false;
                break;
            } flg = false flg false break; if( flg ) {
            System.out.println( "Yes" );
        } else {
            System.out.println( "No" );
        } flg {
            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" String[] args args
import java.io.*;
class Main {
    public static void main( String[] args ) throws IOException {
        BufferedReader br = new BufferedReader( new InputStreamReader( System.in ) );
        String line = br.readLine();
        String[] p = line.split( " ", 0 );
        boolean flg = true;
        for( int i = 1 ; i < p.length ; i++ ) {
            if( Integer.parseInt( p[ i - 1 ] ) >= Integer.parseInt( p[ i ] ) ) {
                flg = false;
                break;
            }
        }
        if( flg ) {
            System.out.println( "Yes" );
        } else {
            System.out.println( "No" );
        }
    }
}