public static void main ( String [ ] args ) throws IOException {
  FastReader sc = new FastReader ( ) ;
  PrintWriter out = new PrintWriter ( System . out ) ;
  int n = sc . nextInt ( ) , t1 = sc . nextInt ( ) , t2 = sc . nextInt ( ) , k = sc . nextInt ( ) ;
  List < Pair > list = new ArrayList < > ( ) ;
  int t = 0 ;
  while ( t ++ < n ) {
    int ai = sc . nextInt ( ) , bi = sc . nextInt ( ) ;
    double v1 = ( 1.00 * ai * t1 ) - ( 1.00 * ai * t1 * k / 100 ) + ( bi * t2 ) ;
    double v2 = ( 1.00 * bi * t1 ) - ( 1.00 * bi * t1 * k / 100 ) + ( ai * t2 ) ;
    list . add ( new Pair ( t , Math . max ( v1 , v2 ) ) ) ;
  }
  list . sort ( new comp ( ) ) ;
  for ( Pair p : list ) {
    out . print ( p . i + " " ) ;
    out . printf ( "%.2f" , p . h ) ;
    out . println ( ) ;
  }
  out . close ( ) ;
}

public static void main ( String [ ] args ) throws IOException { FastReader sc = new FastReader ( ) ; PrintWriter out = new PrintWriter ( System . out ) ; int n = sc . nextInt ( ) , t1 = sc . nextInt ( ) , t2 = sc . nextInt ( ) , k = sc . nextInt ( ) ; List < Pair > list = new ArrayList < > ( ) ; int t = 0 ; while ( t ++ < n ) { int ai = sc . nextInt ( ) , bi = sc . nextInt ( ) ; double v1 = ( 1.00 * ai * t1 ) - ( 1.00 * ai * t1 * k / 100 ) + ( bi * t2 ) ; double v2 = ( 1.00 * bi * t1 ) - ( 1.00 * bi * t1 * k / 100 ) + ( ai * t2 ) ; list . add ( new Pair ( t , Math . max ( v1 , v2 ) ) ) ; } list . sort ( new comp ( ) ) ; for ( Pair p : list ) { out . print ( p . i + " ▁ " ) ; out . printf ( " % .2f " , p . h ) ; out . println ( ) ; } 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))) (throws (type_identifier)) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list)))) (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))) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (generic_type (type_identifier) (type_arguments)) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (while_statement condition: (parenthesized_expression (binary_expression left: (update_expression (identifier)) right: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) 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: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (decimal_floating_point_literal) right: (identifier)) right: (identifier))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (decimal_floating_point_literal) right: (identifier)) right: (identifier)) right: (identifier)) right: (decimal_integer_literal)))) right: (parenthesized_expression (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: (parenthesized_expression (binary_expression left: (binary_expression left: (decimal_floating_point_literal) right: (identifier)) right: (identifier))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (decimal_floating_point_literal) right: (identifier)) right: (identifier)) right: (identifier)) right: (decimal_integer_literal)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier) (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier)))))))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (object_creation_expression type: (type_identifier) arguments: (argument_list))))) (enhanced_for_statement type: (type_identifier) name: (identifier) value: (identifier) body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (field_access object: (identifier) field: (identifier)) right: (string_literal))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal) (field_access object: (identifier) field: (identifier))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))