public static void main ( String args [ ] ) throws IOException {
  BufferedReader br = new BufferedReader ( new InputStreamReader ( System . in ) ) ;
  StringBuilder sb = new StringBuilder ( ) ;
  String [ ] sr = br . readLine ( ) . split ( " " ) ;
  int c1 , c2 , c3 , c4 ;
  c1 = Integer . parseInt ( sr [ 0 ] ) ;
  c2 = Integer . parseInt ( sr [ 1 ] ) ;
  c3 = Integer . parseInt ( sr [ 2 ] ) ;
  c4 = Integer . parseInt ( sr [ 3 ] ) ;
  String [ ] ss = br . readLine ( ) . split ( " " ) ;
  int n = Integer . parseInt ( ss [ 0 ] ) ;
  int m = Integer . parseInt ( ss [ 1 ] ) ;
  int [ ] arr = new int [ n ] ;
  int [ ] arr1 = new int [ m ] ;
  int sum1 = 0 , sum2 = 0 ;
  String [ ] st = br . readLine ( ) . split ( " " ) ;
  String [ ] su = br . readLine ( ) . split ( " " ) ;
  for ( int i = 0 ;
  i < n ;
  i ++ ) {
    arr [ i ] = Integer . parseInt ( st [ i ] ) ;
    sum1 += Math . min ( c1 * arr [ i ] , c2 ) ;
  }
  for ( int i = 0 ;
  i < m ;
  i ++ ) {
    arr1 [ i ] = Integer . parseInt ( su [ i ] ) ;
    sum2 += Math . min ( c1 * arr1 [ i ] , c2 ) ;
  }
  int sum3 = Math . min ( Math . min ( Math . min ( sum1 + c3 , sum2 + c3 ) , sum1 + sum2 ) , 2 * c3 ) ;
  sum3 = Math . min ( sum3 , c4 ) ;
  System . out . println ( sum3 ) ;
}

public static void main ( String args [ ] ) throws IOException { BufferedReader br = new BufferedReader ( new InputStreamReader ( System . in ) ) ; StringBuilder sb = new StringBuilder ( ) ; String [ ] sr = br . readLine ( ) . split ( " ▁ " ) ; int c1 , c2 , c3 , c4 ; c1 = Integer . parseInt ( sr [ 0 ] ) ; c2 = Integer . parseInt ( sr [ 1 ] ) ; c3 = Integer . parseInt ( sr [ 2 ] ) ; c4 = Integer . parseInt ( sr [ 3 ] ) ; String [ ] ss = br . readLine ( ) . split ( " ▁ " ) ; int n = Integer . parseInt ( ss [ 0 ] ) ; int m = Integer . parseInt ( ss [ 1 ] ) ; int [ ] arr = new int [ n ] ; int [ ] arr1 = new int [ m ] ; int sum1 = 0 , sum2 = 0 ; String [ ] st = br . readLine ( ) . split ( " ▁ " ) ; String [ ] su = br . readLine ( ) . split ( " ▁ " ) ; for ( int i = 0 ; i < n ; i ++ ) { arr [ i ] = Integer . parseInt ( st [ i ] ) ; sum1 += Math . min ( c1 * arr [ i ] , c2 ) ; } for ( int i = 0 ; i < m ; i ++ ) { arr1 [ i ] = Integer . parseInt ( su [ i ] ) ; sum2 += Math . min ( c1 * arr1 [ i ] , c2 ) ; } int sum3 = Math . min ( Math . min ( Math . min ( sum1 + c3 , sum2 + c3 ) , sum1 + sum2 ) , 2 * c3 ) ; sum3 = Math . min ( sum3 , c4 ) ; System . out . println ( sum3 ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions))) (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 (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)))) (local_variable_declaration type: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (string_literal))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (decimal_integer_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (decimal_integer_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (decimal_integer_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (decimal_integer_literal)))))) (local_variable_declaration type: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (string_literal))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (decimal_integer_literal)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (decimal_integer_literal)))))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (identifier))))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (identifier))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal)) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (string_literal))))) (local_variable_declaration type: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (string_literal))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (array_access array: (identifier) index: (identifier))) (identifier))))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (array_access array: (identifier) index: (identifier))) (identifier))))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (binary_expression left: (identifier) right: (identifier)))) (binary_expression left: (identifier) right: (identifier)))) (binary_expression left: (decimal_integer_literal) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))))