






'''simple docstring'''





from __future__ import annotations

__A				:				List[str]					=		"""Alexander Joslin"""






def  lowerCamelCase_  (     lowercase__):

 if number <= 0:
  lowerCamelCase__	=  F'''n must be greater than 0. Got n = {number}'''
  raise ValueError(lowercase__)

 lowerCamelCase__	=  [number + 1] * (number + 1)

 # starting position
 lowerCamelCase__	=  0
 for i in range(1					,  lowercase__):
  lowerCamelCase__	=  min(table[i + 1]					,  table[i] + 1)
  # check if out of bounds
  if i * 2 <= number:
   lowerCamelCase__	=  min(table[i * 2]					,  table[i] + 1)
  # check if out of bounds
  if i * 3 <= number:
   lowerCamelCase__	=  min(table[i * 3]					,  table[i] + 1)
 return table[number]


if __name__ == "__main__":
 import doctest

 doctest.testmod()









'''simple docstring'''





def  lowerCamelCase_  (     lowercase__):
 return int(lowercase__) if x - int(lowercase__) <= 0 else int(lowercase__) + 1


if __name__ == "__main__":
 import doctest

 doctest.testmod()

