


'''simple docstring'''






from __future__ import annotations





def lowerCamelCase__      (						__lowerCamelCase	:							int = 4							):







   '''simple docstring'''




   _UpperCAmelCase       :       Optional[int]							   =abs(__lowerCamelCase							) or 4
   return [[1 + x + y * row_size for x in range(__lowerCamelCase							)] for y in range(__lowerCamelCase							)]





def lowerCamelCase__      (						__lowerCamelCase	:							list[list[int]]							):







   '''simple docstring'''




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





def lowerCamelCase__      (						__lowerCamelCase	:							list[list[int]]							):







   '''simple docstring'''




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





def lowerCamelCase__      (						__lowerCamelCase	:							list[list[int]]							):







   '''simple docstring'''




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





def lowerCamelCase__      (						__lowerCamelCase	:							list[list[int]]							):







   '''simple docstring'''




   _UpperCAmelCase       :       Optional[Any]							   =[list(__lowerCamelCase							) for x in zip(*__lowerCamelCase							)]
   return matrix





def lowerCamelCase__      (						__lowerCamelCase	:							list[list[int]]							):







   '''simple docstring'''




   _UpperCAmelCase       :       List[Any]							   =matrix[::-1]
   return matrix





def lowerCamelCase__      (						__lowerCamelCase	:							list[list[int]]							):







   '''simple docstring'''




   _UpperCAmelCase       :       Optional[int]							   =[x[::-1] for x in matrix]
   return matrix





def lowerCamelCase__      (						__lowerCamelCase	:							list[list[int]]							):







   '''simple docstring'''




   for i in matrix:
      print(*__lowerCamelCase							)


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

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

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





'''simple docstring'''






from string import ascii_uppercase

lowercase							={str(ord(c) - 55): c for c in ascii_uppercase}





def lowerCamelCase__      (						__lowerCamelCase	:							int	,   __lowerCamelCase	:							int							):







   '''simple docstring'''




   if isinstance(__lowerCamelCase	,   __lowerCamelCase							):
      raise TypeError('int() can\'t convert non-string with explicit base'							)
   if num < 0:
      raise ValueError('parameter must be positive int'							)
   if isinstance(__lowerCamelCase	,   __lowerCamelCase							):
      raise TypeError('\'str\' object cannot be interpreted as an integer'							)
   if isinstance(__lowerCamelCase	,   __lowerCamelCase							):
      raise TypeError('\'float\' object cannot be interpreted as an integer'							)
   if base in (0, 1):
      raise ValueError('base must be >= 2'							)
   if base > 3_6:
      raise ValueError('base must be <= 36'							)
   _UpperCAmelCase       :       Union[str, Any]							   =''
   _UpperCAmelCase       :       Optional[int]							   =0
   _UpperCAmelCase       :       str							   =0
   while div != 1:
      _UpperCAmelCase   ,	_UpperCAmelCase       :       int							   =divmod(__lowerCamelCase	,   __lowerCamelCase							)
      if base >= 1_1 and 9 < mod < 3_6:
         _UpperCAmelCase       :       str							   =ALPHABET_VALUES[str(__lowerCamelCase							)]
      else:
         _UpperCAmelCase       :       Any							   =str(__lowerCamelCase							)
      new_value += actual_value
      _UpperCAmelCase       :       Union[str, Any]							   =num // base
      _UpperCAmelCase       :       Dict							   =div
      if div == 0:
         return str(new_value[::-1]							)
      elif div == 1:
         new_value += str(__lowerCamelCase							)
         return str(new_value[::-1]							)

   return new_value[::-1]


if __name__ == "__main__":
 import doctest

 doctest.testmod()

 for base in range(2, 37):
  for num in range(1000):
   assert int(decimal_to_any(num, base), base) == num, (
       num,
       base,
       decimal_to_any(num, base),
       int(decimal_to_any(num, base), base),
   )

