Least Common Multiple

Given two integers below 100,000,000, print their least common multiple, which can exceed the 32-bit range.

Easy2MathNumber theoryImplementationInterviewNo attempts yetTime limit2sMemory limit512 MB

Problem

If you can build an integer AA by multiplying an integer BB by some integer NN greater than 00, then AA is a multiple of BB. For example, 1010 is a multiple of 55 because 5×2=105 \times 2 = 10, 1010 is a multiple of itself because 10×1=1010 \times 1 = 10, and 66 is a multiple of 11 because 1×6=61 \times 6 = 6. The number 2020 is a multiple of 11, 22, 44, 55, 1010, and 2020.

The smallest common multiple of two numbers is their least common multiple. The least common multiple of 22 and 55 is 1010, because no common multiple is smaller than 1010. The least common multiple of 1010 and 2020 is 2020, and the least common multiple of 55 and 33 is 1515.

Write a program that computes the least common multiple of two integers AA and BB.

Input

The first line contains two integers AA and BB separated by a single space, with 1A,B<1000000001 \le A, B < 100\,000\,000.

In 50%50\% of the inputs both AA and BB are smaller than 10001000. In the other 50%50\% both are larger than 10001000.

For the large inputs the answer does not fit in a 32-bit integer. Use long long int in C/C++ and long in Java.

Output

Print the least common multiple of AA and BB on the first line.