

'''simple docstring'''
def  _A		(     snake_case					)      ->     Union[str, Any]:
   return sum(i for i in range(1		,							number // 2 + 1					) if number % i == 0					) == number


if __name__ == "__main__":
       print('Program to check whether a number is a Perfect number or not...')
       _snake_case         =  int(input('Enter number: ').strip())
       print(F'''{number} is {'' if perfect(number) else 'not '}a Perfect Number.''')









'''simple docstring'''
from __future__ import annotations







def  _A		(     snake_case		,							snake_case = None		,							snake_case = None					)      ->     None:
   if start is None:
      _lowercase      :				Dict      					=       0

   if end is None:
      _lowercase      :				List[Any]      					=       len(snake_case					) - 1

   if start >= end:
      return

   _lowercase      :				int      					=       (start + end) // 2

   slowsort(snake_case		,							snake_case		,							snake_case					)
   slowsort(snake_case		,							mid + 1		,							snake_case					)

   if sequence[end] < sequence[mid]:
      _lowercase					,				_lowercase      :				Any      					=       sequence[mid], sequence[end]

   slowsort(snake_case		,							snake_case		,							end - 1					)


if __name__ == "__main__":
    from doctest import testmod

    testmod()






