- Time limit: 2.00 s
- Memory limit: 512 MB
You are given two positive numbers and . Calculate two positive numbers and such that:
- gcd(, ) gcd(, )
- lcm(, ) lcm(, )
- is minimal among all such pairs of (, )
Input
The first line contains two positive numbers and .
Output
Output two positive numbers and () such that gcd(, ) gcd(, ), lcm(, ) lcm(, ) and is minimal.
Constraints
Example
Input:
3 4
Output:
3 4
Input:
1 12
Output:
3 4