
'''simple docstring'''

# Algorithm for the pigeonhole sorting




def        UpperCAmelCase_ (  lowerCamelCase_			):







 """simple docstring"""


 lowerCAmelCase__     :   Dict     		=	min(lowerCamelCase_			)  # min() finds the minimum value
 lowerCAmelCase__     :   List[Any]     		=	max(lowerCamelCase_			)  # max() finds the maximum value

 lowerCAmelCase__     :   Dict     		=	max_val - min_val + 1  # size is difference of max and min values plus one

 # list of pigeonholes of size equal to the variable size
 lowerCAmelCase__     :   Dict     		=	[0] * size

 # Populate the pigeonholes.
 for x in a:
  assert isinstance(lowerCamelCase_      ,			lowerCamelCase_			), "integers only please"
  holes[x - min_val] += 1

 # Putting the elements back into the array in an order.
 lowerCAmelCase__     :   List[str]     		=	0
 for count in range(lowerCamelCase_			):
  while holes[count] > 0:
   holes[count] -= 1
   lowerCAmelCase__     :   str     		=	count + min_val
   i += 1


def        UpperCAmelCase_ (  ):







 """simple docstring"""


 lowerCAmelCase__     :   Optional[int]     		=	[8, 3, 2, 7, 4, 6, 8]
 pigeonhole_sort(lowerCamelCase_			)
 print("Sorted order is:"      ,			" ".join(lowerCamelCase_			)			)


if __name__ == "__main__":
     main()







'''simple docstring'''

import sys
import webbrowser

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

if __name__ == "__main__":
     print("""Googling.....""")
     snake_case									=    """https://www.google.com/search?q=""" + """ """.join(sys.argv[1:])
     snake_case									=    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(1_00_00):
               out_file.write(data)
     snake_case									=    BeautifulSoup(res.text, """html.parser""")
     snake_case									=    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")}')





