#include <bits/stdc++.h>
using namespace std;
int findLCM(int a, int b) {
int res = (a * b) / __gcd(a, b);
return res;
}
int main() {
int n1, n2;
cin >> n1 >> n2;
// base *= base
// base = base * base
// i += 1
// i = i + 1
cout << findLCM(n1, n2);
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgZmluZExDTShpbnQgYSwgaW50IGIpIHsKICBpbnQgcmVzID0gKGEgKiBiKSAvIF9fZ2NkKGEsIGIpOwogIHJldHVybiByZXM7Cn0KCmludCBtYWluKCkgewogIGludCBuMSwgbjI7CiAgY2luID4+IG4xID4+IG4yOwoKICAvLyBiYXNlICo9IGJhc2UKICAvLyBiYXNlID0gYmFzZSAqIGJhc2UKICAvLyBpICs9IDEKICAvLyBpID0gaSArIDEKCiAgY291dCA8PCBmaW5kTENNKG4xLCBuMik7CiAgcmV0dXJuIDA7Cn0K