public static void main ( String [ ] args ) {
  Scanner scan = new Scanner ( System . in ) ;
  int n , b , i , sum = 0 , index = 0 ;
  String str ;
  double temp ;
  boolean flag = true ;
  int [ ] a = new int [ 100 ] ;
  n = scan . nextInt ( ) ;
  b = scan . nextInt ( ) ;
  for ( i = 0 ;
  i < n ;
  ++ i ) {
    a [ i ] = scan . nextInt ( ) ;
    sum += a [ i ] ;
  }
  sum += b ;
  temp = ( double ) sum / n ;
  for ( i = 0 ;
  i < n ;
  ++ i ) if ( ( double ) a [ i ] > temp ) {
    System . out . println ( - 1 ) ;
    return ;
  }
  for ( i = 0 ;
  i < n ;
  ++ i ) {
    str = String . valueOf ( temp - a [ i ] ) ;
    index = str . indexOf ( '.' ) ;
    if ( str . length ( ) - index < 7 ) {
      while ( str . length ( ) - index < 7 ) str += "0" ;
    }
    else if ( str . length ( ) - index > 7 ) str = String . valueOf ( Math . round ( ( temp - a [ i ] ) * 1000000.0 ) / 1000000.0 ) ;
    System . out . println ( str ) ;
  }
}

public static void main ( String [ ] args ) { Scanner scan = new Scanner ( System . in ) ; int n , b , i , sum = 0 , index = 0 ; String str ; double temp ; boolean flag = true ; int [ ] a = new int [ 100 ] ; n = scan . nextInt ( ) ; b = scan . nextInt ( ) ; for ( i = 0 ; i < n ; ++ i ) { a [ i ] = scan . nextInt ( ) ; sum += a [ i ] ; } sum += b ; temp = ( double ) sum / n ; for ( i = 0 ; i < n ; ++ i ) if ( ( double ) a [ i ] > temp ) { System . out . println ( - 1 ) ; return ; } for ( i = 0 ; i < n ; ++ i ) { str = String . valueOf ( temp - a [ i ] ) ; index = str . indexOf ( ' . ' ) ; if ( str . length ( ) - index < 7 ) { while ( str . length ( ) - index < 7 ) str += "0" ; } else if ( str . length ( ) - index > 7 ) str = String . valueOf ( Math . round ( ( temp - a [ i ] ) * 1000000.0 ) / 1000000.0 ) ; System . out . println ( str ) ; } }
(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)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal)) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier))) (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier) value: (true))) (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 (decimal_integer_literal))))) (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)))) (for_statement init: (assignment_expression left: (identifier) right: (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: (identifier) right: (array_access array: (identifier) index: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (floating_point_type) value: (identifier)) right: (identifier)))) (for_statement init: (assignment_expression left: (identifier) right: (decimal_integer_literal)) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (floating_point_type) value: (array_access array: (identifier) index: (identifier))) right: (identifier))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (unary_expression operand: (decimal_integer_literal))))) (return_statement)))) (for_statement init: (assignment_expression left: (identifier) right: (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 (binary_expression left: (identifier) right: (array_access array: (identifier) index: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (character_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (identifier)) right: (decimal_integer_literal))) consequence: (block (while_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (identifier)) right: (decimal_integer_literal))) body: (expression_statement (assignment_expression left: (identifier) right: (string_literal))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (identifier)) right: (decimal_integer_literal))) consequence: (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (array_access array: (identifier) index: (identifier)))) right: (decimal_floating_point_literal)))) right: (decimal_floating_point_literal)))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))))))