import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scanner=new Scanner(System.in);
int a=scanner.nextInt();
int b=scanner.nextInt();
for(int i=a>b?b:a;;i++) {
if(i%a==0 & i%b==0) {
System.out.println(i);
break;
}
}
scanner.close();
}
}