


def  SCREAMING_SNAKE_CASE_		(    __A				:    int						,					__A				:    int       )			->	str:

       """simple docstring"""

       if a < 0 or b < 0:
              raise ValueError('the value of both inputs must be positive'       )

       a_      :	Optional[int]							=						str(bin(__A       )       )[2:]  # remove the leading "0b"
       a_      :	Any							=						str(bin(__A       )       )[2:]  # remove the leading "0b"

       a_      :	Optional[int]							=						max(len(__A       )						,					len(__A       )       )

       return "0b" + "".join(
           str(int(char_a == '1' and char_b == '1'       )       )
           for char_a, char_b in zip(a_binary.zfill(__A       )						,					b_binary.zfill(__A       )       )       )


if __name__ == "__main__":
   import doctest

   doctest.testmod()






def  SCREAMING_SNAKE_CASE_		(    __A				:    list       )			->	list:

       """simple docstring"""

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

       a_      :	Optional[Any]							=						[]

       def generate(__A				:    int						,					__A				:    list       ):
              a_      :	str							=						[0] * n
              res.append(tuple(__A       )       )

              a_      :	Optional[int]							=						0
              while i < n:
                     if c[i] < i:
                            if i % 2 == 0:
                                   a_							,	a_      :	Dict							=						arr[i], arr[0]
                            else:
                                   a_							,	a_      :	Union[str, Any]							=						arr[i], arr[c[i]]
                            res.append(tuple(__A       )       )
                            c[i] += 1
                            a_      :	Dict							=						0
                     else:
                            a_      :	Optional[Any]							=						0
                            i += 1

       generate(len(__A       )						,					__A       )
       return res


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


