'''simple docstring'''




def       A_ (			_lowerCamelCase      :				Dict     ):







      if len(_lowerCamelCase     ) <= 1:
            return [tuple(_lowerCamelCase     )]

      _lowerCAmelCase		 = []

      def generate(_lowerCamelCase      :				Union[str, Any]	,	_lowerCamelCase      :				Tuple     ):
            _lowerCAmelCase		 = [0] * n
            res.append(tuple(_lowerCamelCase     )     )

            _lowerCAmelCase		 = 0
            while i < n:
                  if c[i] < i:
                        if i % 2 == 0:
                              _lowerCAmelCase ,	_lowerCAmelCase		 = arr[i], arr[0]
                        else:
                              _lowerCAmelCase ,	_lowerCAmelCase		 = arr[i], arr[c[i]]
                        res.append(tuple(_lowerCamelCase     )     )
                        c[i] += 1
                        _lowerCAmelCase		 = 0
                  else:
                        _lowerCAmelCase		 = 0
                        i += 1

      generate(len(_lowerCamelCase     )	,	_lowerCamelCase     )
      return res


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









'''simple docstring'''

def _SCREAMING_SNAKE_CASE (A			)			->			bool:






       """simple docstring"""







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

def _SCREAMING_SNAKE_CASE (A			)			->			float:






       """simple docstring"""







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


if __name__ == "__main__":
 import doctest

 doctest.testmod()




