


from __future__ import annotations


def      a	(							SCREAMING_SNAKE_CASE_      :		int							,			SCREAMING_SNAKE_CASE_      :		int       ):






       """simple docstring"""





       UpperCamelCase    :	list[list[int]]   	=		[]
       create_all_state(1							,			SCREAMING_SNAKE_CASE_							,			SCREAMING_SNAKE_CASE_							,			[]							,			SCREAMING_SNAKE_CASE_       )
       return result


def      a	(							SCREAMING_SNAKE_CASE_      :		int							,			SCREAMING_SNAKE_CASE_      :		int							,			SCREAMING_SNAKE_CASE_      :		int							,			SCREAMING_SNAKE_CASE_      :		list[int]							,			SCREAMING_SNAKE_CASE_      :		list[list[int]]							,			):






       """simple docstring"""





       if level == 0:
              total_list.append(current_list[:]       )
              return

       for i in range(SCREAMING_SNAKE_CASE_							,			total_number - level + 2       ):
              current_list.append(SCREAMING_SNAKE_CASE_       )
              create_all_state(i + 1							,			SCREAMING_SNAKE_CASE_							,			level - 1							,			SCREAMING_SNAKE_CASE_							,			SCREAMING_SNAKE_CASE_       )
              current_list.pop()


def      a	(							SCREAMING_SNAKE_CASE_      :		list[list[int]]       ):






       """simple docstring"""





       for i in total_list:
              print(*SCREAMING_SNAKE_CASE_       )


if __name__ == "__main__":
  __UpperCAmelCase : List[str] 			=				4
  __UpperCAmelCase : List[Any] 			=				2
  __UpperCAmelCase : Dict 			=				generate_all_combinations(n, k)
  print_all_state(total_list)





def      a	(							SCREAMING_SNAKE_CASE_      :		int							,			SCREAMING_SNAKE_CASE_      :		int       ):






       """simple docstring"""





       if a < 0 or b < 0:
              raise ValueError('''the value of both inputs must be positive'''       )
       UpperCamelCase    :	int   	=		str(bin(SCREAMING_SNAKE_CASE_       )       )[2:]  # remove the leading "0b"
       UpperCamelCase    :	List[str]   	=		str(bin(SCREAMING_SNAKE_CASE_       )       )[2:]
       UpperCamelCase    :	Tuple   	=		max(len(SCREAMING_SNAKE_CASE_       )							,			len(SCREAMING_SNAKE_CASE_       )       )
       return "0b" + "".join(
           str(int('''1''' in (char_a, char_b)       )       )
           for char_a, char_b in zip(a_binary.zfill(SCREAMING_SNAKE_CASE_       )							,			b_binary.zfill(SCREAMING_SNAKE_CASE_       )       )       )


if __name__ == "__main__":
  import doctest

  doctest.testmod()

