Petryk is exploring web design and needs to resize a photograph to fit within a frame. The frames available are of sizes m \times n and n \times m. Your task is to determine the new dimensions of a photograph originally sized a \times b so that it fits perfectly into one of these frames while maintaining its original proportions. The photograph can be either enlarged or reduced.
You are given four integers: , , , and , which represent the dimensions of the photograph and the frame, respectively. Each of these values is no greater than .
Output two numbers representing the maximum possible dimensions of the photograph, rounded to three decimal places.
Example 1