public static void main ( String [ ] args ) {
  Scanner input = new Scanner ( System . in ) ;
  double t1 , t2 , y1 = 0 , y2 = 0 , x1 , x2 , t0 , div , sum ;
  boolean is , is1 ;
  while ( input . hasNext ( ) ) {
    div = 1000000000 ;
    t1 = input . nextDouble ( ) ;
    t2 = input . nextDouble ( ) ;
    x1 = input . nextDouble ( ) ;
    x2 = input . nextDouble ( ) ;
    t0 = input . nextDouble ( ) ;
    while ( x1 >= 0 && x2 >= 0 ) {
      if ( x1 + x2 == 0 ) break ;
      sum = ( ( t1 * x1 ) + ( t2 * x2 ) ) / ( x1 + x2 ) ;
      if ( sum < t0 ) {
        x1 -- ;
        continue ;
      }
      if ( sum < div ) {
        div = sum ;
        y1 = x1 ;
        y2 = x2 ;
      }
      x2 -- ;
    }
    System . out . println ( ( int ) y1 + " " + ( int ) y2 ) ;
  }
}

public static void main ( String [ ] args ) { Scanner input = new Scanner ( System . in ) ; double t1 , t2 , y1 = 0 , y2 = 0 , x1 , x2 , t0 , div , sum ; boolean is , is1 ; while ( input . hasNext ( ) ) { div = 1000000000 ; t1 = input . nextDouble ( ) ; t2 = input . nextDouble ( ) ; x1 = input . nextDouble ( ) ; x2 = input . nextDouble ( ) ; t0 = input . nextDouble ( ) ; while ( x1 >= 0 && x2 >= 0 ) { if ( x1 + x2 == 0 ) break ; sum = ( ( t1 * x1 ) + ( t2 * x2 ) ) / ( x1 + x2 ) ; if ( sum < t0 ) { x1 -- ; continue ; } if ( sum < div ) { div = sum ; y1 = x1 ; y2 = x2 ; } x2 -- ; } System . out . println ( ( int ) y1 + " ▁ " + ( int ) y2 ) ; } }
(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: (floating_point_type) 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)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier))) (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier))) (while_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) body: (block (expression_statement (assignment_expression left: (identifier) right: (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)))) (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)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (while_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (expression_statement (update_expression (identifier))) (continue_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (identifier))))) (expression_statement (update_expression (identifier))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (cast_expression type: (integral_type) value: (identifier)) right: (string_literal)) right: (cast_expression type: (integral_type) value: (identifier))))))))))