"""

author : halo2halo

date : 4, Feb, 2020

"""



import sys

import itertools



# import math



import numpy as np



read = sys.stdin.buffer.read

readline = sys.stdin.buffer.readline

readlines = sys.stdin.buffer.readlines





def gcd(a, b):

    if b == 0:

        return a

    return gcd(b, a % b)





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

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

author : halo2halo

date : 4, Feb, 2020

"""



import sys

# import itertools

# import math

# import numpy as np



read = sys.stdin.buffer.read

readline = sys.stdin.buffer.readline

readlines = sys.stdin.buffer.readlines





def gcd(a, b):

    if b == 0:

        return a

    return gcd(b, a % b)





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

print((A*B//gcd(A,B)))
"""
author : halo2halo
date : 4, Feb, 2020
"""
import sys
import itertools

# import math
import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines


def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)


A, B = list(map(int, readline().split()))
print((A * B // gcd(A, B)))

"""
author : halo2halo
date : 4, Feb, 2020
"""
import sys

# import itertools
# import math
# import numpy as np
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines


def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)


A, B = list(map(int, readline().split()))
print((A * B // gcd(A, B)))

-import itertools +# import itertools -import numpy as np - +# import numpy as np