#1995. Greatest common divisor and Minimum common multiple

Greatest common divisor and Minimum common multiple

说明

please write a program, where the input is two positive integers, and the output is their Greatest common divisor and Minimum common multiple

输入格式

two positive integers, which are smaller than 1000

输出格式

two positive integers, which are the value of their Greatest common divisor and Minimum common multiple
5 7
1 35