public static void main ( String [ ] args ) {
  int n , m , min , max ;
  int start , end , mMin , mMax ;
  Scanner s = new Scanner ( System . in ) ;
  n = s . nextInt ( ) ;
  m = s . nextInt ( ) ;
  min = s . nextInt ( ) ;
  max = s . nextInt ( ) ;
  int extra = n - m ;
  start = s . nextInt ( ) ;
  mMin = start ;
  mMax = start ;
  end = start ;
  if ( end > max || end < min ) {
    System . out . println ( "Incorrect" ) ;
    return ;
  }
  for ( int i = 1 ;
  i < m ;
  i ++ ) {
    end = s . nextInt ( ) ;
    if ( end > max || end < min ) {
      System . out . println ( "Incorrect" ) ;
      return ;
    }
    mMax = Math . max ( end , mMax ) ;
    mMin = Math . min ( end , mMin ) ;
  }
  if ( extra >= 2 ) System . out . println ( "Correct" ) ;
  else if ( mMax == max && extra == 1 ) System . out . println ( "Correct" ) ;
  else if ( mMin == min && extra == 1 ) System . out . println ( "Correct" ) ;
  else if ( mMin == min && mMax == max ) System . out . println ( "Correct" ) ;
  else System . out . println ( "Incorrect" ) ;
}

public static void main ( String [ ] args ) { int n , m , min , max ; int start , end , mMin , mMax ; Scanner s = new Scanner ( System . in ) ; n = s . nextInt ( ) ; m = s . nextInt ( ) ; min = s . nextInt ( ) ; max = s . nextInt ( ) ; int extra = n - m ; start = s . nextInt ( ) ; mMin = start ; mMax = start ; end = start ; if ( end > max || end < min ) { System . out . println ( " Incorrect " ) ; return ; } for ( int i = 1 ; i < m ; i ++ ) { end = s . nextInt ( ) ; if ( end > max || end < min ) { System . out . println ( " Incorrect " ) ; return ; } mMax = Math . max ( end , mMax ) ; mMin = Math . min ( end , mMin ) ; } if ( extra >= 2 ) System . out . println ( " Correct " ) ; else if ( mMax == max && extra == 1 ) System . out . println ( " Correct " ) ; else if ( mMin == min && extra == 1 ) System . out . println ( " Correct " ) ; else if ( mMin == min && mMax == max ) System . out . println ( " Correct " ) ; else System . out . println ( " Incorrect " ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (return_statement))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) alternative: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))))))))