a, b = list(map(int, input().split())) max = a if a > b else b min = a if a < b else b for i in range(min, 0, -1): if max % i == 0 and min % i == 0: print(int((max*min/i))) # 两数相乘再除大公因数 break