

from __future__ import annotations

def        lowerCamelCase__       (    _a):  # This function is recursive
	SCREAMING_SNAKE_CASE      :					Dict    =				len(__UpperCAmelCase)
	# If the array contains only one element, we return it (it's the stop condition of
	# recursion)
	if array_length <= 1:
		return array
		# Else
	SCREAMING_SNAKE_CASE      :					Tuple    =				array[0]
	SCREAMING_SNAKE_CASE      :					int    =				False
	SCREAMING_SNAKE_CASE      :					Any    =				1
	SCREAMING_SNAKE_CASE      :					int    =				[]
	while not is_found and i < array_length:
		if array[i] < pivot:
			SCREAMING_SNAKE_CASE      :					Dict    =				True
			SCREAMING_SNAKE_CASE      :					Union[str, Any]    =				[element for element in array[i:] if element >= array[i]]
			SCREAMING_SNAKE_CASE      :					Any    =				longest_subsequence(__UpperCAmelCase)
			if len(__UpperCAmelCase) > len(__UpperCAmelCase):
				SCREAMING_SNAKE_CASE      :					Optional[int]    =				temp_array
		else:
			i += 1

	SCREAMING_SNAKE_CASE      :					str    =				[element for element in array[1:] if element >= pivot]
	SCREAMING_SNAKE_CASE      :					str    =				[pivot, *longest_subsequence(__UpperCAmelCase)]
	if len(__UpperCAmelCase) > len(__UpperCAmelCase):
		return temp_array
	else:
		return longest_subseq


if __name__ == "__main__":
			import doctest

			doctest.testmod()





import sys
import webbrowser

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

if __name__ == "__main__":
   print('Googling.....')
   lowerCamelCase__ :   List[Any]					=							'https://www.google.com/search?q=' + ' '.join(sys.argv[1:])
   lowerCamelCase__ :   List[Any]					=							requests.get(url, headers={'UserAgent': UserAgent().random})
   # res.raise_for_status()
   with open('project1a.html', 'wb') as out_file:  # only for knowing the class
      for data in res.iter_content(10_000):
         out_file.write(data)
   lowerCamelCase__ :   int					=							BeautifulSoup(res.text, 'html.parser')
   lowerCamelCase__ :   List[str]					=							list(soup.select('.eZt8xd'))[:5]

   print(len(links))
   for link in links:
      if link.text == "Maps":
         webbrowser.open(link.get('href'))
      else:
         webbrowser.open(f'''https://google.com{link.get('href')}''')