#include <iostream>
using namespace std;
long nod (int a, int b) {
return b == 0 ? a : nod (b, a % b);
}
int main() {
int t1, t2;
cin >> t1 >> t2;
cout << t1 * (t2 / nod (t1, t2));
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgogCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiAKbG9uZyBub2QgKGludCBhLCBpbnQgYikgIHsKICAgIHJldHVybiBiID09IDAgPyBhIDogbm9kIChiLCBhICUgYik7Cn0KIAppbnQgbWFpbigpIHsKICAgIGludCB0MSwgdDI7CiAgICBjaW4gPj4gdDEgPj4gdDI7CiAgICBjb3V0IDw8ICB0MSAqICh0MiAvIG5vZCAodDEsIHQyKSk7CiAgICByZXR1cm4gMDsKfQ==