# https://atcoder.jp/contests/abc148/tasks/abc148_c

def gcd(a, b)
  return a if b.zero?
  gcd(b, a % b)
end

# REF:最小公倍数
def lcm(a, b)
  a * b / gcd(a, b)
end

A, B = gets.split.map(&:to_i)

puts lcm(A, B)
