Consider the following infinite full BST (Binary Search Tree) as shown in the figure.
You are required to find what is the minimum and maximum number in the subtree of the given node (including the node).
Input format
Output format
Print two integers containing minimum and maximum number in the subtree of the given node (including the node).
Constraints
-