from __future__ import annotations

lowerCAmelCase__					=				'Alexander Joslin'






def    __lowerCamelCase	(		lowerCAmelCase__			):

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

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

       # starting position
       lowerCAmelCase__  			=      0
       for i in range(1			,						lowerCAmelCase__			):
              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()

def    __lowerCamelCase	(		lowerCAmelCase__			):
       return " ".join([word[::-1] for word in input_str.split()]			)


if __name__ == "__main__":
    import doctest

    doctest.testmod()
