#include <iostream>
#include <cmath>
using namespace std;
long long GCD(long long a , long long b)
{
    if(a % b == 0)
    {
        return b;
    }
    return GCD(b, a%b);
}
long long lcm(long long a, long long b)
{
    return (a * b) / GCD(a, b);
}
int main()
{
    long long a , b;
    cin >> a >> b;
    cout << lcm(a,b) << endl;
    return 0;
}
