#include<iostream>
using namespace std;
int a, b;
int gcd(int a, int b)
{
return b != 0 ? gcd(b, a % b) : a;
}
int lcm(int a, int b)
{
int c = gcd(a, b);
return c * (a / c) * (b / c);
}
int main()
{
cin >> a >> b;
cout << lcm(a, b) << endl;
return 0;
}