import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a  = sc.nextInt();
        int b  = sc.nextInt();
        int result  =1;
        while(result<=a*b){
            if(result%a==0&&result%b==0){
                System.out.print(result);
                break;
            }else{
                result++;
            }
        }
    }
}