#include <bits/stdc++.h>

using namespace std;

#define pb push_back
#define sc scanf
#define pf printf
#define ll long long
#define sz size()

int main()
{
    ll n,i,b,w,t,a;
    while(cin>>a>>b)
    {
        cout<<(a*b)/__gcd(a,b)<<endl;
    }
    return 0;
}
