import java.util.Scanner;

/**
 * HJ108 求最小公倍数 - 简单
 */
public class HJ108 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextInt()){
            int n1 = sc.nextInt();
            int n2 = sc.nextInt();
            for(int i = 1; i <= n1*n2;i++){
                if(i % n1 == 0 && i % n2 == 0){
                    System.out.println(i);
                    break;
                }
            }
        }
        sc.close();
    }
}