public static void main ( String [ ] args ) {
  int n = scanner . nextInt ( ) ;
  int [ ] xa = new int [ n ] , ya = new int [ n ] , ha = new int [ n ] ;
  for ( int i = 0 ;
  i < n ;
  i ++ ) {
    xa [ i ] = scanner . nextInt ( ) ;
    ya [ i ] = scanner . nextInt ( ) ;
    ha [ i ] = scanner . nextInt ( ) ;
  }
  for ( int x = 0 ;
  x <= 100 ;
  x ++ ) {
    for ( int y = 0 ;
    y <= 100 ;
    y ++ ) {
      int x1 = x , y1 = y , h = IntStream . range ( 0 , n ) . filter ( k -> ha [ k ] != 0 ) . reduce ( 0 , ( l , i ) -> ha [ i ] + Math . abs ( xa [ i ] - x1 ) + Math . abs ( ya [ i ] - y1 ) ) ;
      if ( IntStream . range ( 0 , n ) . allMatch ( k -> ha [ k ] == Math . max ( h - Math . abs ( xa [ k ] - x1 ) - Math . abs ( ya [ k ] - y1 ) , 0 ) ) ) System . out . printf ( "%s %s %s\n" , x , y , h ) ;
    }
  }
}

public static void main ( String [ ] args ) { int n = scanner . nextInt ( ) ; int [ ] xa = new int [ n ] , ya = new int [ n ] , ha = new int [ n ] ; for ( int i = 0 ; i < n ; i ++ ) { xa [ i ] = scanner . nextInt ( ) ; ya [ i ] = scanner . nextInt ( ) ; ha [ i ] = scanner . nextInt ( ) ; } for ( int x = 0 ; x <= 100 ; x ++ ) { for ( int y = 0 ; y <= 100 ; y ++ ) { int x1 = x , y1 = y , h = IntStream . range ( 0 , n ) . filter ( k -> ha [ k ] != 0 ) . reduce ( 0 , ( l , i ) -> ha [ i ] + Math . abs ( xa [ i ] - x1 ) + Math . abs ( ya [ i ] - y1 ) ) ; if ( IntStream . range ( 0 , n ) . allMatch ( k -> ha [ k ] == Math . max ( h - Math . abs ( xa [ k ] - x1 ) - Math . abs ( ya [ k ] - y1 ) , 0 ) ) ) System . out . printf ( " % s ▁ % s ▁ % s \n " , x , y , h ) ; } } }
(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) value: (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 (identifier)))) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (identifier)))) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (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 (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (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: (decimal_integer_literal)) update: (update_expression (identifier)) body: (block (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (decimal_integer_literal)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (identifier)) declarator: (variable_declarator name: (identifier) value: (identifier)) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal) (identifier))) name: (identifier) arguments: (argument_list (lambda_expression parameters: (identifier) body: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal))))) name: (identifier) arguments: (argument_list (decimal_integer_literal) (lambda_expression parameters: (inferred_parameters (identifier) (identifier)) body: (binary_expression left: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (identifier))))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (identifier)))))))))) (if_statement condition: (parenthesized_expression (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal) (identifier))) name: (identifier) arguments: (argument_list (lambda_expression parameters: (identifier) body: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (identifier))))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (identifier))))) (decimal_integer_literal)))))))) consequence: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal) (identifier) (identifier) (identifier)))))))))))