


'''simple docstring'''





def 							UpperCamelCase_  (				__snake_case			:						Any     )->      bool:




						'''simple docstring'''
						__magic_name__ 		=			[list(__snake_case     ) for row in matrix]
						if matrix and isinstance(__snake_case	,			__snake_case     ):
												if isinstance(matrix[0]	,			__snake_case     ):
																		__magic_name__ 		=			0
																		for row in matrix:
																								if prev_len == 0:
																														__magic_name__ 		=			len(__snake_case     )
																														__magic_name__ 		=			True
																								else:
																														__magic_name__ 		=			prev_len == len(__snake_case     )
												else:
																		__magic_name__ 		=			True
						else:
												__magic_name__ 		=			False

						return result
def 							UpperCamelCase_  (				__snake_case			:						int     )->      None:




						'''simple docstring'''







						if check_matrix(__snake_case     ) and len(__snake_case     ) > 0:
												__magic_name__ 		=			[list(__snake_case     ) for row in a]
												__magic_name__ 		=			len(__snake_case     )
												if isinstance(a[0]	,			__snake_case     ):
																		__magic_name__ 		=			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]     )
												__magic_name__ 		=			[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 							UpperCamelCase_  (				__snake_case			:						int     )->      list[int]:




						'''simple docstring'''







						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()

					UpperCamelCase :				Union[str, Any]						    =       [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]]
					spiral_print_clockwise(a)





def 							UpperCamelCase_  (				__snake_case			:						int = 1_00     )->      int:




						'''simple docstring'''
						__magic_name__ 		=			1
						__magic_name__ 		=			0
						for i in range(1	,			num + 1     ):
												fact *= i

						for j in str(__snake_case     ):
												result += int(__snake_case     )

						return result


if __name__ == "__main__":
					print(solution(int(input('''Enter the Number: ''').strip())))

