#include //#include static int getGCD(int a, int b) { if (b == 0) { return a; } if (b > a) { return getGCD(b, a); } else { return getGCD(b, a % b); } } static long getLCM(int a, int b) { // https://www.idomaths.com/hcflcm.php#formula return (long) a * (long) b / (long) getGCD(a, b); } //TEST(LCMTest, Zero) { // ASSERT_EQ(getLCM(6, 8), 24); //} // //TEST(LCMTest, One) { // ASSERT_EQ(getLCM(28851538, 1183019), 1933053046); //} // //TEST(LCMTest, Two) { // ASSERT_EQ(getLCM(14159572, 63967072), 226436590403296); //} int main() { int a, b; std::cin >> a; std::cin >> b; long c = getLCM(a, b); std::cout << c << '\n'; }