



'''simple docstring'''





from packaging import version

from .import_utils import is_accelerate_available


if is_accelerate_available():
  import accelerate




def lowerCAmelCase  (__A):



     """simple docstring"""



     if not is_accelerate_available():
          return method
     _a      =  version.parse(accelerate.__version__).base_version
     if version.parse(__A) < version.parse('''0.17.0'''):
          return method

     def wrapper(self  ,	*__A  ,	**__A):
          if hasattr(self  ,	'''_hf_hook''') and hasattr(self._hf_hook  ,	'''pre_forward'''):
               self._hf_hook.pre_forward(self)
          return method(self  ,	*__A  ,	**__A)

     return wrapper











'''simple docstring'''







def  SCREAMING_SNAKE_CASE_       (UpperCamelCase = 1000      )      ->       int:
							lowerCamelCase__					:	str         =       -1
							lowerCamelCase__					:	Dict         =       0
							for a in range(1				,			n // 3      ):
														# Solving the two equations a**2+b**2=c**2 and a+b+c=N eliminating c
														lowerCamelCase__					:	Dict         =       (n * n - 2 * a * n) // (2 * n - 2 * a)
														lowerCamelCase__					:	Any         =       n - a - b
														if c * c == (a * a + b * b):
																					lowerCamelCase__					:	Dict         =       a * b * c
																					if candidate >= product:
																												lowerCamelCase__					:	Union[str, Any]         =       candidate
							return product


if __name__ == "__main__":
			print(F'{solution() = }')

