static long res ( int bit ) {
  if ( dp [ bit ] > 0 ) return dp [ bit ] ;
  for ( int i = 0 ;
  i < N ;
  i ++ ) {
    if ( ( two [ i ] & bit ) > 0 ) {
      if ( admit ( bit - two [ i ] , i ) ) {
        dp [ bit ] += res ( bit - two [ i ] ) ;
      }
    }
  }
  return dp [ bit ] ;
}

static long res ( int bit ) { if ( dp [ bit ] > 0 ) return dp [ bit ] ; for ( int i = 0 ; i < N ; i ++ ) { if ( ( two [ i ] & bit ) > 0 ) { if ( admit ( bit - two [ i ] , i ) ) { dp [ bit ] += res ( bit - two [ i ] ) ; } } } return dp [ bit ] ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal))) consequence: (return_statement (array_access array: (identifier) index: (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 (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (identifier))) right: (decimal_integer_literal))) consequence: (block (if_statement condition: (parenthesized_expression (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (array_access array: (identifier) index: (identifier))) (identifier)))) consequence: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (array_access array: (identifier) index: (identifier))))))))))))) (return_statement (array_access array: (identifier) index: (identifier)))))