def   lowerCAmelCase_ (				__lowerCAmelCase						)->  int:






      '''simple docstring'''





      UpperCAmelCase    : Any      =str(__lowerCAmelCase						).strip()
      if not oct_string:
            raise ValueError('''Empty string was passed to the function'''						)
      UpperCAmelCase    : Any      =oct_string[0] == '''-'''
      if is_negative:
            UpperCAmelCase    : List[Any]      =oct_string[1:]
      if not oct_string.isdigit() or not all(0 <= int(__lowerCAmelCase						) <= 7 for char in oct_string						):
            raise ValueError('''Non-octal value was passed to the function'''						)
      UpperCAmelCase    : List[Any]      =0
      for char in oct_string:
            UpperCAmelCase    : List[Any]      =8 * decimal_number + int(__lowerCAmelCase						)
      if is_negative:
            UpperCAmelCase    : str      =-decimal_number
      return decimal_number


if __name__ == "__main__":
     from doctest import testmod

     testmod()

import math





def   lowerCAmelCase_ (				__lowerCAmelCase						)->  list[int]:






      '''simple docstring'''





      if not isinstance(__lowerCAmelCase		,					__lowerCAmelCase						):
            UpperCAmelCase    : Union[str, Any]      =f'''Input value of [number={number}] must be an integer'''
            raise TypeError(__lowerCAmelCase						)
      if number < 1:
            UpperCAmelCase    : Dict      =f'''Input value of [number={number}] must be a positive integer'''
            raise ValueError(__lowerCAmelCase						)
      UpperCAmelCase    : Dict      =[number]
      while number != 1:
            if number % 2 == 0:
                  UpperCAmelCase    : Optional[Any]      =math.floor(math.sqrt(__lowerCAmelCase						)						)
            else:
                  UpperCAmelCase    : List[str]      =math.floor(
                      math.sqrt(__lowerCAmelCase						) * math.sqrt(__lowerCAmelCase						) * math.sqrt(__lowerCAmelCase						)						)
            sequence.append(__lowerCAmelCase						)
      return sequence


if __name__ == "__main__":
     import doctest

     doctest.testmod()
