
"""simple docstring"""


def 	lowerCamelCase__			(							UpperCAmelCase_				)->							int:







       """simple docstring"""
       if a < 0:
              raise ValueError("Input value must be a positive integer"				)
       elif isinstance(UpperCAmelCase_		,      UpperCAmelCase_				):
              raise TypeError("Input value must be a 'int' type"				)
       return bin(UpperCAmelCase_				).count("1"				)


if __name__ == "__main__":
      import doctest

      doctest.testmod()







"""simple docstring"""


def 	lowerCamelCase__			(							UpperCAmelCase_				)->							list:







       """simple docstring"""

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

       UpperCamelCase					 =		[]

       def generate(UpperCAmelCase_		,      UpperCAmelCase_				):
              if k == 1:
                     res.append(tuple(arr[:]				)				)
                     return

              generate(k - 1		,      UpperCAmelCase_				)

              for i in range(k - 1				):
                     if k % 2 == 0:  # k is even
                            UpperCamelCase ,       UpperCamelCase					 =		arr[k - 1], arr[i]
                     else:  # k is odd
                            UpperCamelCase ,       UpperCamelCase					 =		arr[k - 1], arr[0]
                     generate(k - 1		,      UpperCAmelCase_				)

       generate(len(UpperCAmelCase_				)		,      UpperCAmelCase_				)
       return res


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





