






"""simple docstring"""


import os
from distutils.util import strtobool


def        UpperCAmelCase      (					a__     ,      a__ ):





						'''simple docstring'''






						for e in env_keys:
												lowerCAmelCase   :Optional[Any]						=			int(os.environ.get(a__     ,      -1 ) )
												if val >= 0:
																		return val
						return default


def        UpperCAmelCase      (					a__     ,      a__=False ):





						'''simple docstring'''






						lowerCAmelCase   :Dict						=			os.environ.get(a__     ,      str(a__ ) )
						return strtobool(a__ ) == 1  # As its name indicates `strtobool` actually returns an int...







def        UpperCAmelCase      (					a__     ,      a__="no" ):





						'''simple docstring'''






						lowerCAmelCase   :Tuple						=			os.environ.get(a__     ,      str(a__ ) )
						return value







"""simple docstring"""


from math import loga


def        UpperCAmelCase      (					a__ ):





						'''simple docstring'''






						if a < 0:
												raise ValueError('Input value must be a positive integer' )
						elif isinstance(a__     ,      a__ ):
												raise TypeError('Input value must be a \'int\' type' )
						return 0 if (a == 0) else int(loga(a & -a ) )


if __name__ == "__main__":
		import doctest

		doctest.testmod()