public static void main ( String [ ] args ) throws IOException {
  BufferedReader f = new BufferedReader ( new InputStreamReader ( System . in ) ) ;
  PrintWriter out = new PrintWriter ( new OutputStreamWriter ( System . out ) ) ;
  int n = Integer . parseInt ( f . readLine ( ) ) ;
  int [ ] [ ] strength = new int [ 2 * n ] [ 2 * n ] ;
  for ( int i = 1 ;
  i < 2 * n ;
  i ++ ) {
    StringTokenizer st = new StringTokenizer ( f . readLine ( ) ) ;
    for ( int j = 0 ;
    j < i ;
    j ++ ) {
      strength [ i ] [ j ] = Integer . parseInt ( st . nextToken ( ) ) ;
      strength [ j ] [ i ] = strength [ i ] [ j ] ;
    }
  }
  HashSet < Integer > seen = new HashSet < Integer > ( ) ;
  int [ ] teams = new int [ 2 * n ] ;
  for ( int i = 0 ;
  i < n ;
  i ++ ) {
    int maxr = - 1 ;
    int maxc = - 1 ;
    int maxS = Integer . MIN_VALUE ;
    for ( int j = 0 ;
    j < 2 * n ;
    j ++ ) {
      if ( seen . contains ( j ) ) continue ;
      for ( int k = 0 ;
      k <= j ;
      k ++ ) {
        if ( seen . contains ( k ) ) continue ;
        if ( strength [ j ] [ k ] > maxS ) {
          maxr = j ;
          maxc = k ;
          maxS = strength [ j ] [ k ] ;
        }
      }
    }
    seen . add ( maxc ) ;
    seen . add ( maxr ) ;
    teams [ maxr ] = maxc + 1 ;
    teams [ maxc ] = maxr + 1 ;
  }
  StringBuilder ans = new StringBuilder ( ) ;
  for ( int i : teams ) {
    ans . append ( i ) ;
    ans . append ( " " ) ;
  }
  out . println ( ans . toString ( ) . trim ( ) ) ;
  out . close ( ) ;
}

public static void main ( String [ ] args ) throws IOException { BufferedReader f = new BufferedReader ( new InputStreamReader ( System . in ) ) ; PrintWriter out = new PrintWriter ( new OutputStreamWriter ( System . out ) ) ; int n = Integer . parseInt ( f . readLine ( ) ) ; int [ ] [ ] strength = new int [ 2 * n ] [ 2 * n ] ; for ( int i = 1 ; i < 2 * n ; i ++ ) { StringTokenizer st = new StringTokenizer ( f . readLine ( ) ) ; for ( int j = 0 ; j < i ; j ++ ) { strength [ i ] [ j ] = Integer . parseInt ( st . nextToken ( ) ) ; strength [ j ] [ i ] = strength [ i ] [ j ] ; } } HashSet < Integer > seen = new HashSet < Integer > ( ) ; int [ ] teams = new int [ 2 * n ] ; for ( int i = 0 ; i < n ; i ++ ) { int maxr = - 1 ; int maxc = - 1 ; int maxS = Integer . MIN_VALUE ; for ( int j = 0 ; j < 2 * n ; j ++ ) { if ( seen . contains ( j ) ) continue ; for ( int k = 0 ; k <= j ; k ++ ) { if ( seen . contains ( k ) ) continue ; if ( strength [ j ] [ k ] > maxS ) { maxr = j ; maxc = k ; maxS = strength [ j ] [ k ] ; } } } seen . add ( maxc ) ; seen . add ( maxr ) ; teams [ maxr ] = maxc + 1 ; teams [ maxc ] = maxr + 1 ; } StringBuilder ans = new StringBuilder ( ) ; for ( int i : teams ) { ans . append ( i ) ; ans . append ( " ▁ " ) ; } out . println ( ans . toString ( ) . trim ( ) ) ; out . close ( ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) (throws (type_identifier)) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (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 (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (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))) dimensions: (dimensions_expr (binary_expression left: (decimal_integer_literal) right: (identifier)))))) (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 (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (method_invocation object: (identifier) 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: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)))))))) (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (generic_type (type_identifier) (type_arguments (type_identifier))) arguments: (argument_list)))) (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)))))) (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 (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (unary_expression operand: (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (unary_expression operand: (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier)))) (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 (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) consequence: (continue_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 (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) consequence: (continue_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (identifier))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)))))))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (binary_expression left: (identifier) 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)))) (enhanced_for_statement type: (integral_type) name: (identifier) value: (identifier) body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))