






def     _a					(       UpperCamelCase_   :			int      ,				UpperCamelCase_   :			int      ,				UpperCamelCase_   :			int      ,				UpperCamelCase_   :			int				)	->				int:
						"""simple docstring"""







						return len_board * len_board_column * row + column


def     _a					(       UpperCamelCase_   :			list[list[str]]      ,				UpperCamelCase_   :			str      ,				UpperCamelCase_   :			int      ,				UpperCamelCase_   :			int      ,				UpperCamelCase_   :			int      ,				UpperCamelCase_   :			set[int]      ,				)	->				bool:
						"""simple docstring"""







						if board[row][column] != word[word_index]:
												return False

						if word_index == len(_lowerCAmelCase				) - 1:
												return True

						lowerCAmelCase__	 =  [(0, 1), (0, -1), (-1, 0), (1, 0)]
						lowerCAmelCase__	 =  len(_lowerCAmelCase				)
						lowerCAmelCase__	 =  len(board[0]				)
						for direction in traverts_directions:
												lowerCAmelCase__	 =  row + direction[0]
												lowerCAmelCase__	 =  column + direction[1]
												if not (0 <= next_i < len_board and 0 <= next_j < len_board_column):
																		continue

												lowerCAmelCase__	 =  get_point_key(_lowerCAmelCase      ,				_lowerCAmelCase      ,				_lowerCAmelCase      ,				_lowerCAmelCase				)
												if key in visited_points_set:
																		continue

												visited_points_set.add(_lowerCAmelCase				)
												if exits_word(_lowerCAmelCase      ,				_lowerCAmelCase      ,				_lowerCAmelCase      ,				_lowerCAmelCase      ,				word_index + 1      ,				_lowerCAmelCase				):
																		return True

												visited_points_set.remove(_lowerCAmelCase				)

						return False


def     _a					(       UpperCamelCase_   :			list[list[str]]      ,				UpperCamelCase_   :			str				)	->				bool:
						"""simple docstring"""







						lowerCAmelCase__	 =  (
						    '''The board should be a non empty matrix of single chars strings.'''
						)

						lowerCAmelCase__	 =  len(_lowerCAmelCase				)
						if not isinstance(_lowerCAmelCase      ,				_lowerCAmelCase				) or len(_lowerCAmelCase				) == 0:
												raise ValueError(_lowerCAmelCase				)

						for row in board:
												if not isinstance(_lowerCAmelCase      ,				_lowerCAmelCase				) or len(_lowerCAmelCase				) == 0:
																		raise ValueError(_lowerCAmelCase				)

												for item in row:
																		if not isinstance(_lowerCAmelCase      ,				_lowerCAmelCase				) or len(_lowerCAmelCase				) != 1:
																								raise ValueError(_lowerCAmelCase				)

    # Validate word
						if not isinstance(_lowerCAmelCase      ,				_lowerCAmelCase				) or len(_lowerCAmelCase				) == 0:
												raise ValueError(
												    "The word parameter should be a string of length greater than 0."				)

						lowerCAmelCase__	 =  len(board[0]				)
						for i in range(_lowerCAmelCase				):
												for j in range(_lowerCAmelCase				):
																		if exits_word(
																		    _lowerCAmelCase      ,				_lowerCAmelCase      ,				_lowerCAmelCase      ,				_lowerCAmelCase      ,				0      ,				{get_point_key(_lowerCAmelCase      ,				_lowerCAmelCase      ,				_lowerCAmelCase      ,				_lowerCAmelCase				)}				):
																								return True

						return False


if __name__ == "__main__":
	import doctest

	doctest.testmod()














def     _a					(       UpperCamelCase_   :			int = 100				)	->				int:
						"""simple docstring"""







						lowerCAmelCase__	 =  1
						lowerCAmelCase__	 =  0
						for i in range(1      ,				num + 1				):
												fact *= i

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

						return result


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






