






"""simple docstring"""
def 							snake_case (  A__      ,A__		):
			UpperCAmelCase_	:					List[str]     	=   1  # To kept the Calculated Value
			# Since C(n, k) = C(n, n-k)
			if k > (n - k):
						UpperCAmelCase_	:					Optional[int]     	=   n - k
			# Calculate C(n,k)
			for i in range(A__		):
						result *= n - i
						result //= i + 1
			return result

def 							snake_case (  A__		):
			return binomial_coefficient(2 * node_count      ,A__		) // (node_count + 1)

def 							snake_case (  A__		):
			if n < 0:
						raise ValueError("factorial() not defined for negative values"		)
			UpperCAmelCase_	:					Union[str, Any]     	=   1
			for i in range(1      ,n + 1		):
						result *= i
			return result

def 							snake_case (  A__		):
			return catalan_number(A__		) * factorial(A__		)


if __name__ == "__main__":
			lowerCamelCase_							      = int(input('''Enter the number of nodes: ''').strip() or 0)
			if node_count <= 0:
						raise ValueError('''We need some nodes to work with.''')
			print(
			    f'Given {node_count} nodes, there are {binary_tree_count(node_count)} '
			    f'binary trees and {catalan_number(node_count)} binary search trees.'
			)








"""simple docstring"""







import requests

def  __SCREAMING_SNAKE_CASE		(			lowerCamelCase_:							str     ,		lowerCamelCase_:							str ):
						"""simple docstring"""






						snake_case   :			List[str]						    = {"Content-Type": "application/json"}
						snake_case   :			int						    = requests.post(lowerCamelCase_     ,		json={"text": message_body}     ,		headers=lowerCamelCase_ )
						if response.status_code != 2_0_0:
												snake_case   :			str						    = (
												    "Request to slack returned an error "
												    f'''{response.status_code}, the response is:\n{response.text}'''
												)
												raise ValueError(lowerCamelCase_ )


if __name__ == "__main__":
			# Set the slack url to the one provided by Slack when you create the webhook at
			# https://my.slack.com/services/new/incoming-webhook/
			send_slack_message('<YOUR MESSAGE BODY>', '<SLACK CHANNEL URL>')



