import math

from math import gcd

INF = float("inf")



import sys

input=sys.stdin.readline

import itertools

from collections import Counter



def main():

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

    ans = max(a,b)

    first = ans

    m = min(a,b)

    while True:

        if ans%m == 0:

            print(ans)

            exit()

        ans += first



if __name__=="__main__":

    main()

import math

from math import gcd

INF = float("inf")



import sys

input=sys.stdin.readline

import itertools

from collections import Counter



def main():

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

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



if __name__=="__main__":

    main()

import math
from math import gcd

INF = float("inf")
import sys

input = sys.stdin.readline
import itertools
from collections import Counter


def main():
    a, b = list(map(int, input().split()))
    ans = max(a, b)
    first = ans
    m = min(a, b)
    while True:
        if ans % m == 0:
            print(ans)
            exit()
        ans += first


if __name__ == "__main__":
    main()

import math
from math import gcd

INF = float("inf")
import sys

input = sys.stdin.readline
import itertools
from collections import Counter


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


if __name__ == "__main__":
    main()

-    ans = max(a, b) -    first = ans -    m = min(a, b) -    while True: -        if ans % m == 0: -            print(ans) -            exit() -        ans += first +    print((int(a * b / gcd(a, b))))