PROGRAMMING:Greatest common divisor and least common multiple
This topic requires reading in two positive integers a and B, and outputting their greatest common divisor and least common multiple.
###Input format:
Enter 2 integers a and B with absolute value no more than 1000 in one line.
###Output format:
Output the greatest common divisor and the least common multiple of a and B in one line.
###Input example:
```in
16 24
```
###Output example:
```out
8 48
```
answer:If there is no answer, please comment
###Input format:
Enter 2 integers a and B with absolute value no more than 1000 in one line.
###Output format:
Output the greatest common divisor and the least common multiple of a and B in one line.
###Input example:
```in
16 24
```
###Output example:
```out
8 48
```
answer:If there is no answer, please comment