






__UpperCAmelCase										=		{
    "kilogram": 1,
    "gram": pow(10, 3),
    "milligram": pow(10, 6),
    "metric-ton": pow(10, -3),
    "long-ton": 0.0_0_0_9_8_4_2_0_7_3,
    "short-ton": 0.0_0_1_1_0_2_3_1_2_2,
    "pound": 2.2_0_4_6_2_4_4_2_0_2,
    "stone": 0.1_5_7_4_7_3_1_7_2_8,
    "ounce": 3_5.2_7_3_9_9_0_7_2_3,
    "carrat": 5000,
    "atomic-mass-unit": 6.0_2_2_1_3_6_6_5_2E2_6,
}

__UpperCAmelCase										=		{
    "kilogram": 1,
    "gram": pow(10, -3),
    "milligram": pow(10, -6),
    "metric-ton": pow(10, 3),
    "long-ton": 1016.04608,
    "short-ton": 907.184,
    "pound": 0.4_5_3_5_9_2,
    "stone": 6.3_5_0_2_9,
    "ounce": 0.0_2_8_3_4_9_5,
    "carrat": 0.0_0_0_2,
    "atomic-mass-unit": 1.6_6_0_5_4_0_1_9_9E-2_7,
}




def   lowercase__   (  __snake_case					:							List[Any]  , __snake_case					:							Optional[int]  , __snake_case					:							List[Any]						):


					'''simple docstring'''


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


if __name__ == "__main__":
						import doctest

						doctest.testmod()














from __future__ import annotations



class 						lowerCamelCase   :







		'''simple docstring'''



		def __init__(							self       ,	_UpperCamelCase = 0     )			->							None:
							UpperCAmelCase_					:   int   =		value
							UpperCAmelCase_					:   Node | None   =		None
							UpperCAmelCase_					:   Node | None   =		None





def   lowercase__   (  __snake_case					:							Node | None  , __snake_case					:							Node | None						):


					'''simple docstring'''


					if treea is None:
										return treea
					if treea is None:
										return treea

					UpperCAmelCase_					:   List[Any]   =		treea.value + treea.value
					UpperCAmelCase_					:   Dict   =		merge_two_binary_trees(treea.left  , treea.left						)
					UpperCAmelCase_					:   str   =		merge_two_binary_trees(treea.right  , treea.right						)
					return treea




def   lowercase__   (  __snake_case					:							Node | None						):


					'''simple docstring'''


					if root:
										print(root.value						)
										print_preorder(root.left						)
										print_preorder(root.right						)


if __name__ == "__main__":
		__UpperCAmelCase										=		Node(1)
		__UpperCAmelCase										=		Node(2)
		__UpperCAmelCase										=		Node(3)
		__UpperCAmelCase										=		Node(4)

		__UpperCAmelCase										=		Node(2)
		__UpperCAmelCase										=		Node(4)
		__UpperCAmelCase										=		Node(6)
		__UpperCAmelCase										=		Node(9)
		__UpperCAmelCase										=		Node(5)

		print('Tree1 is: ')
		print_preorder(treea)
		print('Tree2 is: ')
		print_preorder(treea)
		__UpperCAmelCase										=		merge_two_binary_trees(treea, treea)
		print('Merged Tree is: ')
		print_preorder(merged_tree)






