a,b = map(int,input().split()) m = a * b while True: r = a % b a = b b = r if r == 0: break print(m // a)