public static void main ( String [ ] args ) {
  Scanner sc = new Scanner ( System . in ) ;
  int n = sc . nextInt ( ) ;
  PriorityQueue pq = new PriorityQueue < int [ ] > ( Comparator . comparingInt ( o -> ( ( int [ ] ) o ) [ 0 ] ) . reversed ( ) ) ;
  for ( int i = 1 ;
  i < 2 * n ;
  i ++ ) for ( int j = 0 ;
  j < i ;
  j ++ ) pq . add ( new int [ ] {
    sc . nextInt ( ) , i , j }
    ) ;
    int [ ] used = new int [ 2 * n ] ;
    while ( ! pq . isEmpty ( ) ) {
      int [ ] value = ( int [ ] ) pq . poll ( ) ;
      if ( used [ value [ 1 ] ] == 0 && used [ value [ 2 ] ] == 0 ) {
        used [ value [ 1 ] ] = value [ 2 ] + 1 ;
        used [ value [ 2 ] ] = value [ 1 ] + 1 ;
      }
    }
    StringBuilder builder = new StringBuilder ( ) ;
    for ( int i = 0 ;
    i < 2 * n ;
    i ++ ) {
      builder . append ( used [ i ] ) ;
      if ( i != 2 * n - 1 ) builder . append ( " " ) ;
    }
    System . out . println ( builder ) ;
  }
  
public static void main ( String [ ] args ) { Scanner sc = new Scanner ( System . in ) ; int n = sc . nextInt ( ) ; PriorityQueue pq = new PriorityQueue < int [ ] > ( Comparator . comparingInt ( o -> ( ( int [ ] ) o ) [ 0 ] ) . reversed ( ) ) ; for ( int i = 1 ; i < 2 * n ; i ++ ) for ( int j = 0 ; j < i ; j ++ ) pq . add ( new int [ ] { sc . nextInt ( ) , i , j } ) ; int [ ] used = new int [ 2 * n ] ; while ( ! pq . isEmpty ( ) ) { int [ ] value = ( int [ ] ) pq . poll ( ) ; if ( used [ value [ 1 ] ] == 0 && used [ value [ 2 ] ] == 0 ) { used [ value [ 1 ] ] = value [ 2 ] + 1 ; used [ value [ 2 ] ] = value [ 1 ] + 1 ; } } StringBuilder builder = new StringBuilder ( ) ; for ( int i = 0 ; i < 2 * n ; i ++ ) { builder . append ( used [ i ] ) ; if ( i != 2 * n - 1 ) builder . append ( " ▁ " ) ; } System . out . println ( builder ) ; }
(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: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (generic_type (type_identifier) (type_arguments (array_type element: (integral_type) dimensions: (dimensions)))) arguments: (argument_list (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (lambda_expression parameters: (identifier) body: (array_access array: (parenthesized_expression (cast_expression type: (array_type element: (integral_type) dimensions: (dimensions)) value: (identifier))) index: (decimal_integer_literal))))) name: (identifier) arguments: (argument_list)))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (binary_expression left: (decimal_integer_literal) right: (identifier))) update: (update_expression (identifier)) body: (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: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_creation_expression type: (integral_type) dimensions: (dimensions) value: (array_initializer (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) (identifier) (identifier)))))))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (binary_expression left: (decimal_integer_literal) right: (identifier)))))) (while_statement condition: (parenthesized_expression (unary_expression operand: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) body: (block (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (cast_expression type: (array_type element: (integral_type) dimensions: (dimensions)) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (array_access array: (identifier) index: (array_access array: (identifier) index: (decimal_integer_literal))) right: (decimal_integer_literal)) right: (binary_expression left: (array_access array: (identifier) index: (array_access array: (identifier) index: (decimal_integer_literal))) right: (decimal_integer_literal)))) consequence: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (array_access array: (identifier) index: (decimal_integer_literal))) right: (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (decimal_integer_literal)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (array_access array: (identifier) index: (decimal_integer_literal))) right: (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (decimal_integer_literal)))))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (binary_expression left: (decimal_integer_literal) right: (identifier))) update: (update_expression (identifier)) body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (binary_expression left: (decimal_integer_literal) right: (identifier)) right: (decimal_integer_literal)))) consequence: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))))