#include <iostream>
using namespace std;
long int GCD(int num1, int num2)
{
if(num1 == num2) return num1;
while(num1 && num2)
{
if(num1 > num2) num1 %= num2;
else num2 %= num1;
}
return num1+num2;
}
int main() {
long int num1, num2, gcd;
cin >> num1 >> num2;
gcd = GCD(num1, num2);
cout << num1*num2/gcd;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogCmxvbmcgaW50IEdDRChpbnQgbnVtMSwgaW50IG51bTIpIAp7CglpZihudW0xID09IG51bTIpIHJldHVybiBudW0xOwoJd2hpbGUobnVtMSAmJiBudW0yKQoJewoJCWlmKG51bTEgPiBudW0yKSBudW0xICU9IG51bTI7CgkJZWxzZSBudW0yICU9IG51bTE7Cgl9CglyZXR1cm4gbnVtMStudW0yOwp9CgppbnQgbWFpbigpIHsKCWxvbmcgaW50IG51bTEsIG51bTIsIGdjZDsKCWNpbiA+PiBudW0xID4+IG51bTI7CglnY2QgPSBHQ0QobnVtMSwgbnVtMik7Cgljb3V0IDw8IG51bTEqbnVtMi9nY2Q7CglyZXR1cm4gMDsKfQ==