

'''simple docstring'''

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


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

						testmod()










'''simple docstring'''



import math



def 	__lowerCAmelCase       (				lowerCamelCase :    int       ):






	'''simple docstring'''




	if not isinstance(lowerCamelCase					,		lowerCamelCase       ):
		__lowerCAmelCase       				=	f'''Input value of [number={number}] must be an integer'''
		raise TypeError(lowerCamelCase       )
	if number < 1:
		__lowerCAmelCase       				=	f'''Input value of [number={number}] must be a positive integer'''
		raise ValueError(lowerCamelCase       )
	__lowerCAmelCase       				=	[number]
	while number != 1:
		if number % 2 == 0:
			__lowerCAmelCase       				=	math.floor(math.sqrt(lowerCamelCase       )       )
		else:
			__lowerCAmelCase       				=	math.floor(
			    math.sqrt(lowerCamelCase       ) * math.sqrt(lowerCamelCase       ) * math.sqrt(lowerCamelCase       )       )
		sequence.append(lowerCamelCase       )
	return sequence


if __name__ == "__main__":
	import doctest

	doctest.testmod()