





'''simple docstring'''

def    a__							(							lowercase   :	list )						->						bool:





     """simple docstring"""

     if not isinstance(lowercase,   lowercase ):
          raise ValueError('''Input series is not valid, valid series - [2, 4, 6]''' )
     if len(lowercase ) == 0:
          raise ValueError('''Input list must be a non empty list''' )
     if len(lowercase ) == 1:
          return True
     _UpperCamelCase							       =			series[1] - series[0]
     for index in range(len(lowercase ) - 1 ):
          if series[index + 1] - series[index] != common_diff:
               return False
     return True







def    a__							(							lowercase   :	list )						->						float:





     """simple docstring"""

     if not isinstance(lowercase,   lowercase ):
          raise ValueError('''Input series is not valid, valid series - [2, 4, 6]''' )
     if len(lowercase ) == 0:
          raise ValueError('''Input list must be a non empty list''' )
     _UpperCamelCase							       =			0
     for val in series:
          answer += val
     return answer / len(lowercase )


if __name__ == "__main__":
   import doctest

   doctest.testmod()










'''simple docstring'''

from __future__ import annotations







def    a__							(							lowercase   :	list,   lowercase   :	int )						->						List[Any]:





     """simple docstring"""

     if len(lowercase ) <= 1 or n <= 1:
          return

     insert_next(lowercase,   n - 1 )
     rec_insertion_sort(lowercase,   n - 1 )







def    a__							(							lowercase   :	list,   lowercase   :	int )						->						Optional[Any]:





     """simple docstring"""

     if index >= len(lowercase ) or collection[index - 1] <= collection[index]:
          return

     # Swaps adjacent elements since they are not in ascending order
     _UpperCamelCase       ,							_UpperCamelCase							       =			(
         collection[index],
         collection[index - 1],
     )

     insert_next(lowercase,   index + 1 )


if __name__ == "__main__":
   lowercase__		:     str			=							input('Enter integers separated by spaces: ')
   lowercase__		:     list[int]			=							[int(num) for num in numbers.split()]
   rec_insertion_sort(number_list, len(number_list))
   print(number_list)



