


def     __SCREAMING_SNAKE_CASE							(       lowercase_      )		->     int:




						'''simple docstring'''







						__UpperCAmelCase			:							Optional[Any]	    =	1
						for i in range(1      ,       num + 1      ):
												fact *= i
						return fact




def     __SCREAMING_SNAKE_CASE							(       lowercase_      )		->     int:




						'''simple docstring'''







						__UpperCAmelCase			:							Any	    =	0
						while number > 0:
												__UpperCAmelCase			:							Any	    =	number % 10
												sum_of_digits += last_digit
												__UpperCAmelCase			:							Optional[Any]	    =	number // 10  # Removing the last_digit from the given number
						return sum_of_digits




def     __SCREAMING_SNAKE_CASE							(       lowercase_ = 100      )		->     int:




						'''simple docstring'''







						__UpperCAmelCase			:							Tuple	    =	factorial(lowercase_      )
						__UpperCAmelCase			:							Tuple	    =	split_and_add(lowercase_      )
						return result


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





import unittest

from knapsack import greedy_knapsack as kp




class 							lowerCamelCase   (  unittest.TestCase ):


	def  A(    self):
							__UpperCAmelCase			:							Optional[Any]	    =	[1_0, 2_0, 3_0, 4_0, 5_0, 6_0]
							__UpperCAmelCase			:							str	    =	[2, 4, 6, 8, 1_0, 1_2]
							__UpperCAmelCase			:							List[Any]	    =	1_0_0
							self.assertEqual(kp.calc_profit(lowercase__				,     lowercase__				,     lowercase__)				,     2_1_0)


	def  A(    self):
							self.assertRaisesRegex(lowercase__				,     '''max_weight must greater than zero.''')


	def  A(    self):
							self.assertRaisesRegex(lowercase__				,     '''Weight can not be negative.''')


	def  A(    self):
							self.assertRaisesRegex(lowercase__				,     '''Profit can not be negative.''')


	def  A(    self):
							self.assertRaisesRegex(lowercase__				,     '''max_weight must greater than zero.''')


	def  A(    self):
							self.assertRaisesRegex(
							    lowercase__				,     '''The length of profit and weight must be same.''')


if __name__ == "__main__":
				unittest.main()

