a,b = gets.split(" ")
a = a.to_i
b = b.to_i

tmp_a = a
tmp_b = b

#最大公約数を求める
#大小の入れ替え
if b > a
    tmp = a
    a = b
    b = tmp
end

#最大公約数を出す
r = a % b
while r != 0 do
    a = b
    b = r
    r = a % b
end

puts tmp_a * tmp_b / b