




'''simple docstring'''

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

							print('Googling.....')

							a    :							Union[str, Any]										=    f'''https://www.google.com/search?q={query}&num=100'''

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

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

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

							webbrowser.open(link)






"""simple docstring"""







def     UpperCAmelCase_					(				__a   :			list						):




			'''simple docstring'''



			if len(__a						) <= 1:
						return lst

			_lowerCamelCase					:					str	       =    1

			while i < len(__a						):
						if lst[i - 1] <= lst[i]:
									i += 1
						else:
									_lowerCamelCase       ,							_lowerCamelCase					:					Optional[Any]	       =    lst[i], lst[i - 1]
									i -= 1
									if i == 0:
												_lowerCamelCase					:					Dict	       =    1

			return lst


if __name__ == "__main__":
	a_							=    input("""Enter numbers separated by a comma:\n""").strip()
	a_							=    [int(item) for item in user_input.split(""",""")]
	print(gnome_sort(unsorted))





