import sys





def input(): return sys.stdin.readline().strip()





import fractions





def resolve():

    a, b = list(map(int, input().split()))

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

resolve()

import sys

def input(): return sys.stdin.readline().strip()



def resolve():

    a,b=list(map(int, input().split()))

    import fractions





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

resolve()
import sys


def input():
    return sys.stdin.readline().strip()


import fractions


def resolve():
    a, b = list(map(int, input().split()))
    print(((a * b) // fractions.gcd(a, b)))


resolve()

import sys


def input():
    return sys.stdin.readline().strip()


def resolve():
    a, b = list(map(int, input().split()))
    import fractions

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


resolve()

-import fractions - - -    print(((a * b) // fractions.gcd(a, b))) +    import fractions + +    print((a * b // fractions.gcd(a, b)))