





'''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_huggingface_suite,
    require_multi_gpu,
    require_single_gpu,
)
from accelerate.utils import patch_environment
@require_huggingface_suite
class       a_   (				unittest.TestCase							):





     def 							lowercase__      ( self		:					List[str]						):





        """simple docstring"""




        lowercase_			:Optional[int]    			= inspect.getfile(accelerate.test_utils						)
        lowercase_			:Any    			= os.path.sep.join(
            mod_file.split(os.path.sep						)[:-1] + ["scripts", "external_deps", "test_metrics.py"]						)

        from accelerate.test_utils.scripts.external_deps import test_metrics  # noqa: F401

        lowercase_			:Optional[int]    			= test_metrics





     @require_cpu
     def 							lowercase__      ( self		:					str						):





        """simple docstring"""




        debug_launcher(self.test_metrics.main	,      num_processes=1						)





     @require_cpu
     def 							lowercase__      ( self		:					Tuple						):





        """simple docstring"""




        debug_launcher(self.test_metrics.main						)





     @require_single_gpu
     def 							lowercase__      ( self		:					List[Any]						):





        """simple docstring"""




        self.test_metrics.main()







     @require_multi_gpu
     def 							lowercase__      ( self		:					Optional[int]						):





        """simple docstring"""




        print(F'Found {torch.cuda.device_count()} devices.'						)
        lowercase_			:Optional[int]    			= ["torchrun", F'--nproc_per_node={torch.cuda.device_count()}', self.test_file_path]
        with patch_environment(omp_num_threads=1						):
           execute_subprocess_async(lowercase	,      env=os.environ.copy()						)









'''simple docstring'''


def 							UpperCAmelCase_  (						__lowerCamelCase					:					int = 10_00 ):
   lowercase_			,							lowercase_			:str    			= 1, 1
   lowercase_			:Any    			= 2
   while True:
      lowercase_			:str    			= 0
      lowercase_			:Tuple    			= fa + fa
      lowercase_			,							lowercase_			:Tuple    			= fa, f
      index += 1
      for _ in str(__lowerCamelCase ):
         i += 1
      if i == n:
         break
   return index


if __name__ == "__main__":
 print(solution(int(str(input()).strip())))


