




from __future__ import annotations

from typing import Any
def 		a_							( __lowerCAmelCase				):
  create_state_space_tree(__lowerCAmelCase   , []   , 0				)
def 		a_							( __lowerCAmelCase   , __lowerCAmelCase   , __lowerCAmelCase				):

  if index == len(__lowerCAmelCase				):
    print(__lowerCAmelCase				)
    return

  create_state_space_tree(__lowerCAmelCase   , __lowerCAmelCase   , index + 1				)
  current_subsequence.append(sequence[index]				)
  create_state_space_tree(__lowerCAmelCase   , __lowerCAmelCase   , index + 1				)
  current_subsequence.pop()


if __name__ == "__main__":
      __magic_name__  :  list[Any]					=       [3, 1, 2, 4]
      generate_all_subsequences(seq)

      seq.clear()
      seq.extend(["""A""", """B""", """C"""])
      generate_all_subsequences(seq)







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__":
      __magic_name__  :  List[Any]					=       """%20""".join(argv[1:]) if len(argv) > 1 else quote(str(input("""Search: """)))

      print("""Googling.....""")

      __magic_name__  :  List[Any]					=       F"https://www.google.com/search?q={query}&num=100"

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

      try:
            __magic_name__  :  Optional[Any]					=       (
                BeautifulSoup(res.text, """html.parser""")
                .find("""div""", attrs={"""class""": """yuRUbf"""})
                .find("""a""")
                .get("""href""")
            )

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

      webbrowser.open(link)

