Petriukas used matchsticks to form a rectangular grid made up of
A matchsticks and
B unit squares.
Help determine the dimensions of the rectangular grid.
Input
Two integers A and B (1 \le A, B \le 10^{10}).
You may assume that a valid rectangular grid always exists for the given input.
Output
Print two integers — the width and height of the rectangular grid, separated by a space.
Example
standard input | standard output |
---|
17 6
| 2 3
|