public static void main ( String [ ] $ ) {
  long l = gInt ( ) , x = gInt ( ) , y = gInt ( ) , s = gInt ( ) , d = gInt ( ) ;
  long sl = y + x , sr = y - x ;
  long dl = d > s ? d - s : d + l - s ;
  long dr = l - dl ;
  double tl = dl * 1.0 / sl ;
  double tr = sr <= 0 ? 1145141919 : dr * 1.0 / sr ;
  System . out . println ( Math . min ( tl , tr ) ) ;
}

public static void main ( String [ ] $ ) { long l = gInt ( ) , x = gInt ( ) , y = gInt ( ) , s = gInt ( ) , d = gInt ( ) ; long sl = y + x , sr = y - x ; long dl = d > s ? d - s : d + l - s ; long dr = l - dl ; double tl = dl * 1.0 / sl ; double tr = sr <= 0 ? 1145141919 : dr * 1.0 / sr ; System . out . println ( Math . min ( tl , tr ) ) ; }
(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: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list))) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list))) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list))) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list))) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (identifier))) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (identifier)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (ternary_expression condition: (binary_expression left: (identifier) right: (identifier)) consequence: (binary_expression left: (identifier) right: (identifier)) alternative: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (identifier)))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (binary_expression left: (identifier) right: (decimal_floating_point_literal)) right: (identifier)))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (ternary_expression condition: (binary_expression left: (identifier) right: (decimal_integer_literal)) consequence: (decimal_integer_literal) alternative: (binary_expression left: (binary_expression left: (identifier) right: (decimal_floating_point_literal)) right: (identifier))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier))))))))