



from ..utils import DummyObject, requires_backends


class   __lowerCAmelCase  (		metaclass=UpperCAmelCase_   ):
					"""simple docstring"""






					A__					:		Union[str, Any]      							=     ["flax"]



					def __init__(  self       :							Union[str, Any]					,       *_snake_case       :							Dict					,       **_snake_case       :							Optional[int]       ):






								"""simple docstring"""


								requires_backends(self					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							Dict					,       *_snake_case       :							str					,       **_snake_case       :							List[str]       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							Union[str, Any]					,       *_snake_case       :							List[str]					,       **_snake_case       :							int       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )







class   __lowerCAmelCase  (		metaclass=UpperCAmelCase_   ):
					"""simple docstring"""






					A__					:		int      							=     ["flax"]



					def __init__(  self       :							str					,       *_snake_case       :							Tuple					,       **_snake_case       :							Dict       ):






								"""simple docstring"""


								requires_backends(self					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							List[str]					,       *_snake_case       :							Optional[int]					,       **_snake_case       :							int       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							List[Any]					,       *_snake_case       :							List[Any]					,       **_snake_case       :							str       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )







class   __lowerCAmelCase  (		metaclass=UpperCAmelCase_   ):
					"""simple docstring"""






					A__					:		List[Any]      							=     ["flax"]



					def __init__(  self       :							Any					,       *_snake_case       :							List[str]					,       **_snake_case       :							Any       ):






								"""simple docstring"""


								requires_backends(self					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							int					,       *_snake_case       :							Tuple					,       **_snake_case       :							Optional[Any]       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							Optional[int]					,       *_snake_case       :							str					,       **_snake_case       :							int       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )







class   __lowerCAmelCase  (		metaclass=UpperCAmelCase_   ):
					"""simple docstring"""






					A__					:		Tuple      							=     ["flax"]



					def __init__(  self       :							Optional[int]					,       *_snake_case       :							str					,       **_snake_case       :							List[str]       ):






								"""simple docstring"""


								requires_backends(self					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							Dict					,       *_snake_case       :							List[Any]					,       **_snake_case       :							Optional[int]       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							Optional[Any]					,       *_snake_case       :							int					,       **_snake_case       :							Tuple       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )







class   __lowerCAmelCase  (		metaclass=UpperCAmelCase_   ):
					"""simple docstring"""






					A__					:		Optional[Any]      							=     ["flax"]



					def __init__(  self       :							List[str]					,       *_snake_case       :							int					,       **_snake_case       :							Any       ):






								"""simple docstring"""


								requires_backends(self					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							Union[str, Any]					,       *_snake_case       :							List[str]					,       **_snake_case       :							List[Any]       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							int					,       *_snake_case       :							Union[str, Any]					,       **_snake_case       :							Any       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )







class   __lowerCAmelCase  (		metaclass=UpperCAmelCase_   ):
					"""simple docstring"""






					A__					:		Optional[int]      							=     ["flax"]



					def __init__(  self       :							Optional[int]					,       *_snake_case       :							List[str]					,       **_snake_case       :							Optional[Any]       ):






								"""simple docstring"""


								requires_backends(self					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							str					,       *_snake_case       :							List[str]					,       **_snake_case       :							Union[str, Any]       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							Optional[Any]					,       *_snake_case       :							List[str]					,       **_snake_case       :							Tuple       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )







class   __lowerCAmelCase  (		metaclass=UpperCAmelCase_   ):
					"""simple docstring"""






					A__					:		List[str]      							=     ["flax"]



					def __init__(  self       :							List[str]					,       *_snake_case       :							int					,       **_snake_case       :							List[Any]       ):






								"""simple docstring"""


								requires_backends(self					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							Dict					,       *_snake_case       :							Any					,       **_snake_case       :							int       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							Optional[Any]					,       *_snake_case       :							Tuple					,       **_snake_case       :							Optional[Any]       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )







class   __lowerCAmelCase  (		metaclass=UpperCAmelCase_   ):
					"""simple docstring"""






					A__					:		Any      							=     ["flax"]



					def __init__(  self       :							Dict					,       *_snake_case       :							int					,       **_snake_case       :							Dict       ):






								"""simple docstring"""


								requires_backends(self					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							Dict					,       *_snake_case       :							Optional[Any]					,       **_snake_case       :							List[Any]       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							int					,       *_snake_case       :							List[str]					,       **_snake_case       :							Union[str, Any]       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )







class   __lowerCAmelCase  (		metaclass=UpperCAmelCase_   ):
					"""simple docstring"""






					A__					:		Optional[Any]      							=     ["flax"]



					def __init__(  self       :							Tuple					,       *_snake_case       :							str					,       **_snake_case       :							Union[str, Any]       ):






								"""simple docstring"""


								requires_backends(self					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							List[Any]					,       *_snake_case       :							Dict					,       **_snake_case       :							Any       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							Optional[int]					,       *_snake_case       :							List[str]					,       **_snake_case       :							List[Any]       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )







