'''simple docstring'''

from transformers import HfArgumentParser, PyTorchBenchmark, PyTorchBenchmarkArguments



def  _lowerCAmelCase				(				)  ->      Any:
     '''simple docstring'''







     _UpperCamelCase  :List[str]       =HfArgumentParser(__a      )
     try:
          _UpperCamelCase  :Optional[Any]       =parser.parse_args_into_dataclasses()[0]
     except ValueError as e:
          _UpperCamelCase  :List[str]       ="""Arg --no_{0} is no longer used, please use --no-{0} instead."""
          _UpperCamelCase  :Any       =""" """.join(str(__a      ).split(""" """      )[:-1]      )
          _UpperCamelCase  :List[str]       =""""""
          _UpperCamelCase  :int       =eval(str(__a      ).split(""" """      )[-1]      )
          _UpperCamelCase  :List[Any]       =[]
          for arg in depreciated_args:
               # arg[2:] removes '--'
               if arg[2:] in PyTorchBenchmarkArguments.deprecated_args:
                    # arg[5:] removes '--no_'
                    full_error_msg += arg_error_msg.format(arg[5:]      )
               else:
                    wrong_args.append(__a      )
          if len(__a      ) > 0:
               _UpperCamelCase  :Any       =full_error_msg + begin_error_msg + str(__a      )
          raise ValueError(__a      )

     _UpperCamelCase  :Optional[int]       =PyTorchBenchmark(args=__a      )
     benchmark.run()


if __name__ == "__main__":
      main()
'''simple docstring'''

from __future__ import annotations

_lowerCamelCase :				Optional[int]														= """Alexander Joslin"""



def  _lowerCAmelCase				(				__a      )  ->      int:
     '''simple docstring'''







     if number <= 0:
          _UpperCamelCase  :Optional[Any]       =F'''n must be greater than 0. Got n = {number}'''
          raise ValueError(__a      )

     _UpperCamelCase  :Optional[Any]       =[number + 1] * (number + 1)

     # starting position
     _UpperCamelCase  :int       =0
     for i in range(1			,      __a      ):
          _UpperCamelCase  :List[str]       =min(table[i + 1]			,      table[i] + 1      )
          # check if out of bounds
          if i * 2 <= number:
               _UpperCamelCase  :int       =min(table[i * 2]			,      table[i] + 1      )
          # check if out of bounds
          if i * 3 <= number:
               _UpperCamelCase  :Tuple       =min(table[i * 3]			,      table[i] + 1      )
     return table[number]


if __name__ == "__main__":
      import doctest

      doctest.testmod()