
from __future__ import annotations

from collections.abc import Iterator
from typing import Any







class 			UpperCamelCase__		:







	'''simple docstring'''





	def __init__(      self					,							UpperCamelCase__		):
					A__	:						Any								=				data
					A__	:						Node | None								=				None





	def __str__(      self		):
					return F"{self.data}"







class 			UpperCamelCase__		:







	'''simple docstring'''





	def __init__(      self		):
					A__	:						Node | None								=				None
					A__	:						Node | None								=				None





	def __iter__(      self		):
					A__	:						Tuple								=				self.front
					while node:
									yield node.data
									A__	:						Optional[Any]								=				node.next





	def __len__(      self		):
					return len(tuple(iter(self		)		)		)





	def __str__(      self		):
					return " <- ".join(str(UpperCamelCase__		) for item in self		)





	def 	__snake_case					(      self		):
					return len(self		) == 0





	def 	__snake_case					(      self					,							UpperCamelCase__		):
					A__	:						Any								=				Node(UpperCamelCase__		)
					if self.is_empty():
									A__	:						int								=				node
					else:
									assert isinstance(self.rear					,							UpperCamelCase__		)
									A__	:						Union[str, Any]								=				node
									A__	:						Tuple								=				node





	def 	__snake_case					(      self		):
					if self.is_empty():
									raise IndexError('''dequeue from empty queue'''		)
					assert isinstance(self.front					,							UpperCamelCase__		)
					A__	:						Optional[int]								=				self.front
					A__	:						List[Any]								=				self.front.next
					if self.front is None:
									A__	:						Dict								=				None
					return node.data





	def 	__snake_case					(      self		):
					A__	:						List[Any]								=				None


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

					testmod()

_SCREAMING_SNAKE_CASE     :   dict[str, float]							 =      {
    "kilogram": 1,
    "gram": pow(1_0, 3),
    "milligram": pow(1_0, 6),
    "metric-ton": pow(1_0, -3),
    "long-ton": 0.00_0984_2073,
    "short-ton": 0.00_1102_3122,
    "pound": 2.20_4624_4202,
    "stone": 0.15_7473_1728,
    "ounce": 35.2_7399_0723,
    "carrat": 5_0_0_0,
    "atomic-mass-unit": 6.022136652E26,
}

_SCREAMING_SNAKE_CASE     :   dict[str, float]							 =      {
    "kilogram": 1,
    "gram": pow(1_0, -3),
    "milligram": pow(1_0, -6),
    "metric-ton": pow(1_0, 3),
    "long-ton": 1016.0_4608,
    "short-ton": 907.184,
    "pound": 0.45_3592,
    "stone": 6.3_5029,
    "ounce": 0.028_3495,
    "carrat": 0.0002,
    "atomic-mass-unit": 1.660540199E-27,
}

def 					SCREAMING_SNAKE_CASE  (   __UpperCamelCase			:    str				,    __UpperCamelCase			:    str				,    __UpperCamelCase			:    float							)			->							float:

				"""simple docstring"""







				if to_type not in KILOGRAM_CHART or from_type not in WEIGHT_TYPE_CHART:
								A__	:						int								=				(
								    F"Invalid 'from_type' or 'to_type' value: {from_type!r}, {to_type!r}\n"
								    F"Supported values are: {', '.join(__UpperCamelCase							)}"
								)
								raise ValueError(__UpperCamelCase							)
				return value * KILOGRAM_CHART[to_type] * WEIGHT_TYPE_CHART[from_type]


if __name__ == "__main__":
					import doctest

					doctest.testmod()