

def _a				( SCREAMING_SNAKE_CASE	:    List[str]					,      SCREAMING_SNAKE_CASE	:    Tuple					,      SCREAMING_SNAKE_CASE	:    str	)					->					int:

 """simple docstring"""






 __lowerCAmelCase:     Tuple     			=   index
 __lowerCAmelCase:     str     			=   2 * index + 1
 __lowerCAmelCase:     str     			=   2 * index + 2
 if left_index < heap_size and unsorted[left_index] > unsorted[largest]:
  __lowerCAmelCase:     Optional[int]     			=   left_index

 if right_index < heap_size and unsorted[right_index] > unsorted[largest]:
  __lowerCAmelCase:     Optional[int]     			=   right_index

 if largest != index:
  __lowerCAmelCase			,							__lowerCAmelCase:     int     			=   unsorted[index], unsorted[largest]
  heapify(SCREAMING_SNAKE_CASE					,      SCREAMING_SNAKE_CASE					,      SCREAMING_SNAKE_CASE	)







def _a				( SCREAMING_SNAKE_CASE	:    Tuple	)					->					List[str]:

 """simple docstring"""






 __lowerCAmelCase:     str     			=   len(SCREAMING_SNAKE_CASE	)
 for i in range(n // 2 - 1					,      -1					,      -1	):
  heapify(SCREAMING_SNAKE_CASE					,      SCREAMING_SNAKE_CASE					,      SCREAMING_SNAKE_CASE	)
 for i in range(n - 1					,      0					,      -1	):
  __lowerCAmelCase			,							__lowerCAmelCase:     Optional[Any]     			=   unsorted[i], unsorted[0]
  heapify(SCREAMING_SNAKE_CASE					,      0					,      SCREAMING_SNAKE_CASE	)
 return unsorted


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








import requests
from bsa import BeautifulSoup







def _a				( SCREAMING_SNAKE_CASE	:    int					,      SCREAMING_SNAKE_CASE	:    str	)					->					str:

 """simple docstring"""






 __lowerCAmelCase:     Tuple     			=   (
     'https://www.horoscope.com/us/horoscopes/general/'
     f'''horoscope-general-daily-{day}.aspx?sign={zodiac_sign}'''
 )
 __lowerCAmelCase:     Optional[Any]     			=   BeautifulSoup(requests.get(SCREAMING_SNAKE_CASE	).content					,      'html.parser'	)
 return soup.find('div'					,      class_='main-horoscope'	).p.text


if __name__ == "__main__":
  print('''Daily Horoscope. \n''')
  print(
      '''enter your Zodiac sign number:\n''',
      '''1. Aries\n''',
      '''2. Taurus\n''',
      '''3. Gemini\n''',
      '''4. Cancer\n''',
      '''5. Leo\n''',
      '''6. Virgo\n''',
      '''7. Libra\n''',
      '''8. Scorpio\n''',
      '''9. Sagittarius\n''',
      '''10. Capricorn\n''',
      '''11. Aquarius\n''',
      '''12. Pisces\n''',
  )
  _a	 =     int(input('''number> ''').strip())
  print('''choose some day:\n''', '''yesterday\n''', '''today\n''', '''tomorrow\n''')
  _a	 =     input('''enter the day> ''')
  _a	 =     horoscope(zodiac_sign, day)
  print(horoscope_text)





