#include <iostream>
using namespace std;
int lcm(int a,int b);
int main(void) {
    int a,b;
    cin >> a >> b;
    int m = lcm(a,b);
    cout << m << endl;
}
int lcm(int a,int b) {
    int x = a*b;
    while(a!=b){
        if(a>b) a-=b;
        else b-=a;
    }
    int min = x/a;
    return min;
    
}