public static void main ( String [ ] args ) {
  Scanner sc = new Scanner ( System . in ) ;
  String str = sc . nextLine ( ) ;
  int c = str . length ( ) ;
  int x = Integer . parseInt ( str . substring ( 0 , str . indexOf ( " " ) ) ) ;
  int y = Integer . parseInt ( str . substring ( str . indexOf ( " " ) + 1 , str . indexOf ( " " , str . indexOf ( " " ) + 1 ) ) ) ;
  int z = Integer . parseInt ( str . substring ( str . indexOf ( " " , str . indexOf ( " " ) + 2 ) + 1 , str . lastIndexOf ( " " ) ) ) ;
  int t = Integer . parseInt ( str . substring ( str . lastIndexOf ( " " ) + 1 , c ) ) ;
  int a = Math . max ( Math . max ( x , y ) , Math . max ( z , t ) ) ;
  if ( t == a ) {
    System . out . println ( ( a - x ) + " " + ( a - y ) + " " + ( a - z ) ) ;
  }
  if ( x == a ) {
    System . out . println ( ( a - y ) + " " + ( a - z ) + " " + ( a - t ) ) ;
  }
  if ( y == a ) {
    System . out . println ( ( a - x ) + " " + ( a - z ) + " " + ( a - t ) ) ;
  }
  if ( z == a ) {
    System . out . println ( ( a - x ) + " " + ( a - y ) + " " + ( a - t ) ) ;
  }
}

public static void main ( String [ ] args ) { Scanner sc = new Scanner ( System . in ) ; String str = sc . nextLine ( ) ; int c = str . length ( ) ; int x = Integer . parseInt ( str . substring ( 0 , str . indexOf ( " ▁ " ) ) ) ; int y = Integer . parseInt ( str . substring ( str . indexOf ( " ▁ " ) + 1 , str . indexOf ( " ▁ " , str . indexOf ( " ▁ " ) + 1 ) ) ) ; int z = Integer . parseInt ( str . substring ( str . indexOf ( " ▁ " , str . indexOf ( " ▁ " ) + 2 ) + 1 , str . lastIndexOf ( " ▁ " ) ) ) ; int t = Integer . parseInt ( str . substring ( str . lastIndexOf ( " ▁ " ) + 1 , c ) ) ; int a = Math . max ( Math . max ( x , y ) , Math . max ( z , t ) ) ; if ( t == a ) { System . out . println ( ( a - x ) + " ▁ " + ( a - y ) + " ▁ " + ( a - z ) ) ; } if ( x == a ) { System . out . println ( ( a - y ) + " ▁ " + ( a - z ) + " ▁ " + ( a - t ) ) ; } if ( y == a ) { System . out . println ( ( a - x ) + " ▁ " + ( a - z ) + " ▁ " + ( a - t ) ) ; } if ( z == a ) { System . out . println ( ( a - x ) + " ▁ " + ( a - y ) + " ▁ " + ( a - t ) ) ; } }
(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: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (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: (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 (decimal_integer_literal) (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))))))) (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 (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))) right: (decimal_integer_literal)) (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal) (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))) right: (decimal_integer_literal)))))))))) (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 (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal) (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))) right: (decimal_integer_literal)))) right: (decimal_integer_literal)) (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))))))) (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 (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))) right: (decimal_integer_literal)) (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 (identifier) (identifier))) (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (string_literal)) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) right: (string_literal)) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (string_literal)) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) right: (string_literal)) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (string_literal)) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) right: (string_literal)) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (string_literal)) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) right: (string_literal)) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))))))))