





def  A_(      A ):
	UpperCAmelCase_		    =  str(A ).strip()
	if not bin_string:
		raise ValueError("""Empty string was passed to the function""" )
	UpperCAmelCase_		    =  bin_string[0] == """-"""
	if is_negative:
		UpperCAmelCase_		    =  bin_string[1:]
	if not all(char in """01""" for char in bin_string ):
		raise ValueError("""Non-binary value was passed to the function""" )
	UpperCAmelCase_		    =  0
	for char in bin_string:
		UpperCAmelCase_		    =  2 * decimal_number + int(A )
	return -decimal_number if is_negative else decimal_number


if __name__ == "__main__":
				from doctest import testmod

				testmod()









def  A_(      A ):
	if not isinstance(A					,   A ):
		UpperCAmelCase_		    =  f"""Input value of [number={number}] must be an integer"""
		raise TypeError(A )
	if number < 0 or number % 2 == 1:
		return False
	UpperCAmelCase_		    =  int(number**0.5 )
	return number == number_sqrt * (number_sqrt + 1)


if __name__ == "__main__":
				import doctest

				doctest.testmod()


