#include<bits/stdc++.h> using namespace std; int main(){ int a,b,y=1,ji; cin>>a>>b; ji=a*b; while(y!=0){ y=a%b; a=b; b=y; } cout<<ji/a; return 0; }