




from __future__ import annotations







class 		__UpperCAmelCase:





     """simple docstring"""



     def __init__(   self			:							Dict    ,					A			:							int = 0     )      ->      Optional[int]:






         """simple docstring"""
         a__  			=							value
         a__  			=							None
         a__  			=							None






def 							__lowerCAmelCase			(UpperCAmelCase_ ,     UpperCAmelCase_		):


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

    a__  			=							treea.value + treea.value
    a__  			=							merge_two_binary_trees(treea.left ,     treea.left		)
    a__  			=							merge_two_binary_trees(treea.right ,     treea.right		)
    return treea
def 							__lowerCAmelCase			(UpperCAmelCase_		):


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


if __name__ == "__main__":
 SCREAMING_SNAKE_CASE_    :       Optional[Any]       =							Node(1)
 SCREAMING_SNAKE_CASE_    :       Optional[Any]       =							Node(2)
 SCREAMING_SNAKE_CASE_    :       str       =							Node(3)
 SCREAMING_SNAKE_CASE_    :       Optional[int]       =							Node(4)

 SCREAMING_SNAKE_CASE_    :       Any       =							Node(2)
 SCREAMING_SNAKE_CASE_    :       int       =							Node(4)
 SCREAMING_SNAKE_CASE_    :       Optional[Any]       =							Node(6)
 SCREAMING_SNAKE_CASE_    :       List[Any]       =							Node(9)
 SCREAMING_SNAKE_CASE_    :       str       =							Node(5)

 print('''Tree1 is: ''')
 print_preorder(treea)
 print('''Tree2 is: ''')
 print_preorder(treea)
 SCREAMING_SNAKE_CASE_    :       Optional[Any]       =							merge_two_binary_trees(treea, treea)
 print('''Merged Tree is: ''')
 print_preorder(merged_tree)












def   A		(__A  :       int			)  -> int:







     """simple docstring"""


     if not isinstance(__A  ,							__A			):
          UpperCAmelCase_		=				F"""Input value of [number={number}] must be an integer"""
          raise TypeError(__A			)
     if number < 1:
          raise ValueError('''Input must be a positive integer'''			)
     return number * (2 * number - 1)


if __name__ == "__main__":
    import doctest

    doctest.testmod()






