from fractions import gcd



A,B = [int(zz) for zz in input().split()]



def lcm(a,b):

    return a*b//gcd(a,b)



print((lcm(A,B)))

from math import gcd



A,B = [int(i) for i in input().split()]



print((A*B//gcd(A,B)))

from fractions import gcd

A, B = [int(zz) for zz in input().split()]


def lcm(a, b):
    return a * b // gcd(a, b)


print((lcm(A, B)))

from math import gcd

A, B = [int(i) for i in input().split()]
print((A * B // gcd(A, B)))

-from fractions import gcd +from math import gcd -A, B = [int(zz) for zz in input().split()] - - -def lcm(a, b): -    return a * b // gcd(a, b) - - -print((lcm(A, B))) +A, B = [int(i) for i in input().split()] +print((A * B // gcd(A, B)))