public static void main ( String args [ ] ) {
  Scanner in = new Scanner ( System . in ) ;
  int dad = in . nextInt ( ) ;
  int mom = in . nextInt ( ) ;
  int son = in . nextInt ( ) ;
  int marsha = in . nextInt ( ) ;
  int dadCar = dad ;
  int momCar = mom ;
  int sonCar = son ;
  while ( marsha * 2 >= dadCar ) {
    dadCar ++ ;
  }
  while ( marsha * 2 >= momCar ) {
    momCar ++ ;
  }
  while ( marsha * 2 < sonCar ) {
    sonCar -- ;
  }
  while ( marsha > sonCar ) {
    sonCar ++ ;
  }
  while ( momCar <= sonCar ) {
    momCar ++ ;
  }
  while ( dadCar <= momCar ) {
    dadCar ++ ;
  }
  if ( dadCar <= dad * 2 && momCar <= mom * 2 && sonCar <= son * 2 && sonCar <= marsha * 2 && sonCar >= son ) {
    System . out . println ( dadCar ) ;
    System . out . println ( momCar ) ;
    System . out . println ( sonCar ) ;
  }
  else {
    System . out . println ( - 1 ) ;
  }
}

public static void main ( String args [ ] ) { Scanner in = new Scanner ( System . in ) ; int dad = in . nextInt ( ) ; int mom = in . nextInt ( ) ; int son = in . nextInt ( ) ; int marsha = in . nextInt ( ) ; int dadCar = dad ; int momCar = mom ; int sonCar = son ; while ( marsha * 2 >= dadCar ) { dadCar ++ ; } while ( marsha * 2 >= momCar ) { momCar ++ ; } while ( marsha * 2 < sonCar ) { sonCar -- ; } while ( marsha > sonCar ) { sonCar ++ ; } while ( momCar <= sonCar ) { momCar ++ ; } while ( dadCar <= momCar ) { dadCar ++ ; } if ( dadCar <= dad * 2 && momCar <= mom * 2 && sonCar <= son * 2 && sonCar <= marsha * 2 && sonCar >= son ) { System . out . println ( dadCar ) ; System . out . println ( momCar ) ; System . out . println ( sonCar ) ; } else { System . out . println ( - 1 ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions))) 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: (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)))) (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: (identifier))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (identifier))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (identifier))) (while_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (identifier))) body: (block (expression_statement (update_expression (identifier))))) (while_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (identifier))) body: (block (expression_statement (update_expression (identifier))))) (while_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (identifier))) body: (block (expression_statement (update_expression (identifier))))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) body: (block (expression_statement (update_expression (identifier))))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) body: (block (expression_statement (update_expression (identifier))))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) body: (block (expression_statement (update_expression (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))) alternative: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (unary_expression operand: (decimal_integer_literal)))))))))