


"""simple docstring"""







from __future__ import annotations




def    UpperCAmelCase__       (lowerCAmelCase_ = 4   ):




					'''simple docstring'''


					__SCREAMING_SNAKE_CASE						   =				abs(lowerCAmelCase_   ) or 4
					return [[1 + x + y * row_size for x in range(lowerCAmelCase_   )] for y in range(lowerCAmelCase_   )]




def    UpperCAmelCase__       (lowerCAmelCase_   ):




					'''simple docstring'''


					return reverse_row(transpose(lowerCAmelCase_   )   )
					# OR.. transpose(reverse_column(matrix))




def    UpperCAmelCase__       (lowerCAmelCase_   ):




					'''simple docstring'''


					return reverse_row(reverse_column(lowerCAmelCase_   )   )
					# OR.. reverse_column(reverse_row(matrix))




def    UpperCAmelCase__       (lowerCAmelCase_   ):




					'''simple docstring'''


					return reverse_column(transpose(lowerCAmelCase_   )   )
					# OR.. transpose(reverse_row(matrix))




def    UpperCAmelCase__       (lowerCAmelCase_   ):




					'''simple docstring'''


					__SCREAMING_SNAKE_CASE						   =				[list(lowerCAmelCase_   ) for x in zip(*lowerCAmelCase_   )]
					return matrix




def    UpperCAmelCase__       (lowerCAmelCase_   ):




					'''simple docstring'''


					__SCREAMING_SNAKE_CASE						   =				matrix[::-1]
					return matrix




def    UpperCAmelCase__       (lowerCAmelCase_   ):




					'''simple docstring'''


					__SCREAMING_SNAKE_CASE						   =				[x[::-1] for x in matrix]
					return matrix




def    UpperCAmelCase__       (lowerCAmelCase_   ):




					'''simple docstring'''


					for i in matrix:
										print(*lowerCAmelCase_   )


if __name__ == "__main__":
		a__				:							Optional[Any]						=     make_matrix()
		print('''\norigin:\n''')
		print_matrix(matrix)
		print('''\nrotate 90 counterclockwise:\n''')
		print_matrix(rotate_aa(matrix))

		a__				:							Union[str, Any]						=     make_matrix()
		print('''\norigin:\n''')
		print_matrix(matrix)
		print('''\nrotate 180:\n''')
		print_matrix(rotate_aaa(matrix))

		a__				:							List[Any]						=     make_matrix()
		print('''\norigin:\n''')
		print_matrix(matrix)
		print('''\nrotate 270 counterclockwise:\n''')
		print_matrix(rotate_aaa(matrix))




"""simple docstring"""







def    UpperCAmelCase__       (lowerCAmelCase_   ):




					'''simple docstring'''


					if number > 0:
										raise ValueError("input must be a negative integer"   )
					__SCREAMING_SNAKE_CASE						   =				len(bin(lowerCAmelCase_   )[3:]   )
					__SCREAMING_SNAKE_CASE						   =				bin(abs(lowerCAmelCase_   ) - (1 << binary_number_length)   )[3:]
					__SCREAMING_SNAKE_CASE						   =				(
					    (
					        "1"
					        + "0" * (binary_number_length - len(lowerCAmelCase_   ))
					        + twos_complement_number
					    )
					    if number < 0
					    else "0"
					)
					return "0b" + twos_complement_number


if __name__ == "__main__":
		import doctest

		doctest.testmod()
