static void solve ( ) {
  double l = in . nextInt ( ) ;
  double x = in . nextInt ( ) ;
  double y = in . nextInt ( ) ;
  double s = in . nextInt ( ) ;
  double d = in . nextInt ( ) ;
  if ( s < d ) {
    if ( x < y ) {
      out . printf ( "%.10f\n" , Math . min ( ( d - s ) / ( x + y ) , ( l - ( d - s ) ) / ( y - x ) ) ) ;
    }
    else {
      out . printf ( "%.10f\n" , ( d - s ) / ( x + y ) ) ;
    }
  }
  else if ( s > d ) {
    if ( x < y ) {
      out . printf ( "%.10f\n" , Math . min ( ( l - ( s - d ) ) / ( x + y ) , ( s - d ) / ( y - x ) ) ) ;
    }
    else {
      out . printf ( "%.10f\n" , ( l - ( s - d ) ) / ( x + y ) ) ;
    }
  }
  else {
    out . println ( "0" ) ;
  }
}

static void solve ( ) { double l = in . nextInt ( ) ; double x = in . nextInt ( ) ; double y = in . nextInt ( ) ; double s = in . nextInt ( ) ; double d = in . nextInt ( ) ; if ( s < d ) { if ( x < y ) { out . printf ( " % .10f \n " , Math . min ( ( d - s ) / ( x + y ) , ( l - ( d - s ) ) / ( y - x ) ) ) ; } else { out . printf ( " % .10f \n " , ( d - s ) / ( x + y ) ) ; } } else if ( s > d ) { if ( x < y ) { out . printf ( " % .10f \n " , Math . min ( ( l - ( s - d ) ) / ( x + y ) , ( s - d ) / ( y - x ) ) ) ; } else { out . printf ( " % .10f \n " , ( l - ( s - d ) ) / ( x + y ) ) ; } } else { out . println ( "0" ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters) body: (block (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal) (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))))))) alternative: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal) (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))))))) alternative: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))))))) alternative: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))))))))