



"""simple docstring"""







import math

def     UpperCamelCase_   (   lowerCAmelCase__				:    int						)						->       str:

  """simple docstring"""




  lowerCAmelCase_       :    str								=			0
  lowerCAmelCase_       :    Union[str, Any]								=			0
  while num > 0:
    lowerCAmelCase_       :    Any								=			num % 8
    lowerCAmelCase_       :    Union[str, Any]								=			octal + (remainder * math.floor(math.pow(10   ,       lowerCAmelCase__						)						))
    counter += 1
    lowerCAmelCase_       :    Union[str, Any]								=			math.floor(num / 8						)  # basically /= 8 without remainder if any
    # This formatting removes trailing '.0' from `octal`.
  return f"0o{int(lowerCAmelCase__						)}"

def     UpperCamelCase_   (   )						->       None:

  """simple docstring"""




  print('\n2 in octal is:'						)
  print(decimal_to_octal(2						)						)  # = 2
  print('\n8 in octal is:'						)
  print(decimal_to_octal(8						)						)  # = 10
  print('\n65 in octal is:'						)
  print(decimal_to_octal(65						)						)  # = 101
  print('\n216 in octal is:'						)
  print(decimal_to_octal(216						)						)  # = 330
  print('\n512 in octal is:'						)
  print(decimal_to_octal(512						)						)  # = 1000
  print('\n'						)


if __name__ == "__main__":
     main()










"""simple docstring"""







import baseaa

def     UpperCamelCase_   (   lowerCAmelCase__				:    str						)						->       bytes:

  """simple docstring"""




  return baseaa.aaaencode(string.encode('utf-8'						)						)

def     UpperCamelCase_   (   lowerCAmelCase__				:    bytes						)						->       str:

  """simple docstring"""




  return baseaa.aaadecode(lowerCAmelCase__						).decode('utf-8'						)


if __name__ == "__main__":
     import doctest

     doctest.testmod()