class   __lowerCAmelCase  (		metaclass=UpperCAmelCase_   ):
					"""simple docstring"""






					A__					:		Optional[int]      							=     ["flax"]



					def __init__(  self       :							List[Any]					,       *_snake_case       :							List[Any]					,       **_snake_case       :							Optional[int]       ):






								"""simple docstring"""


								requires_backends(self					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							Any					,       *_snake_case       :							Any					,       **_snake_case       :							List[str]       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							Optional[int]					,       *_snake_case       :							Optional[Any]					,       **_snake_case       :							List[Any]       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )







class   __lowerCAmelCase  (		metaclass=UpperCAmelCase_   ):
					"""simple docstring"""






					A__					:		Dict      							=     ["flax"]



					def __init__(  self       :							Dict					,       *_snake_case       :							Dict					,       **_snake_case       :							int       ):






								"""simple docstring"""


								requires_backends(self					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							Tuple					,       *_snake_case       :							str					,       **_snake_case       :							Any       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							str					,       *_snake_case       :							Union[str, Any]					,       **_snake_case       :							List[str]       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )







class   __lowerCAmelCase  (		metaclass=UpperCAmelCase_   ):
					"""simple docstring"""






					A__					:		str      							=     ["flax"]



					def __init__(  self       :							Any					,       *_snake_case       :							Optional[int]					,       **_snake_case       :							List[Any]       ):






								"""simple docstring"""


								requires_backends(self					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							int					,       *_snake_case       :							Any					,       **_snake_case       :							Tuple       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							Optional[int]					,       *_snake_case       :							Optional[Any]					,       **_snake_case       :							Union[str, Any]       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )







class   __lowerCAmelCase  (		metaclass=UpperCAmelCase_   ):
					"""simple docstring"""






					A__					:		Union[str, Any]      							=     ["flax"]



					def __init__(  self       :							Union[str, Any]					,       *_snake_case       :							Tuple					,       **_snake_case       :							Union[str, Any]       ):






								"""simple docstring"""


								requires_backends(self					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							int					,       *_snake_case       :							str					,       **_snake_case       :							Dict       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )



					@classmethod
					def      _a				(  cls       :							Tuple					,       *_snake_case       :							int					,       **_snake_case       :							Optional[int]       ):






								"""simple docstring"""


								requires_backends(cls					,       ['flax']       )









from __future__ import annotations


def A    (							__UpperCamelCase = 4       )    ->   list[list[int]]:
			A__	  =     abs(__UpperCamelCase       ) or 4
			return [[1 + x + y * row_size for x in range(__UpperCamelCase       )] for y in range(__UpperCamelCase       )]


def A    (							__UpperCamelCase       )    ->   list[list[int]]:
			return reverse_row(transpose(__UpperCamelCase       )       )
			# OR.. transpose(reverse_column(matrix))


def A    (							__UpperCamelCase       )    ->   list[list[int]]:
			return reverse_row(reverse_column(__UpperCamelCase       )       )
			# OR.. reverse_column(reverse_row(matrix))


def A    (							__UpperCamelCase       )    ->   list[list[int]]:
			return reverse_column(transpose(__UpperCamelCase       )       )
			# OR.. transpose(reverse_row(matrix))


def A    (							__UpperCamelCase       )    ->   list[list[int]]:
			A__	  =     [list(__UpperCamelCase       ) for x in zip(*__UpperCamelCase       )]
			return matrix


def A    (							__UpperCamelCase       )    ->   list[list[int]]:
			A__	  =     matrix[::-1]
			return matrix


def A    (							__UpperCamelCase       )    ->   list[list[int]]:
			A__	  =     [x[::-1] for x in matrix]
			return matrix


def A    (							__UpperCamelCase       )    ->   None:
			for i in matrix:
						print(*__UpperCamelCase       )


if __name__ == "__main__":
							SCREAMING_SNAKE_CASE__   			=   make_matrix()
							print('''\norigin:\n''')
							print_matrix(matrix)
							print('''\nrotate 90 counterclockwise:\n''')
							print_matrix(rotate_aa(matrix))

							SCREAMING_SNAKE_CASE__   			=   make_matrix()
							print('''\norigin:\n''')
							print_matrix(matrix)
							print('''\nrotate 180:\n''')
							print_matrix(rotate_aaa(matrix))

							SCREAMING_SNAKE_CASE__   			=   make_matrix()
							print('''\norigin:\n''')
							print_matrix(matrix)
							print('''\nrotate 270 counterclockwise:\n''')
							print_matrix(rotate_aaa(matrix))




