






import math






def     a     (		lowerCamelCase_							):






				'''simple docstring'''
				lowercase__  					=     0
				lowercase__  					=     0
				while num > 0:
								lowercase__  					=     num % 8
								lowercase__  					=     octal + (remainder * math.floor(math.pow(10						,  lowerCamelCase_							)							))
								counter += 1
								lowercase__  					=     math.floor(num / 8							)  # basically /= 8 without remainder if any
								# This formatting removes trailing '.0' from `octal`.
				return F"""0o{int(lowerCamelCase_							)}"""






def     a     (		):






				'''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()












from __future__ import annotations

from typing import Any






def     a     (		lowerCamelCase_							):






				'''simple docstring'''
				if not postfix_notation:
								return 0

				lowercase__  					=     {'''+''', '''-''', '''*''', '''/'''}
				lowercase__  					=     []

				for token in postfix_notation:
								if token in operations:
												lowercase__					,		lowercase__  					=     stack.pop(), stack.pop()
												if token == "+":
																stack.append(a + b							)
												elif token == "-":
																stack.append(a - b							)
												elif token == "*":
																stack.append(a * b							)
												else:
																if a * b < 0 and a % b != 0:
																				stack.append(a // b + 1							)
																else:
																				stack.append(a // b							)
								else:
												stack.append(int(lowerCamelCase_							)							)

				return stack.pop()


if __name__ == "__main__":
							import doctest

							doctest.testmod()




