


"""simple docstring"""


from __future__ import annotations




def 	snake_case		(  UpperCamelCase__							:    Any      ,					UpperCamelCase__							:    Optional[int]     ) ->   Union[str, Any]:
      lowerCamelCase       :       list[list[int]]   =						[]
      lowerCamelCase       :       list[int]   =						[]
      lowerCamelCase       :       Optional[Any]   =						0
      lowerCamelCase       :       int   =						sum(A__     )
      create_state_space_tree(A__      ,					A__      ,					A__      ,					A__      ,					A__      ,					A__     )
      return result




def 	snake_case		(  UpperCamelCase__							:    List[str]      ,					UpperCamelCase__							:    Optional[Any]      ,					UpperCamelCase__							:    List[Any]      ,					UpperCamelCase__							:    List[Any]      ,					UpperCamelCase__							:    Union[str, Any]      ,					UpperCamelCase__							:    List[Any]      ,					) ->   Dict:
      if sum(A__     ) > max_sum or (remaining_nums_sum + sum(A__     )) < max_sum:
            return
      if sum(A__     ) == max_sum:
            result.append(A__     )
            return
      for index in range(A__      ,					len(A__     )     ):
            create_state_space_tree(
                A__      ,					A__      ,					index + 1      ,					[*path, nums[index]]      ,					A__      ,					remaining_nums_sum - nums[index]      ,					)
__lowerCamelCase   :List[str]						     =		[3, 34, 4, 12, 5, 2]
__lowerCamelCase   :str						     =		9
__lowerCamelCase   :Optional[int]						     =		generate_sum_of_subsets_soln(nums, max_sum)






print(*result)








import webbrowser
from sys import argv
from urllib.parse import parse_qs, quote

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

if __name__ == "__main__":
				lowerCAmelCase__			:      Optional[int]								='%20'.join(argv[1:]) if len(argv) > 1 else quote(str(input('Search: ')))

				print('Googling.....')

				lowerCAmelCase__			:      Optional[int]								=F"""https://www.google.com/search?q={query}&num=100"""

				lowerCAmelCase__			:      Union[str, Any]								=requests.get(
				    url,
				    headers={'User-Agent': str(UserAgent().random)},
				)

				try:
								lowerCAmelCase__			:      str								=(
								    BeautifulSoup(res.text, 'html.parser')
								    .find('div', attrs={'class': 'yuRUbf'})
								    .find('a')
								    .get('href')
								)

				except AttributeError:
								lowerCAmelCase__			:      Optional[Any]								=parse_qs(
								    BeautifulSoup(res.text, 'html.parser')
								    .find('div', attrs={'class': 'kCrYT'})
								    .find('a')
								    .get('href')
								)['url'][0]

				webbrowser.open(link)





