#include<iostream> using namespace std; int main(){ long long a,b,i=1; cin>>a>>b; while(1){ i++; if(i%a==0&&i%b==0){ cout<<i; break; } } return 0; }