



def A						(       __UpperCamelCase					)						->      int:

			if not isinstance(__UpperCamelCase ,	__UpperCamelCase					):
						raise TypeError('only integers accepted as input'					)
			else:
						A__       =    str(abs(__UpperCamelCase					)					)
						A__       =    [list(__UpperCamelCase					) for char in range(len(__UpperCamelCase					)					)]
						for index in range(len(__UpperCamelCase					)					):
									num_transpositions[index].pop(__UpperCamelCase					)
						return max(
						    int(''.join(list(__UpperCamelCase					)					)					) for transposition in num_transpositions					)


if __name__ == "__main__":
							__import__('''doctest''').testmod()











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

							print('''Googling.....''')

							SCREAMING_SNAKE_CASE__       =      f'https://www.google.com/search?q={query}&num=100'

							SCREAMING_SNAKE_CASE__       =      requests.get(
							    url,
							    headers={'''User-Agent''': str(UserAgent().random)},
							)

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

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

							webbrowser.open(link)




