"""simple docstring"""





from timeit import timeit





def 				a_     (      _lowerCAmelCase  : int     ):





       '''simple docstring'''

       if number < 0:
              raise ValueError('the value of input must not be negative'     )
       lowercase__			:		Any       =	0
       while number:
              number &= number - 1
              result += 1
       return result





def 				a_     (      _lowerCAmelCase  : int     ):





       '''simple docstring'''

       if number < 0:
              raise ValueError('the value of input must not be negative'     )
       lowercase__			:		List[str]       =	0
       while number:
              if number % 2 == 1:
                     result += 1
              number >>= 1
       return result





def 				a_     (      ):





       '''simple docstring'''

       def do_benchmark(_lowerCAmelCase  : int     ) -> None:
              lowercase__			:		List[str]       =	'import __main__ as z'
              print(f"""Benchmark when {number = }:"""     )
              print(f"""{get_set_bits_count_using_modulo_operator(_lowerCAmelCase     ) = }"""     )
              lowercase__			:		Tuple       =	timeit('z.get_set_bits_count_using_modulo_operator(25)'   , setup=_lowerCAmelCase     )
              print(f"""timeit() runs in {timing} seconds"""     )
              print(f"""{get_set_bits_count_using_brian_kernighans_algorithm(_lowerCAmelCase     ) = }"""     )
              lowercase__			:		List[Any]       =	timeit(
                  'z.get_set_bits_count_using_brian_kernighans_algorithm(25)'   , setup=_lowerCAmelCase   , )
              print(f"""timeit() runs in {timing} seconds"""     )

       for number in (25, 37, 58, 0):
              do_benchmark(_lowerCAmelCase     )
              print()


if __name__ == "__main__":
       import doctest

       doctest.testmod()
       benchmark()



"""simple docstring"""





from __future__ import annotations



def       lowerCamelCase__		(			__snake_case,     __snake_case	)							->		float:


					"""simple docstring"""





					_UpperCamelCase							 =  sorted(numsa + numsa	)
					_UpperCamelCase ,  _UpperCamelCase							 =  divmod(len(__snake_case	),     2	)
					if mod == 1:
										return all_numbers[div]
					else:
										return (all_numbers[div] + all_numbers[div - 1]) / 2


if __name__ == "__main__":
				import doctest

				doctest.testmod()
				_a														=		[float(x) for x in input("""Enter the elements of first array: """).split()]
				_a														=		[float(x) for x in input("""Enter the elements of second array: """).split()]
				print(F"""The median of two arrays is: {median_of_two_arrays(array_a, array_a)}""")






