#include <iostream>
#include <algorithm>
using namespace std;
int lcm(int a, int b)
{
int m = max(a, b);
for(int i = m; ;i++)
if(i % a == 0 && i % b == 0) return i;
}
int main()
{
int a, b;
cin >> a >> b;
cout << lcm(a, b);
}