


'''simple docstring'''






from packaging import version

from .import_utils import is_accelerate_available


if is_accelerate_available():
		import accelerate


def  _snake_case       (					A	)						->   Dict:
							if not is_accelerate_available():
														return method
							lowerCAmelCase__	       =     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  _snake_case       (					A = 10			,   A = 22	)						->   int:
							lowerCAmelCase__	       =     range(1			,   A	)
							lowerCAmelCase__	       =     range(1			,   A	)
							return sum(
							    1 for power in powers for base in bases if len(str(base**power	)	) == power	)


if __name__ == "__main__":
		print(f"""{solution(10, 22) = }""")