#include<stdio.h>
int main(){
    int a,b;
    scanf("%d %d",&a,&b);
        if(a<0||b<0){
            printf("Invalid input");
        }
        while(b!=0){
            int temp=a;
            a=b%a;
            b=temp;
        }
        int temp=(a*b/a);
        printf("%d",lcm);
        return 0;

}