





from __future__ import annotations



def 					__lowerCamelCase       (							a_					:		int = 4							)      ->				list[list[int]]:
      __SCREAMING_SNAKE_CASE       :Any		    =  abs(UpperCAmelCase_							) or 4
      return [[1 + x + y * row_size for x in range(UpperCAmelCase_							)] for y in range(UpperCAmelCase_							)]



def 					__lowerCamelCase       (							a_					:		list[list[int]]							)      ->				list[list[int]]:
      return reverse_row(transpose(UpperCAmelCase_							)							)
      # OR.. transpose(reverse_column(matrix))



def 					__lowerCamelCase       (							a_					:		list[list[int]]							)      ->				list[list[int]]:
      return reverse_row(reverse_column(UpperCAmelCase_							)							)
      # OR.. reverse_column(reverse_row(matrix))



def 					__lowerCamelCase       (							a_					:		list[list[int]]							)      ->				list[list[int]]:
      return reverse_column(transpose(UpperCAmelCase_							)							)
      # OR.. transpose(reverse_row(matrix))



def 					__lowerCamelCase       (							a_					:		list[list[int]]							)      ->				list[list[int]]:
      __SCREAMING_SNAKE_CASE       :str		    =  [list(UpperCAmelCase_							) for x in zip(*UpperCAmelCase_							)]
      return matrix



def 					__lowerCamelCase       (							a_					:		list[list[int]]							)      ->				list[list[int]]:
      __SCREAMING_SNAKE_CASE       :int		    =  matrix[::-1]
      return matrix



def 					__lowerCamelCase       (							a_					:		list[list[int]]							)      ->				list[list[int]]:
      __SCREAMING_SNAKE_CASE       :Dict		    =  [x[::-1] for x in matrix]
      return matrix



def 					__lowerCamelCase       (							a_					:		list[list[int]]							)      ->				None:





      for i in matrix:
            print(*UpperCAmelCase_							)


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

  lowerCamelCase_       =		make_matrix()
  print("\norigin:\n")
  print_matrix(matrix)
  print("\nrotate 180:\n")
  print_matrix(rotate_aaa(matrix))

  lowerCamelCase_       =		make_matrix()
  print("\norigin:\n")
  print_matrix(matrix)
  print("\nrotate 270 counterclockwise:\n")
  print_matrix(rotate_aaa(matrix))






"""simple docstring"""
def 					__lowerCamelCase       (							a_					:		str							)      ->				list:
      return [
          txt[:a] + txt[a].upper() + txt[a + 1 :]
          for a in range(len(a_							)							)
          if txt[a].isalpha()
      ]


if __name__ == "__main__":
  __import__("doctest").testmod()