#include <bits/stdc++.h> using namespace std; int main( ) { int a,b,w; cin>>a>>b; w=__gcd(a,b) cout<<a*b/w; return 0; }