



"""simple docstring"""





from datetime import datetime

import matplotlib.pyplot as plt
import torch




def 	UpperCAmelCase     (		A	:						Tuple       ):

		'''simple docstring'''


		for param in module.parameters():
				_UpperCAmelCase							 =		False




def 	UpperCAmelCase     (		):

		'''simple docstring'''


		_UpperCAmelCase							 =		'cuda' if torch.cuda.is_available() else 'cpu'
		if torch.backends.mps.is_available() and torch.backends.mps.is_built():
				_UpperCAmelCase							 =		'mps'
		if device == "mps":
				print(
				    'WARNING: MPS currently doesn\'t seem to work, and messes up backpropagation without any visible torch'
				    ' errors. I recommend using CUDA on a colab notebook or CPU instead if you\'re facing inexplicable issues'
				    ' with generations.'       )
		return device




def 	UpperCAmelCase     (		A	:						Dict       ):

		'''simple docstring'''


		_UpperCAmelCase							 =		plt.imshow(A       )
		fig.axes.get_xaxis().set_visible(A       )
		fig.axes.get_yaxis().set_visible(A       )
		plt.show()






def 	UpperCAmelCase     (		):

		'''simple docstring'''


		_UpperCAmelCase							 =		datetime.now()
		_UpperCAmelCase							 =		current_time.strftime('%H:%M:%S'       )
		return timestamp






"""simple docstring"""





def 	UpperCAmelCase     (		A	:						int       ):

		'''simple docstring'''


		_UpperCAmelCase							 =		[[0 for _ in range(A       )] for _ in range(m + 1       )]
		for i in range(m + 1       ):
				_UpperCAmelCase							 =		1

		for n in range(m + 1       ):
				for k in range(1     ,				A       ):
						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:
															lowercase  							=					int(input('''Enter a number: ''').strip())
															print(partition(n))
										except ValueError:
															print('''Please enter a number.''')
					else:
										try:
															lowercase  							=					int(sys.argv[1])
															print(partition(n))
										except ValueError:
															print('''Please pass a number.''')


