




'''simple docstring'''



import math

from numpy import inf
from scipy.integrate import quad







def       _UpperCamelCase			(_lowerCamelCase				:  float						)-> float:




     '''simple docstring'''





     if num <= 0:
          raise ValueError('''math domain error'''						)

     return quad(_lowerCamelCase ,						0 ,						_lowerCamelCase ,						args=(_lowerCamelCase)						)[0]







def       _UpperCamelCase			(_lowerCamelCase				:  float ,						_lowerCamelCase				:  float						)-> float:




     '''simple docstring'''





     return math.pow(_lowerCamelCase ,						z - 1						) * math.exp(-x						)


if __name__ == "__main__":
     from doctest import testmod

     testmod()












'''simple docstring'''



def       _UpperCamelCase			(_lowerCamelCase				:  int						)-> int:




     '''simple docstring'''





     __snake_case            =	[[0 for _ in range(_lowerCamelCase						)] for _ in range(m + 1						)]
     for i in range(m + 1						):
          __snake_case            =	1

     for n in range(m + 1						):
          for k in range(1 ,						_lowerCamelCase						):
               memo[n][k] += memo[n][k - 1]
               if n - k > 0:
                    memo[n][k] += memo[n - k - 1][k]

     return memo[m][m - 1]


if __name__ == "__main__":
     import sys

     if len(sys.argv) == 1:
          try:
               UpperCAmelCase_							:	List[str]	     =		int(input('''Enter a number: ''').strip())
               print(partition(n))
          except ValueError:
               print('''Please enter a number.''')
     else:
          try:
               UpperCAmelCase_							:	Union[str, Any]	     =		int(sys.argv[1])
               print(partition(n))
          except ValueError:
               print('''Please pass a number.''')






