public static void main ( String [ ] args ) {
  FS in = new FS ( System . in ) ;
  PrintWriter out = new PrintWriter ( System . out ) ;
  int n = in . nextInt ( ) ;
  double a = in . nextInt ( ) ;
  double d = in . nextInt ( ) ;
  double time = 0.0 ;
  while ( n -- > 0 ) {
    double t = in . nextInt ( ) ;
    double v = in . nextInt ( ) ;
    double curr = 0 ;
    if ( v * v / ( 2.0 * a ) >= d ) {
      curr = Math . sqrt ( 2.0 * d / a ) ;
    }
    else {
      curr = 1.0 * v / a + ( d - v * v / ( 2.0 * a ) ) / v ;
    }
    curr = Math . max ( curr + t , time ) ;
    out . println ( curr ) ;
    time = curr ;
  }
  out . close ( ) ;
}

public static void main ( String [ ] args ) { FS in = new FS ( System . in ) ; PrintWriter out = new PrintWriter ( System . out ) ; int n = in . nextInt ( ) ; double a = in . nextInt ( ) ; double d = in . nextInt ( ) ; double time = 0.0 ; while ( n -- > 0 ) { double t = in . nextInt ( ) ; double v = in . nextInt ( ) ; double curr = 0 ; if ( v * v / ( 2.0 * a ) >= d ) { curr = Math . sqrt ( 2.0 * d / a ) ; } else { curr = 1.0 * v / a + ( d - v * v / ( 2.0 * a ) ) / v ; } curr = Math . max ( curr + t , time ) ; out . println ( curr ) ; time = curr ; } out . close ( ) ; }
(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: (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: (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: (decimal_floating_point_literal))) (while_statement condition: (parenthesized_expression (binary_expression left: (update_expression (identifier)) right: (decimal_integer_literal))) 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: (decimal_integer_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (parenthesized_expression (binary_expression left: (decimal_floating_point_literal) right: (identifier)))) right: (identifier))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (decimal_floating_point_literal) right: (identifier)) right: (identifier))))))) alternative: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (decimal_floating_point_literal) right: (identifier)) right: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (parenthesized_expression (binary_expression left: (decimal_floating_point_literal) right: (identifier)))))) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (identifier))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))