Anna and Beka are dividing a rectangular chocolate bar of size M \times N. They take turns breaking off a square piece from one end of the chocolate bar, with the side length equal to the shorter side of the bar. If at any point the remaining chocolate is square-shaped, the child whose turn it is takes the entire remaining piece, and the division ends. Anna goes first.
Consider an example: the chocolate bar is initially 6 \times 10. Anna breaks off a 6 \times 6 piece. Beka then takes a 4 \times 4 piece from the remaining 6 \times 4 chocolate. Anna next takes a 2 \times 2 piece from the remaining 2 \times 4, and Beka takes the final 2 \times 2 piece. Thus, Anna receives pieces with a total area of , and Beka receives pieces with a total area of .
Given the total area of chocolate each child received, determine the initial dimensions and of the chocolate bar such that the areas received by the children match the given values.
If there are multiple solutions, choose the one where is smallest. If there are still multiple solutions, choose the one where is smallest. If no such and exist, output two numbers .
The first line contains two integers: the area of chocolate received by Anna and the area received by Beka. The combined area of chocolate pieces received by Anna and Beka is at least and does not exceed .
If a solution exists, output the pair of numbers and , separated by a space. Otherwise, output two numbers .
Example 1