import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        long A;
        long B;
        long ans;

        Scanner sc = new Scanner(System.in);
        A = sc.nextInt();
        B = sc.nextInt();
        ans = A * B / div(A, B);
        System.out.println(ans);
    }

    public static long div(long i, long j) {
        long l, s;
        if (i>j) { l = i; s = j;}
        else {s = i; l = j;}
        if (l % s != 0) return div(s, l%s);
        else return s;
    }
}

/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz