#include <iostream>
#include <fstream>
using namespace std;
ifstream fin("NUMERE.IN");
ofstream fout("NUMERE.OUT");
int CMMMC(int x, int y) {
int a = x;
int b = y;
while (a != b) {
if (a > b) a -= b;
else b -= a;
}
return (x*y)/a;
}
int main() {
int x, y;
while (fin >> x >> y) {
fout << CMMMC(x, y) << "\n";
}
}
//Sper ca te-am ajutat =))