





"""simple docstring"""


def SCREAMING_SNAKE_CASE_   (       snake_case   :					list[list[int]]		)->		bool:
       # must be
       _lowerCamelCase    	=					[list(snake_case		) for row in matrix]
       if matrix and isinstance(snake_case						,  snake_case		):
              if isinstance(matrix[0]						,  snake_case		):
                     _lowerCamelCase    	=					0
                     for row in matrix:
                            if prev_len == 0:
                                   _lowerCamelCase    	=					len(snake_case		)
                                   _lowerCamelCase    	=					True
                            else:
                                   _lowerCamelCase    	=					prev_len == len(snake_case		)
              else:
                     _lowerCamelCase    	=					True
       else:
              _lowerCamelCase    	=					False

       return result





def SCREAMING_SNAKE_CASE_   (       snake_case   :					list[list[int]]		)->		None:
       if check_matrix(snake_case		) and len(snake_case		) > 0:
              _lowerCamelCase    	=					[list(snake_case		) for row in a]
              _lowerCamelCase    	=					len(snake_case		)
              if isinstance(a[0]						,  snake_case		):
                     _lowerCamelCase    	=					len(a[0]		)
              else:
                     for dat in a:
                            print(snake_case		)
                     return

              # horizotal printing increasing
              for i in range(0						,  snake_case		):
                     print(a[0][i]		)
              # vertical printing down
              for i in range(1						,  snake_case		):
                     print(a[i][mat_col - 1]		)
              # horizotal printing decreasing
              if mat_row > 1:
                     for i in range(mat_col - 2						,  -1						,  -1		):
                            print(a[mat_row - 1][i]		)
        # vertical printing up
              for i in range(mat_row - 2						,  0						,  -1		):
                     print(a[i][0]		)
              _lowerCamelCase    	=					[row[1 : mat_col - 1] for row in a[1 : mat_row - 1]]
              if len(snake_case		) > 0:
                     spiral_print_clockwise(snake_case		)
              else:
                     return
       else:
              print('Not a valid matrix'		)
              return





def SCREAMING_SNAKE_CASE_   (       snake_case   :					list[list]		)->		list[int]:
       if matrix:
              return list(matrix.pop(0		)		) + spiral_traversal(list(zip(*snake_case		)		)[::-1]		)
       else:
              return []


# driver code
if __name__ == "__main__":
      import doctest

      doctest.testmod()

      A_     :      str								=[[1, 2, 3, 4], [5, 6, 7, 8], [9, 1_0, 1_1, 1_2]]
      spiral_print_clockwise(a)













"""simple docstring"""


def SCREAMING_SNAKE_CASE_   (       )->		Tuple:
       _lowerCamelCase    	=					1

       while True:
              if (
                  sorted(str(snake_case		)		)
                  == sorted(str(2 * i		)		)
                  == sorted(str(3 * i		)		)
                  == sorted(str(4 * i		)		)
                  == sorted(str(5 * i		)		)
                  == sorted(str(6 * i		)		)
              ):
                     return i

              i += 1


if __name__ == "__main__":
      print(solution())






