'''****** Задание ******** *НОК. ''' a, b = a1, b1 = int(input()), int(input()) while a != 0: a, b = b % a, a print(a1 * b1 // (a + b))