"""simple docstring"""
def 				lowerCAmelCase__      (     _UpperCamelCase    :			int   )   ->			int:





						"""simple docstring"""






						snake_case        =     [[0 for _ in range(_UpperCamelCase   )] 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	,     _UpperCamelCase   ):
																		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:
															SCREAMING_SNAKE_CASE__      =					int(input("Enter a number: ").strip())
															print(partition(n))
										except ValueError:
															print("Please enter a number.")
					else:
										try:
															SCREAMING_SNAKE_CASE__      =					int(sys.argv[1])
															print(partition(n))
										except ValueError:
															print("Please pass a number.")



"""simple docstring"""
import pickle
import unittest

import torch

from accelerate import Accelerator
from accelerate.state import AcceleratorState
from accelerate.test_utils import require_cpu



@require_cpu
class 					lowerCAmelCase_      (     unittest.TestCase   ):



				"""simple docstring"""

				def 						snake_case	(			self      ):






										"""simple docstring"""

										snake_case        =     torch.nn.Linear(10						,      10      )
										snake_case        =     torch.optim.SGD(model.parameters()						,      0.1      )
										snake_case        =     Accelerator()
										snake_case        =     accelerator.prepare(lowerCAmelCase      )
										try:
																pickle.loads(pickle.dumps(lowerCAmelCase      )      )
										except Exception as e:
																self.fail(F"""Accelerated optimizer pickling failed with {e}"""      )
										AcceleratorState._reset_state()


