import fractions



A, B = list(map(int, input().split()))

f=fractions.gcd(A,B)

print((int(A*B/f)))



import sys

input = sys.stdin.readline



def I(): return int(eval(input()))

def MI(): return list(map(int, input().split()))

def LI(): return list(map(int, input().split()))



def main():

    mod=10**9+7

    from math import gcd

    a,b=MI()

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

    



main()

import fractions

A, B = list(map(int, input().split()))
f = fractions.gcd(A, B)
print((int(A * B / f)))

import sys

input = sys.stdin.readline


def I():
    return int(eval(input()))


def MI():
    return list(map(int, input().split()))


def LI():
    return list(map(int, input().split()))


def main():
    mod = 10**9 + 7
    from math import gcd

    a, b = MI()
    print(((a * b) // gcd(a, b)))


main()

-import fractions +import sys -A, B = list(map(int, input().split())) -f = fractions.gcd(A, B) -print((int(A * B / f))) +input = sys.stdin.readline + + +def I(): +    return int(eval(input())) + + +def MI(): +    return list(map(int, input().split())) + + +def LI(): +    return list(map(int, input().split())) + + +def main(): +    mod = 10**9 + 7 +    from math import gcd + +    a, b = MI() +    print(((a * b) // gcd(a, b))) + + +main()