line = gets.split(' ')



def gcd(a, b)
  a, b = b, a if a > b
  until a == 0
    a, b = b%a, a
  end
  return b
end


def lcm(a, b)
  a * b/gcd(a, b)
end

a = line[0].to_i
b = line[1].to_i

print lcm(a, b)


