
import enum
import shutil
import sys


lowercase				,     lowercase    :   List[str]						=			shutil.get_terminal_size()

lowercase    :   Union[str, Any]						=			{'UP': 'A', 'DOWN': 'B', 'RIGHT': 'C', 'LEFT': 'D'}




class 					lowerCamelCase__				(							enum.Enum):




	'''simple docstring'''




	_A								=	0
	_A								=	1




def       _SCREAMING_SNAKE_CASE   (						_lowerCamelCase					:     Union[str, Any]		,    _lowerCamelCase					:     Dict="")   ->       Dict:






							'''simple docstring'''





							sys.stdout.write(str(_lowerCamelCase) + end)
							sys.stdout.flush()




def       _SCREAMING_SNAKE_CASE   (						_lowerCamelCase					:     Optional[int]		,    _lowerCamelCase					:     List[str]		,    _lowerCamelCase					:     Any="")   ->       Tuple:






							'''simple docstring'''





							forceWrite(F'\u001b[{color}m{content}\u001b[0m'		,    _lowerCamelCase)




def       _SCREAMING_SNAKE_CASE   (						)   ->       Tuple:






							'''simple docstring'''





							forceWrite("\r")




def       _SCREAMING_SNAKE_CASE   (						_lowerCamelCase					:     int		,    _lowerCamelCase					:     str)   ->       Union[str, Any]:






							'''simple docstring'''





							forceWrite(F'\033[{num_lines}{CURSOR_TO_CHAR[direction.upper()]}')




def       _SCREAMING_SNAKE_CASE   (						)   ->       Union[str, Any]:






							'''simple docstring'''





							forceWrite(" " * TERMINAL_WIDTH)
							reset_cursor()




def       _SCREAMING_SNAKE_CASE   (						)   ->       int:






							'''simple docstring'''





							reset_cursor()
							forceWrite("-" * TERMINAL_WIDTH)

import math




def       _SCREAMING_SNAKE_CASE   (						_lowerCamelCase					:     int)   ->       str:






							'''simple docstring'''





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




def       _SCREAMING_SNAKE_CASE   (						)   ->       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()