




"""simple docstring"""





import decimal

def 		lowerCAmelCase				(			):
						'''simple docstring'''


						snake_case__							:       List[str]				      =       0
						snake_case__							:       str				      =       decimal.Context(prec=105		)
						for i in range(2   ,      100		):
												snake_case__							:       List[Any]				      =       decimal.Decimal(lowerCamelCase		)
												snake_case__							:       int				      =       number.sqrt(lowerCamelCase		)
												if len(str(lowerCamelCase		)		) > 1:
																		answer += int(str(lowerCamelCase		)[0]		)
																		snake_case__							:       Any				      =       str(lowerCamelCase		)[2:101]
																		answer += sum(int(lowerCamelCase		) for x in sqrt_number_str		)
						return answer


if __name__ == "__main__":
							import doctest

							doctest.testmod()
							print(f"""{solution() = }""")








"""simple docstring"""





import inspect
import os
import unittest

import torch

import accelerate
from accelerate import debug_launcher
from accelerate.test_utils import (
    execute_subprocess_async,
    require_cpu,
    require_multi_gpu,
    require_single_gpu,
    test_sync,
)
from accelerate.utils import patch_environment

class    __lowercase							(      unittest.TestCase						):


				'''simple docstring'''


				def    _lowerCamelCase       ( self :  Any   ):
										snake_case__							:       Dict				      =       inspect.getfile(accelerate.test_utils   )
										snake_case__							:       Tuple				      =       os.path.sep.join(mod_file.split(os.path.sep   )[:-1] + ['''scripts''', '''test_sync.py''']   )

				@require_cpu
				def    _lowerCamelCase       ( self :  Optional[Any]   ):
										debug_launcher(test_sync.main   ,num_processes=1   )

				@require_cpu
				def    _lowerCamelCase       ( self :  List[str]   ):
										debug_launcher(test_sync.main   )

				@require_single_gpu
				def    _lowerCamelCase       ( self :  Union[str, Any]   ):
										test_sync.main()





				@require_multi_gpu
				def    _lowerCamelCase       ( self :  List[str]   ):
										print(F'''Found {torch.cuda.device_count()} devices.'''   )
										snake_case__							:       Dict				      =       ['''torchrun''', F'''--nproc_per_node={torch.cuda.device_count()}''', self.test_file_path]
										with patch_environment(omp_num_threads=1   ):
																execute_subprocess_async(SCREAMING_SNAKE_CASE_   ,env=os.environ.copy()   )


