module kkk
  sub main()
    
    dim AB
    dim i as long
    dim j as long
    dim k as long
    
    dim a as long
    
    AB = console.readline()
    AB = split(AB, " ")
    
    j = AB(0)
    i = AB(1)
    
    do
      k = j mod i
      if k = 0 then exit do
      j = i
      i = k
    loop
        
        a = AB(0)*AB(1)/i
        
        console.writeline(a)
        
      end sub
    end module