A, B = map(int, input().split()) temp = A*B while B != 0 : A, B = B, A%B print(temp//A)